public function RestfulCsrfTokenResource::index in RESTful 7
Get a list of entities.
Return value
array Array of entities, as passed to RestfulEntityBase::viewEntity().
Throws
Overrides RestfulBase::index
File
- plugins/
restful/ csrf/ RestfulCsrfTokenResource.class.php, line 43 - Contains RestfulCsrfTokenResource.
Class
- RestfulCsrfTokenResource
- @file Contains RestfulCsrfTokenResource.
Code
public function index() {
foreach ($this
->getPublicFields() as $public_property => $info) {
$value = NULL;
if ($info['callback']) {
$value = static::executeCallback($info['callback']);
}
if ($value && $info['process_callbacks']) {
foreach ($info['process_callbacks'] as $process_callback) {
$value = static::executeCallback($process_callback, array(
$value,
));
}
}
$values[$public_property] = $value;
}
return $values;
}