Documentation

AbstractController extends AbstractController
in package

Console abstract controller class

Tags
category

Pop\Kettle

author

Nick Sagona, III nick@nolainteractive.com

copyright

Copyright (c) 2012-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
1.6.2

Table of Contents

$application  : Application
Application object
$console  : Console
Console object
$defaultAction  : string
Default action
__construct()  : mixed
Constructor for the controller
application()  : Application
Get application object
console()  : Console
Get request object
dispatch()  : void
Dispatch the controller based on the action
error()  : void
Default error action method
getDefaultAction()  : string
Get the default action
setDefaultAction()  : AbstractController
Set the default action

Properties

Methods

dispatch()

Dispatch the controller based on the action

public dispatch([string $action = null ][, array<string|int, mixed> $params = null ]) : void
Parameters
$action : string = null
$params : array<string|int, mixed> = null
Tags
throws
Exception
Return values
void

getDefaultAction()

Get the default action

public getDefaultAction() : string
Return values
string

Search results