Example #1
0
 /**
  * @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();
 }