Pimcore\Model\Tool\CustomReport\Config::getByName PHP 메소드

getByName() 공개 정적인 메소드

public static getByName ( $name ) : null | Config
$name
리턴 null | Config
    public static function getByName($name)
    {
        try {
            $report = new self();
            $report->getDao()->getByName($name);
        } catch (\Exception $e) {
            return null;
        }
        return $report;
    }

Usage Example

예제 #1
0
파일: Dao.php 프로젝트: jansarmir/pimcore
 /**
  * @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->setReports($properties);
     return $properties;
 }
All Usage Examples Of Pimcore\Model\Tool\CustomReport\Config::getByName