/** * @param string $uuid * @return \Apache\Usergrid\Response|bool * @throws \Apache\Usergrid\UGException */ public function get_entity_by_uuid($uuid) { if (!Client::is_uuid($uuid)) { if ($this->client->are_exceptions_enabled()) { throw new UGException("Invalid UUID {$uuid}"); } return FALSE; } $entity = new Entity($this->client, array('type' => $this->type, 'uuid' => $uuid)); return $entity->fetch(); }
/** * Fetches and returns an entity. * * @param $entity_data * @return \Apache\Usergrid\Entity|bool */ public function get_entity($entity_data) { $entity = new Entity($this, $entity_data); $response = $entity->fetch(); if ($response->get_error()) { $this->write_log($response->get_error_message()); return FALSE; } return $entity; }
/** * @param $id Payment id */ public function fetch($id) { return parent::fetch($id); }