Documentation

ControllerInterface

Pop controller interface

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

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

license

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

version
4.2.0

Table of Contents

Methods

bypassMaintenance()  : bool
Check the bypass maintenace check
dispatch()  : void
Dispatch the controller based on the action
getDefaultAction()  : string
Get the default action
getMaintenanceAction()  : string
Get the maintenance action
setBypassMaintenance()  : static
Set bypass maintenance flag
setDefaultAction()  : ControllerInterface
Set the default action
setMaintenanceAction()  : AbstractController
Set the maintenance action

Methods

bypassMaintenance()

Check the bypass maintenace check

public bypassMaintenance() : bool
Return values
bool

dispatch()

Dispatch the controller based on the action

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

getDefaultAction()

Get the default action

public getDefaultAction() : string
Return values
string

getMaintenanceAction()

Get the maintenance action

public getMaintenanceAction() : string
Return values
string

setBypassMaintenance()

Set bypass maintenance flag

public setBypassMaintenance([bool $bypass = true ]) : static
Parameters
$bypass : bool = true
Return values
static

        
On this page

Search results