/** * @override * @return void */ protected function formatResult() { parent::formatResult(); $this->arResult['PERIOD'] = $this->arParams['PERIOD']; $this->arResult['BY'] = $this->arParams['BY']; }
/** * @override */ protected function formatResult() { parent::formatResult(); if (empty($this->arResult['ITEMS'])) { $this->arResult = array(); } else { $this->arResult['ID'] = is_array($this->items) ? array_keys($this->items) : array(); } }