Pimcore\Model\Glossary::getById PHP Метод

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

public static getById ( integer $id ) : Glossary
$id integer
Результат Glossary
    public static function getById($id)
    {
        $glossary = new self();
        $glossary->setId(intval($id));
        $glossary->getDao()->getById();
        return $glossary;
    }

Usage Example

Пример #1
0
 /**
  * Loads a list of static routes for the specicifies parameters, returns an array of Staticroute elements
  *
  * @return array
  */
 public function load()
 {
     $glossarysData = $this->db->fetchCol("SELECT id FROM glossary" . $this->getCondition() . $this->getOrder() . $this->getOffsetLimit(), $this->model->getConditionVariables());
     $glossary = array();
     foreach ($glossarysData as $glossaryData) {
         $glossary[] = Model\Glossary::getById($glossaryData);
     }
     $this->model->setGlossary($glossary);
     return $glossary;
 }
All Usage Examples Of Pimcore\Model\Glossary::getById