You are here

public function RestfulDataProviderVariable::view in RESTful 7

View a variable or multiple variables.

Parameters

string $name_string: A string of variable names, separated by commas.

Overrides RestfulBase::view

1 call to RestfulDataProviderVariable::view()
RestfulDataProviderVariable::variableSet in plugins/restful/RestfulDataProviderVariable.php
Sets a variable value.

File

plugins/restful/RestfulDataProviderVariable.php, line 114
Contains \RestfulDataProviderDbQuery

Class

RestfulDataProviderVariable
@file Contains \RestfulDataProviderDbQuery

Code

public function view($name_string) {
  $names = array_unique(array_filter(explode(',', $name_string)));
  $output = array();
  foreach ($names as $name) {
    $output[] = $this
      ->viewVariable($name);
  }
  return $output;
}