class Controller

Traits

Methods

mixed
__get(string $name)

Return the value of the method get{Name}Attribute.

__set(string $name, mixed $value)

Set the value of the method set{Name}Attribute.

__isset(string $name)

Extend the __isset method to check for the method get{Name}Attribute.

__unset(string $name)

Extend the __unset method to check for the method get{Name}Attribute.

bool
hasGetMutator(string $key)

Determine if a get mutator exists for an attribute.

mixed
mutateAttribute(string $key)

Get the value of an attribute using its mutator.

bool
hasSetMutator(string $key)

Determine if a set mutator exists for an attribute.

mixed
setMutatedAttributeValue(string $key, mixed $value)

Set the value of an attribute using its mutator.

load()

This method is executed by add_action( 'load-{}' )

redirect(string $location = '')

Redirect the browser to a location. If the header has been sent, then a Javascript and meta refresh will inserted into the page.

string
render($method)

Used to display a view from a menu. The method is usually index or store. These can return a view instance.

getRequestAttribute()

Get the Request instance.

Details

in HasAttributes at line 16
mixed __get(string $name)

Return the value of the method get{Name}Attribute.

Parameters

string $name Usually the protected property name.

Return Value

mixed

in HasAttributes at line 32
__set(string $name, mixed $value)

Set the value of the method set{Name}Attribute.

Parameters

string $name Usually the protected property name.
mixed $value

in HasAttributes at line 45
__isset(string $name)

Extend the __isset method to check for the method get{Name}Attribute.

Parameters

string $name Usually the protected property name.

in HasAttributes at line 58
__unset(string $name)

Extend the __unset method to check for the method get{Name}Attribute.

Parameters

string $name Usually the protected property name.

in HasAttributes at line 72
bool hasGetMutator(string $key)

Determine if a get mutator exists for an attribute.

Parameters

string $key

Return Value

bool

in HasAttributes at line 83
protected mixed mutateAttribute(string $key)

Get the value of an attribute using its mutator.

Parameters

string $key

Return Value

mixed

in HasAttributes at line 94
bool hasSetMutator(string $key)

Determine if a set mutator exists for an attribute.

Parameters

string $key

Return Value

bool

in HasAttributes at line 106
protected mixed setMutatedAttributeValue(string $key, mixed $value)

Set the value of an attribute using its mutator.

Parameters

string $key
mixed $value

Return Value

mixed

at line 23
load()

This method is executed by add_action( 'load-{}' )

at line 33
redirect(string $location = '')

Redirect the browser to a location. If the header has been sent, then a Javascript and meta refresh will inserted into the page.

Parameters

string $location

at line 63
string render($method)

Used to display a view from a menu. The method is usually index or store. These can return a view instance.

Parameters

$method

Return Value

string

at line 79
Request getRequestAttribute()

Get the Request instance.

Return Value

Request