Pimcore\Model\Glossary\Listing\Dao::load PHP Method

load() public method

Loads a list of static routes for the specicifies parameters, returns an array of Staticroute elements
public load ( ) : array
return array
    public function load()
    {
        $glossarysData = $this->db->fetchCol("SELECT id FROM glossary" . $this->getCondition() . $this->getOrder() . $this->getOffsetLimit(), $this->model->getConditionVariables());
        $glossary = [];
        foreach ($glossarysData as $glossaryData) {
            $glossary[] = Model\Glossary::getById($glossaryData);
        }
        $this->model->setGlossary($glossary);
        return $glossary;
    }