AbstractController

Implements ControllerInterface

Joomla Framework Base Controller Class

abstract
since

1.0

package

Joomla Framework

Methods

__construct

Instantiate the controller.

__construct(\Joomla\Input\Input input = null, \Joomla\Application\AbstractApplication app = null) : mixed
since

1.0

Arguments

input

\Joomla\Input\InputThe input object.

app

\Joomla\Application\AbstractApplicationThe application object.

Response

mixed

getApplication

Get the application object.

getApplication() : \Joomla\Application\AbstractApplication
since

1.0

throws

\UnexpectedValueExceptionif the application has not been set.

Response

\Joomla\Application\AbstractApplicationThe application object.

getInput

Get the input object.

getInput() : \Joomla\Input\Input
since

1.0

throws

\UnexpectedValueException

Response

\Joomla\Input\InputThe input object.

serialize

Serialize the controller.

serialize() : string
since

1.0

Response

stringThe serialized controller.

setApplication

Set the application object.

setApplication(\Joomla\Application\AbstractApplication app) : \Joomla\Controller\AbstractController
since

1.0

Arguments

app

\Joomla\Application\AbstractApplicationThe application object.

Response

\Joomla\Controller\AbstractControllerReturns itself to support chaining.

setInput

Set the input object.

setInput(\Joomla\Input\Input input) : \Joomla\Controller\AbstractController
since

1.0

Arguments

input

\Joomla\Input\InputThe input object.

Response

\Joomla\Controller\AbstractControllerReturns itself to support chaining.

unserialize

Unserialize the controller.

unserialize(string input) : \Joomla\Controller\AbstractController
since

1.0

throws

\UnexpectedValueExceptionif input is not the right class.

Arguments

input

stringThe serialized controller.

Response

\Joomla\Controller\AbstractControllerReturns itself to support chaining.

Properties

app

The application object.

since

1.0

Type(s)

\Joomla\Application\AbstractApplication

input

The input object.

since

1.0

Type(s)

\Joomla\Input\Input