Pimcore\Model\Object\Listing\Dao::loadIdList PHP Method

loadIdList() public method

Loads a list of document ids for the specicifies parameters, returns an array of ids
public loadIdList ( ) : array
return 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

Example #1
0
File: Dao.php Project: sfie/pimcore
 /**
  * @return array
  * @throws
  */
 public function loadIdList()
 {
     try {
         return parent::loadIdList();
     } catch (\Exception $e) {
         return $this->exceptionHandler($e);
     }
 }