Pimcore\Model\Tool\CustomReport\Config::getByName PHP Method

getByName() public static method

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

Usage Example

Example #1
0
 /**
  * @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