View API Documentation
SoPHIE View API Class
The View API provides access to the SoPHIE view object
Init: $viewApi = $api->get('sophie_view');
Method: $viewApi->set(...)
Sets a named value
Parameters:
- String|Array $nameOrValues Either the name of the value in the second parameter or an array with values in the keys
- mixed Value of the named entry if given by name
Method: $viewApi->get(...)
Gets a named value if set
Parameters:
- String $name Name of value
Returns mixed Value of the named entry
Method: $viewApi->has(...)
Checks if a named value is set
Parameters:
- String $name Name of value
Returns Boolean True if the value under this name is set
Method: $viewApi->getAll(...)
Get all values with name as parameter
Returns Array All values