|
| _setResponseCode ($value) |
|
| _format ($arrayMessage) |
|
| _getAll () |
|
| _getRelationShip ($id, $member) |
|
| _getOne ($keyValues, $include=false, $useCache=false) |
|
| _delete (... $keyValues) |
|
| getAll_ ($resource) |
| Returns all the instances from the model $resource.
|
|
| getRelationShip_ ($resource, $id, $member) |
| Returns an associated member value(s).
|
|
| getOne_ ($resource, $id) |
| Returns an instance of $resource, by primary key $id.
|
|
| add_ ($resource) |
| Inserts a new instance of $resource.
|
|
| update_ ($resource,... $id) |
| Updates an existing instance of $resource.
|
|
| delete_ ($resource,... $id) |
| Deletes an existing instance of $resource.
|
|
Definition at line 20 of file DynamicResourceTrait.php.
◆ _checkResource()
_checkResource |
( |
|
$resource, |
|
|
|
$callback |
|
) |
| |
|
protected |
◆ _delete()
◆ _format()
◆ _getAll()
◆ _getOne()
_getOne |
( |
|
$keyValues, |
|
|
|
$include = false , |
|
|
|
$useCache = false |
|
) |
| |
|
abstract |
◆ _getRelationShip()
_getRelationShip |
( |
|
$id, |
|
|
|
$member |
|
) |
| |
|
abstract |
◆ _getResponseFormatter()
_getResponseFormatter |
( |
| ) |
|
|
abstractprotected |
◆ _setResource()
_setResource |
( |
|
$resource | ) |
|
|
protected |
◆ _setResponseCode()
_setResponseCode |
( |
|
$value | ) |
|
|
abstract |
◆ add_()
Inserts a new instance of $resource.
Data attributes are send in data[attributes] request body (in JSON format)
- Parameters
-
string | $resource | The resource (model) to use |
Definition at line 111 of file DynamicResourceTrait.php.
◆ addOperation()
addOperation |
( |
|
$instance, |
|
|
|
$datas, |
|
|
|
$insertMany = false |
|
) |
| |
|
protected |
◆ delete_()
delete_ |
( |
|
$resource, |
|
|
|
$id |
|
) |
| |
Deletes an existing instance of $resource.
- Parameters
-
string | $resource | The resource (model) to use |
string | $ids | The primary key value(s), if the primary key is composite, use a comma to separate the values (e.g. 1,115,AB) |
Definition at line 141 of file DynamicResourceTrait.php.
◆ displayErrors()
◆ getAll_()
◆ getOne_()
getOne_ |
( |
|
$resource, |
|
|
|
$id |
|
) |
| |
Returns an instance of $resource, by primary key $id.
- Parameters
-
string | $resource | The resource (model) to use |
string | $id | The primary key value(s), if the primary key is composite, use a comma to separate the values (e.g. 1,115,AB) |
Definition at line 99 of file DynamicResourceTrait.php.
◆ getRelationShip_()
getRelationShip_ |
( |
|
$resource, |
|
|
|
$id, |
|
|
|
$member |
|
) |
| |
Returns an associated member value(s).
Query parameters:
- include: A string of associated members to load, comma separated (e.g. users,groups,organization...), or a boolean: true for all members, false for none (default: true).
- Parameters
-
string | $resource | The resource (model) to use |
string | $id | The primary key value(s), if the primary key is composite, use a comma to separate the values (e.g. 1,115,AB) |
string | $member | The member to load |
Definition at line 86 of file DynamicResourceTrait.php.
◆ getRequestParam()
getRequestParam |
( |
|
$param, |
|
|
|
$default |
|
) |
| |
|
abstractprotected |
◆ hasErrors()
◆ update_()
update_ |
( |
|
$resource, |
|
|
|
$id |
|
) |
| |
Updates an existing instance of $resource.
Data attributes are send in data[attributes] request body (in JSON format)
- Parameters
-
string | $resource | The resource (model) to use |
Definition at line 124 of file DynamicResourceTrait.php.
◆ updateOperation()
updateOperation |
( |
|
$instance, |
|
|
|
$datas, |
|
|
|
$updateMany = false |
|
) |
| |
|
protected |
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/controllers/rest/traits/DynamicResourceTrait.php