Esempio n. 1
0
 protected function _getList()
 {
     $data = parent::_getList();
     $convert = array();
     $convert['items'] = array_map(array($this, 'convert'), $data['items']);
     return array_merge($data, $convert);
 }
Esempio n. 2
0
 /**
  * Get the list data
  *
  * @return array The array with data to be encoded to json
  */
 protected function _getList()
 {
     if ($this->getLayout() == 'stream') {
         $list = $this->_getStream();
     } else {
         $list = parent::_getList();
     }
     return $list;
 }