Google_TextServiceResource
The "text" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /google-api/src/contrib/Google_FreebaseService.php
- class Google_TextServiceResource extends Google_ServiceResource {
- /**
- * Returns blob attached to node at specified id as HTML (text.get)
- *
- * @param string $id The id of the item that you want data about
- * @param array $optParams Optional parameters.
- *
- * @opt_param string maxlength The max number of characters to return. Valid only for 'plain' format.
- * @opt_param string format Sanitizing transformation.
- * @return Google_ContentserviceGet
- */
- public function get($id, $optParams = array()) {
- $params = array('id' => $id);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_ContentserviceGet($data);
- } else {
- return $data;
- }
- }
- }