Pimcore\Model\Tool\Qrcode\Config::getByName PHP Метод

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

public static getByName ( $name ) : Config
$name
Результат Config
    public static function getByName($name)
    {
        try {
            $code = new self();
            $code->getDao()->getByName($name);
        } catch (\Exception $e) {
            return null;
        }
        return $code;
    }

Usage Example

Пример #1
0
 /**
  * Loads a list of predefined properties for the specicifies parameters, returns an array of Property\Predefined elements
  *
  * @return array
  */
 public function load()
 {
     $properties = array();
     $propertiesData = $this->db->fetchAll($this->model->getFilter(), $this->model->getOrder());
     foreach ($propertiesData as $propertyData) {
         $properties[] = Config::getByName($propertyData["id"]);
     }
     $this->model->setCodes($properties);
     return $properties;
 }
All Usage Examples Of Pimcore\Model\Tool\Qrcode\Config::getByName