Class mosAbstractTasker

Description

Task routing class

  • abstract:

Located in /includes/mambo.php (line 3880)


	
			
Variable Summary
string $defaultTask
string $task
array $taskMap
string $_message
array $_methods
string $_redirect
Method Summary
mosAbstractTasker mosAbstractTasker ()
string getTask ()
null methodNotFound (string $name)
mixed performTask (string $task)
void redirect ()
void registerDefaultTask (string $method)
void registerTask (string $task, string $method)
void setRedirect (string $url, [mixed $msg = null])
null taskNotFound (string $task)
Variables
string $defaultTask = null (line 3884)
  • var: The name of the default task
string $task = null (line 3886)
  • var: The name of the current task
array $taskMap = null (line 3882)
  • var: An array of the class methods to call for a task
string $_message = null (line 3892)
  • var: A message about the operation of the task
array $_methods = null (line 3888)
  • var: An array of the class methods
string $_redirect = null (line 3890)
  • var: A url to redirect to
Methods
Constructor mosAbstractTasker (line 3897)

Constructor

mosAbstractTasker mosAbstractTasker ()
getTask (line 3963)

Get the last task that was to be performed

  • return: The task that was or is being performed
string getTask ()
methodNotFound (line 3980)

Basic method if the registered method is not found

null methodNotFound (string $name)
  • string $name: The name of the method in the derived class
performTask (line 3948)

Perform a task by triggering a method in the derived class

  • return: The value returned by the function
mixed performTask (string $task)
  • string $task: The task to perform
redirect (line 3919)

Redirects the browser

void redirect ()
registerDefaultTask (line 3940)

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
registerTask (line 3929)

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
setRedirect (line 3910)

Set a URL to redirect the browser to

void setRedirect (string $url, [mixed $msg = null])
  • string $url: A URL
taskNotFound (line 3971)

Basic method if the task is not found

null taskNotFound (string $task)
  • string $task: The task

Documentation generated on Fri, 4 Mar 2005 13:56:26 +1000 by phpDocumentor 1.3.0RC3