Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function fetchAll(\Zend_Db_Select $select, array $bindParams = array())
 {
     $cacheId = $this->_getSelectCacheId($select);
     $result = $this->_cache->load($cacheId);
     if ($result) {
         $result = unserialize($result);
     } else {
         $result = $this->_fetchStrategy->fetchAll($select, $bindParams);
         $this->_cache->save(serialize($result), $cacheId, $this->_cacheTags, $this->_cacheLifetime);
     }
     return $result;
 }
Exemplo n.º 2
0
 /**
  * Fetch all statement
  *
  * @return array
  */
 public function fetchAll()
 {
     if ($this->data === null) {
         $select = $this->getSelect();
         $this->data = $this->fetchStrategy->fetchAll($select, $this->bindParams);
     }
     return $this->data;
 }
 /**
  * Fetch collection data
  *
  * @param Select $select
  * @return array
  */
 protected function _fetchAll(Select $select)
 {
     $data = $this->_fetchStrategy->fetchAll($select, $this->_bindParams);
     if ($this->extensionAttributesJoinProcessor) {
         foreach ($data as $key => $dataItem) {
             $data[$key] = $this->extensionAttributesJoinProcessor->extractExtensionAttributes($this->_itemObjectClass, $dataItem);
         }
     }
     return $data;
 }
Exemplo n.º 4
0
 /**
  * Fetch collection data
  *
  * @param \Zend_Db_Select $select
  * @return array
  */
 protected function _fetchAll(\Zend_Db_Select $select)
 {
     return $this->_fetchStrategy->fetchAll($select, $this->_bindParams);
 }