WordPressAjaxServiceProvider
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
Init the registred Ajax cactions.
Dynamically handle missing method calls.
Set the value of the method set{Name}Attribute
.
Extend the __isset method to check for the method get{Name}Attribute
.
Extend the __unset method to check for the method get{Name}Attribute
.
Determine if a get mutator exists for an attribute.
Get the value of an attribute using its mutator.
Determine if a set mutator exists for an attribute.
Set the value of an attribute using its mutator.
You may override this method in order to register your own actions and filters.
No description
Details
at line 47
void
register()
Init the registred Ajax cactions.
in ServiceProvider at line 22
__construct($plugin)
in ServiceProvider at line 33
__call(string $method, array $parameters)
Dynamically handle missing method calls.
in HasAttributes at line 16
mixed
__get(string $name)
Return the value of the method get{Name}Attribute
.
in HasAttributes at line 32
__set(string $name, mixed $value)
Set the value of the method set{Name}Attribute
.
in HasAttributes at line 45
__isset(string $name)
Extend the __isset method to check for the method get{Name}Attribute
.
in HasAttributes at line 58
__unset(string $name)
Extend the __unset method to check for the method get{Name}Attribute
.
in HasAttributes at line 72
bool
hasGetMutator(string $key)
Determine if a get mutator exists for an attribute.
in HasAttributes at line 83
protected mixed
mutateAttribute(string $key)
Get the value of an attribute using its mutator.
in HasAttributes at line 94
bool
hasSetMutator(string $key)
Determine if a set mutator exists for an attribute.
in HasAttributes at line 106
protected mixed
setMutatedAttributeValue(string $key, mixed $value)
Set the value of an attribute using its mutator.
at line 70
boot()
You may override this method in order to register your own actions and filters.