modules\wpeo-model\class\rest.class.php
Gestion des routes
- Author
- Eoxia
- Copyright
- 2015-2018
- Package
- EO_Framework\EO_Model\Class
- Since
- 1.0.0
- Version
- 1.0.0
\eoxia\Rest_Class
Package: EO_Framework\EO_Model\Class
Gestion des utilisateurs (POST, PUT, GET, DELETE)
- Parent(s)
- \eoxia\Singleton_Util
- Children
- \eoxia\Object_Class
- Inherited_from
- \eoxia\Singleton_Util
Properties
Methods
__construct() : void
finalinherited
Appelle le constructeur parent
Inherited from:Details
- Since
- 0.1.0
- Version
- 1.0.0
check_cap(string $cap) : string
Check user capability to access to element
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$cap | string | The capability name to check. |
Type | Description |
---|---|
string | The rest api base for current element |
- Since
- 1.0.0
- Version
- 1.0.0
construct() : void
abstractinherited
Le constructeur pour les enfants
Inherited from:Details
- Since
- 0.1.0
- Version
- 1.0.0
create_from_parent(\eoxia\WP_Http::request $request) : mixed
Create / Update element from request
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$request | \eoxia\WP_Http::request | The current Rest API request. |
Type | Description |
---|---|
mixed | New created element. |
- Since
- 1.6.0
- Version
- 1.6.0
g() : \eoxia\Singleton_Util
staticfinalinherited
Récupères l'instance courante
Inherited from:Returns
Details
Type | Description |
---|---|
\eoxia\Singleton_Util | L'instance courante |
- Since
- 0.1.0
- Version
- 1.0.0
get_from_parent(\eoxia\WP_Http::request $request) : mixed
Get element(s) from parent object type
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$request | \eoxia\WP_Http::request | The current Rest API request. |
Type | Description |
---|---|
mixed | Element list or single element if id was specified. |
- Since
- 1.0.0
- Version
- 1.0.0
get_parent_from_parent(\eoxia\WP_Http::request $request) : mixed
Get element(s) from parent object type
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$request | \eoxia\WP_Http::request | The current Rest API request. |
Type | Description |
---|---|
mixed | Element list or single element if id was specified. |
- Since
- 1.0.0
- Version
- 1.0.0
get_rest_base() : string
Return the base for rest api.
Returns
Details
Type | Description |
---|---|
string | The rest api base for current element |
- Since
- 1.0.0
- Version
- 1.0.0