Documentation

AbstractDispatcher
in package
implements DispatchableInterface

AbstractYes

Abstract dispatcher class

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

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

version
5.0.0

Table of Contents

Interfaces

DispatchableInterface
Dispatchable interface

Properties

$defaultAction  : string
Default action

Methods

dispatch()  : void
Dispatch the controller based on the action
getDefaultAction()  : string
Get the default action
setDefaultAction()  : static
Set the default action

Properties

Methods

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

setDefaultAction()

Set the default action

public setDefaultAction(string $default) : static
Parameters
$default : string
Return values
static

        
On this page

Search results