JControllerBase

Implements \JController

Joomla Platform Base Controller Class

abstract
since

12.1

package

Joomla.Platform

Methods

__construct

Instantiate the controller.

__construct(\JInput $input = null, \Joomla\Application\AbstractApplication $app = null) 
since

12.1

Arguments

$input

\JInputThe input object.

$app

\Joomla\Application\AbstractApplicationThe application object.

getApplication

Get the application object.

getApplication() : \Joomla\Application\AbstractApplication
since

12.1

Response

\Joomla\Application\AbstractApplicationThe application object.

getInput

Get the input object.

getInput() : \JInput
since

12.1

Response

\JInputThe input object.

loadApplication

Load the application object.

loadApplication() : \Joomla\Application\AbstractApplication
since

12.1

Response

\Joomla\Application\AbstractApplicationThe application object.

loadInput

Load the input object.

loadInput() : \JInput
since

12.1

Response

\JInputThe input object.

serialize

Serialize the controller.

serialize() : string
since

12.1

Response

stringThe serialized controller.

unserialize

Unserialize the controller.

unserialize(string $input) : \JController
since

12.1

throws

\UnexpectedValueExceptionif input is not the right class.

Arguments

$input

stringThe serialized controller.

Response

\JControllerSupports chaining.

Properties

app

The application object.

input

The input object.

Type(s)

\JInput