modules\wpeo-model\class\rest.class.php

Show: PublicProtectedPrivateinherited
Table of Contents
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

>VPropertyprotected\eoxia\Singleton_Util $instance
static
L'instance courant du singleton
Details
Type
\eoxia\Singleton_Util

Methods

methodprotected__construct() : void
finalinherited

Appelle le constructeur parent

Inherited from:
Details
Since
0.1.0  
Version
1.0.0  
methodpubliccheck_cap(string $cap) : string

Check user capability to access to element

Parameters
NameTypeDescription
$capstring

The capability name to check.

Returns
TypeDescription
stringThe rest api base for current element
Details
Since
1.0.0  
Version
1.0.0  
methodprotectedconstruct() : void

[construct description]

methodprotectedconstruct() : void
abstractinherited

Le constructeur pour les enfants

Inherited from:
Details
Since
0.1.0  
Version
1.0.0  
methodpubliccreate_from_parent(\eoxia\WP_Http::request $request) : mixed

Create / Update element from request

Parameters
NameTypeDescription
$request\eoxia\WP_Http::request

The current Rest API request.

Returns
TypeDescription
mixedNew created element.
Details
Since
1.6.0  
Version
1.6.0  
methodpublicg() : \eoxia\Singleton_Util
staticfinalinherited

Récupères l'instance courante

Inherited from:
Returns
TypeDescription
\eoxia\Singleton_UtilL'instance courante
Details
Since
0.1.0  
Version
1.0.0  
methodpublicget_from_parent(\eoxia\WP_Http::request $request) : mixed

Get element(s) from parent object type

Parameters
NameTypeDescription
$request\eoxia\WP_Http::request

The current Rest API request.

Returns
TypeDescription
mixedElement list or single element if id was specified.
Details
Since
1.0.0  
Version
1.0.0  
methodpublicget_parent_from_parent(\eoxia\WP_Http::request $request) : mixed

Get element(s) from parent object type

Parameters
NameTypeDescription
$request\eoxia\WP_Http::request

The current Rest API request.

Returns
TypeDescription
mixedElement list or single element if id was specified.
Details
Since
1.0.0  
Version
1.0.0  
methodpublicget_rest_base() : string

Return the base for rest api.

Returns
TypeDescription
stringThe rest api base for current element
Details
Since
1.0.0  
Version
1.0.0  
methodpublicregister_routes() : void

Défini et ajoute les routes dans l'api rest de WordPress

Details
Since
1.0.0  
Version
1.0.0  
Documentation was generated by phpDocumentor 2.9.1.