- Added missing PHPdocs
- Corrected Syntax
- Added noinspection parameters to PHPdoc for AJAX called functions
- Added missing function return types
- Added missing parameter types
- Added public keyword to functions without visibility modifier
- Corrected incorrectly formatted PHPdocs
- Added public to constants and functions missing a visibility keyword
This commit is contained in:
objecttothis
2023-12-05 17:26:28 +04:00
committed by jekkos
parent 88007f56be
commit ba9bcd7786
137 changed files with 3070 additions and 330 deletions

View File

@@ -27,6 +27,11 @@ class Secure_Controller extends BaseController
protected Module $module;
protected Session $session;
/**
* @param string $module_id
* @param string|null $submodule_id
* @param string|null $menu_group
*/
public function __construct(string $module_id = '', string $submodule_id = null, string $menu_group = null)
{
$this->employee = model(Employee::class);
@@ -93,6 +98,10 @@ class Secure_Controller extends BaseController
echo $result !== false ? 'true' : 'false';
}
/**
* @param $key
* @return mixed|void
*/
public function getConfig($key)
{
if (isset($config[$key]))
@@ -101,11 +110,35 @@ class Secure_Controller extends BaseController
}
}
// this is the basic set of methods most OSPOS Controllers will implement
/**
* @return false
*/
public function getIndex() { return false; }
/**
* @return false
*/
public function getSearch() { return false; }
/**
* @return false
*/
public function suggest_search() { return false; }
/**
* @param int $data_item_id
* @return false
*/
public function getView(int $data_item_id = -1) { return false; }
/**
* @param int $data_item_id
* @return false
*/
public function postSave(int $data_item_id = -1) { return false; }
/**
* @return false
*/
public function postDelete() { return false; }
}