You are here

protected function ServicesClientConnectionRestServerParser::getParserInfo in Services Client 7

Same name and namespace in other branches
  1. 7.2 services_client_connection/plugins/ServicesClientConnectionRestServer.inc \ServicesClientConnectionRestServerParser::getParserInfo()

Get info about current formatter

Parameters

string $property: Optionally property can be specified.

2 calls to ServicesClientConnectionRestServerParser::getParserInfo()
ServicesClientConnectionRestServerParser::parse in services_client_connection/plugins/ServicesClientConnectionRestServer.inc
Parse retrieved data
ServicesClientConnectionRestServerParser::prepareRequest in services_client_connection/plugins/ServicesClientConnectionRestServer.inc
Prepare request

File

services_client_connection/plugins/ServicesClientConnectionRestServer.inc, line 386

Class

ServicesClientConnectionRestServerParser

Code

protected function getParserInfo($property = NULL) {

  // Get formatter info
  $parser = isset(self::$parsers[$this->parser]) ? self::$parsers[$this->parser] : NULL;

  // If defined property try to retrieve property from formatter info
  if (!empty($property) && !empty($parser)) {
    return isset($parser[$property]) ? $parser[$property] : NULL;
  }
  return $parser;
}