Pimcore\Model\Object\Listing\Dao::loadIdList PHP Метод

loadIdList() публичный Метод

Loads a list of document ids for the specicifies parameters, returns an array of ids
public loadIdList ( ) : array
Результат array
    public function loadIdList()
    {
        $query = $this->getQuery(true);
        $objectIds = $this->db->fetchCol($query, $this->model->getConditionVariables());
        $this->totalCount = (int) $this->db->fetchOne('SELECT FOUND_ROWS()');
        return $objectIds;
    }

Usage Example

Пример #1
0
 /**
  * @return array
  * @throws
  */
 public function loadIdList()
 {
     try {
         return parent::loadIdList();
     } catch (\Exception $e) {
         return $this->exceptionHandler($e);
     }
 }