class WordPressAjaxServiceProvider extends ServiceProvider

Traits

Properties

protected $plugin Instance of main plugin. from ServiceProvider
protected array $trusted List of the ajax actions executed by both logged and not logged users.
protected array $logged List of the ajax actions executed only by logged in users.
protected array $notLogged List of the ajax actions executed only by not logged in user, usually from frontend.

Methods

void
register()

Init the registred Ajax cactions.

__construct($plugin)

No description

__call(string $method, array $parameters)

Dynamically handle missing method calls.

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.

boot()

You may override this method in order to register your own actions and filters.

getRequestAttribute()

No description

Details

at line 47
void register()

Init the registred Ajax cactions.

Return Value

void

in ServiceProvider at line 22
__construct($plugin)

Parameters

$plugin

in ServiceProvider at line 33
__call(string $method, array $parameters)

Dynamically handle missing method calls.

Parameters

string $method
array $parameters

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 70
boot()

You may override this method in order to register your own actions and filters.

at line 75
getRequestAttribute()