Table of Contents

getTask

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JController Method getTask Reference getTask() Never Work in Progress

Get the last task that is or was to be performed.

This method returns the value that was stored by the execute method.

Syntax

string getTask ()

Examples

Example

$controller->execute( JRequest::getVar('task'));
echo $controller->getTask();

might produce

Result

edit

if the ControllerClass→edit method was invoked by the execute method.