public function RestfulDataProviderVariable::getVariablesForList in RESTful 7
1 call to RestfulDataProviderVariable::getVariablesForList()
- RestfulDataProviderVariable::index in plugins/
restful/ RestfulDataProviderVariable.php  - Get a list of entities.
 
File
- plugins/
restful/ RestfulDataProviderVariable.php, line 26  - Contains \RestfulDataProviderDbQuery
 
Class
- RestfulDataProviderVariable
 - @file Contains \RestfulDataProviderDbQuery
 
Code
public function getVariablesForList() {
  // Map name and value to an indexed array structure.
  foreach ($GLOBALS['conf'] as $variable_name => $variable_value) {
    $variables[] = array(
      'name' => $variable_name,
      'value' => $variable_value,
    );
  }
  // Apply pagination and sorting.
  $this
    ->applyListSort($variables);
  $this
    ->applyListPagination($variables);
  return $variables;
}