protected function ServicesClientConnectionRestServerFormatter::getFormatterInfo in Services Client 7.2
Same name and namespace in other branches
- 7 services_client_connection/plugins/ServicesClientConnectionRestServer.inc \ServicesClientConnectionRestServerFormatter::getFormatterInfo()
Get info about current formatter
Parameters
string $property: Optionally property can be specified.
1 call to ServicesClientConnectionRestServerFormatter::getFormatterInfo()
- ServicesClientConnectionRestServerFormatter::format in services_client_connection/
plugins/ ServicesClientConnectionRestServer.inc - Format data for remote site.
File
- services_client_connection/
plugins/ ServicesClientConnectionRestServer.inc, line 210
Class
Code
protected function getFormatterInfo($property = NULL) {
// Get formatter info
$formatter = isset(self::$request_formatters[$this->formatter]) ? self::$request_formatters[$this->formatter] : NULL;
// If defined property try to retrieve property from formatter info
if (!empty($property) && !empty($formatter)) {
return isset($formatter[$property]) ? $formatter[$property] : NULL;
}
return $formatter;
}