protected function getPanelsReport()
    {
        $settings = $this->module->getSettings('ga_report');
        $store_id = $this->getQuery('ga.update.store_id');

        if (!empty($store_id)) {
            $settings['store_id'] = $store_id;
        }

        $panels = array();

        foreach ($this->report_model->getHandlers() as $handler) {

            $report = $this->report_model->get($handler, $settings);

            $data = array(
                'content' => array(
                    'data' => array( // We need so deep nesting for compatibility with dashboard panel templates
                        'report' => $report,
                        'handler' => $handler,
                        'settings' => $settings
                    )
                )
            );

            $panels[$handler['id']] = array('rendered' => $this->render($handler['template'], $data));
        }

        return gplcart_array_split($panels, 3); // Split by columns
    }
protected function getPanelsReport()
    {
        $settings = $this->module->getSettings('ga_report');
        $store_id = $this->getQuery('ga.update.store_id');

        if (!empty($store_id)) {
            $settings['store_id'] = $store_id;
        }

        $panels = array();

        foreach ($this->report_model->getHandlers() as $handler) {

            $report = $this->report_model->get($handler, $settings);

            $data = array(
                'content' => array(
                    'data' => array( // We need so deep nesting for compatibility with dashboard panel templates
                        'report' => $report,
                        'handler' => $handler,
                        'settings' => $settings
                    )
                )
            );

            $panels[$handler['id']] = array('rendered' => $this->render($handler['template'], $data));
        }

        return gplcart_array_split($panels, 3); // Split by columns
    }
protected function getPanelsReport ( ) { $ settings = $ this -> module -> getSettings ( 'ga_report' ) ; $ store_id = $ this -> getQuery ( 'ga.update.store_id' ) ; if ( ! empty ( $ store_id ) ) { $ settings [ 'store_id' ] = $ store_id ; } $ panels = array ( ) ; foreach ( $ this -> report_model -> getHandlers ( ) as $ handler ) { $ report = $ this -> report_model -> get ( $ handler , $ settings ) ; $ data = array ( 'content' => array ( 'data' => array ( // We need so deep nesting for compatibility with dashboard panel templates 'report' => $ report , 'handler' => $ handler , 'settings' => $ settings ) ) ) ; $ panels [ $ handler [ 'id' ] ] = array ( 'rendered' => $ this -> render ( $ handler [ 'template' ] , $ data ) ) ; } return gplcart_array_split ( $ panels , 3 ) ; // Split by columns }
Returns an array of report panels
@return array
Returns an array of report panels