class AbstractController implements ApplicationAwareInterface (View source)

Traits

Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface

Properties

protected Application $app from ApplicationAwareTrait
protected $helpers
protected $sets
protected $action
protected $request
protected $parameters

Methods

setApplication(Application $app)

Setter method for the application

__construct()

No description

mixed
getRequest()

No description

setRequest(mixed $request)

No description

requireAsset()

No description

addHeaderItem(string $item)

Adds an item to the view's header. This item will then be automatically printed out before the section of the page.

addFooterItem(string $item)

Adds an item to the view's footer. This item will then be automatically printed out before the section of the page.

set($key, $val)

No description

getSets()

No description

shouldRunControllerTask()

No description

getHelperObjects()

No description

get($key = null, $defaultValue = null)

No description

getTask()

No description

getAction()

No description

getParameters()

No description

on_start()

No description

on_before_render()

No description

isPost() deprecated

No description

post($key = null, $defaultValue = null)

No description

redirect()

No description

runTask($action, $parameters)

No description

runAction($action, $parameters = array())

No description

request($key = null)

No description

Details

setApplication(Application $app)

Setter method for the application

Parameters

Application $app

__construct()

mixed getRequest()

Return Value

mixed

setRequest(mixed $request)

Parameters

mixed $request

requireAsset()

addHeaderItem(string $item)

Adds an item to the view's header. This item will then be automatically printed out before the section of the page.

Parameters

string $item

addFooterItem(string $item)

Adds an item to the view's footer. This item will then be automatically printed out before the section of the page.

Parameters

string $item

set($key, $val)

Parameters

$key
$val

getSets()

shouldRunControllerTask()

getHelperObjects()

get($key = null, $defaultValue = null)

Parameters

$key
$defaultValue

getTask()

getAction()

getParameters()

on_start()

on_before_render()

isPost() deprecated

deprecated

post($key = null, $defaultValue = null)

Parameters

$key
$defaultValue

redirect()

runTask($action, $parameters)

Parameters

$action
$parameters

runAction($action, $parameters = array())

Parameters

$action
$parameters

request($key = null)

Parameters

$key