Pimcore\Model\Tool\UUID::getByUuid PHP Метод

getByUuid() публичный статический Метод

public static getByUuid ( $uuid ) : mixed
$uuid
Результат mixed
    public static function getByUuid($uuid)
    {
        $self = new self();
        return $self->getDao()->getByUuid($uuid);
    }

Usage Example

Пример #1
0
 /**
  * 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;
 }