Documentation

Controller

Table of Contents

$input  : mixed
Data form the input.
$route_params  : array<string|int, mixed>
Parameters from the matched route.
__call()  : void
Overriding... Magic method called when a non-existent or inaccessible method is called on an object of this class. Used to execute before and after filter methods on action methods. Action methods need to be named with an "Action" suffix, e.g. indexAction, showAction etc.
__construct()  : void
Class constructor.
__get()  : void
Overriding... Magic method called when a non-existent or inaccessible property is called on an object of this class.
__set()  : void
Overriding... Magic method called when a non-existent or inaccessible property is write on an object of this class.
__wakeup()  : void
Prevent unserializing.
after()  : void
After filter - called after an action method.
before()  : void
Before filter - called before an action method.

Properties

$input

Data form the input.

protected mixed $input
Tags
since
1.0.0

$route_params

Parameters from the matched route.

protected array<string|int, mixed> $route_params = []
Tags
since
1.0.0

Methods

__call()

Overriding... Magic method called when a non-existent or inaccessible method is called on an object of this class. Used to execute before and after filter methods on action methods. Action methods need to be named with an "Action" suffix, e.g. indexAction, showAction etc.

public final __call((string) $name, (array) $args) : void
Parameters
$name : (string)

Method name

$args : (array)

Arguments passed to the method

Tags
since
1.0.0
Return values
void

__construct()

Class constructor.

public __construct((array) $route_params, (mixed) $input) : void
Parameters
$route_params : (array)

Parameters from the route

$input : (mixed)

Data form the input

Tags
since
1.0.0
Return values
void

__get()

Overriding... Magic method called when a non-existent or inaccessible property is called on an object of this class.

public __get((string) $name) : void

in this case we trow error.

Parameters
$name : (string)

properity name

Tags
since
1.0.0
Return values
void

__set()

Overriding... Magic method called when a non-existent or inaccessible property is write on an object of this class.

public __set((string) $name, (array) $value) : void

in this case we trow error.

Parameters
$name : (string)

properity name

$value : (array)

properity value

Tags
since
1.0.0
Return values
void

__wakeup()

Prevent unserializing.

protected __wakeup() : void
Tags
since
1.0.0
Return values
void

after()

After filter - called after an action method.

protected after() : void
Tags
since
1.0.0
Return values
void

before()

Before filter - called before an action method.

protected before() : void
Tags
since
1.0.0
Return values
void

Search results