protected function _getList() { $data = parent::_getList(); $convert = array(); $convert['items'] = array_map(array($this, 'convert'), $data['items']); return array_merge($data, $convert); }
/** * 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; }