Пример #1
0
 /**
  * Returns the user object for the given uuid
  * 
  * @access public
  * @param string $uuid
  * @return false|\Zepi\Web\AccessControl\Entity\User
  */
 public function getUserForUuid($uuid)
 {
     if (!$this->accessControlManager->hasAccessEntityForUuid(self::ACCESS_ENTITY_TYPE, $uuid)) {
         return false;
     }
     // Get the access entity
     $accessEntity = $this->accessControlManager->getAccessEntityForUuid(self::ACCESS_ENTITY_TYPE, $uuid);
     if ($accessEntity === false) {
         return false;
     }
     return $accessEntity;
 }