Pimcore\Model\Tool\UUID::getByUuid PHP Method

getByUuid() public static method

public static getByUuid ( $uuid ) : mixed
$uuid
return mixed
    public static function getByUuid($uuid)
    {
        $self = new self();
        return $self->getDao()->getByUuid($uuid);
    }

Usage Example

コード例 #1
0
ファイル: Resource.php プロジェクト: rolandstoll/pimcore
 /**
  * Loads a list of Email_Log for the specified parameters, returns an array of Email_Log elements
  *
  * @return array
  */
 public function load()
 {
     $items = $this->db->fetchCol("SELECT uuid FROM " . Resource::TABLE_NAME . " " . $this->getCondition() . $this->getOrder() . $this->getOffsetLimit(), $this->model->getConditionVariables());
     $result = array();
     foreach ($items as $uuid) {
         $result[] = UUID::getByUuid($uuid);
     }
     return $result;
 }