Constructor
mosAbstractTasker
mosAbstractTasker
([string $default = ''])
-
string
$default: Set the default task
Access control check
void
accessCheck
(mixed $task)
Get the last task that was to be performed
string
getTask
()
Basic method if the registered method is not found
null
methodNotFound
(string $name)
-
string
$name: The name of the method in the derived class
Basic method if access is not permitted to the task
null
notAllowed
(string $name)
-
string
$name: The name of the method in the derived class
Perform a task by triggering a method in the derived class
mixed
performTask
(string $task)
-
string
$task: The task to perform
Redirects the browser
void
redirect
()
Register the default task to perfrom if a mapping is not found
void
registerDefaultTask
(string $method)
-
string
$method: The name of the method in the derived class to perform if the task is not found
Register (map) a task to a method in the class
void
registerTask
(string $task, string $method)
-
string
$task: The task
-
string
$method: The name of the method in the derived class to perform for this task
Sets the access control levels
void
setAccessControl
(string $section, [string $value = null])
-
string
$section: The ACO section (eg, the component)
-
string
$value: The ACO section value (if using a constant value)
Set a URL to redirect the browser to
void
setRedirect
(string $url, [mixed $msg = null])
Basic method if the task is not found
null
taskNotFound
(string $task)