mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-04 23:24:16 -04:00
Tack on the void return type onto the Employee:logout method.
This commit is contained in:
@@ -26,6 +26,7 @@ class Secure_Controller extends BaseController
|
||||
$this->employee = model('Employee');
|
||||
$this->module = model('Module');
|
||||
$config = config('OSPOS')->settings;
|
||||
$validation = \Config\Services::validation();
|
||||
|
||||
if(!$this->employee->is_logged_in())
|
||||
{
|
||||
@@ -67,11 +68,11 @@ class Secure_Controller extends BaseController
|
||||
view('viewData', $global_view_data);
|
||||
}
|
||||
|
||||
public function check_numeric()
|
||||
public function getCheckNumeric()
|
||||
{
|
||||
$result = TRUE;
|
||||
|
||||
foreach($this->request->getGet(NULL, FILTER_SANITIZE_STRING) as $str)
|
||||
foreach($this->request->getVar(NULL, FILTER_SANITIZE_STRING) as $str)
|
||||
{
|
||||
$result &= parse_decimals($str);
|
||||
}
|
||||
@@ -81,9 +82,9 @@ class Secure_Controller extends BaseController
|
||||
|
||||
// this is the basic set of methods most OSPOS Controllers will implement
|
||||
public function getIndex() { return FALSE; }
|
||||
public function search() { return FALSE; }
|
||||
public function getSearch() { return FALSE; }
|
||||
public function suggest_search() { return FALSE; }
|
||||
public function view(int $data_item_id = -1) { return FALSE; }
|
||||
public function save(int $data_item_id = -1) { return FALSE; }
|
||||
public function delete() { return FALSE; }
|
||||
public function getView(int $data_item_id = -1) { return FALSE; }
|
||||
public function postSave(int $data_item_id = -1) { return FALSE; }
|
||||
public function postDelete() { return FALSE; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user