run() public méthode

public run ( )
Exemple #1
0
 public function run()
 {
     parent::run();
 }
 /**
  * (non-PHPdoc)
  * @see \kartik\grid\GridView::run()
  */
 public function run()
 {
     parent::run();
     $view = $this->view;
     FlexibleGridAsset::register($view);
 }
Exemple #3
0
 public function run()
 {
     if ($this->grid_mode == 'export') {
         $this->dataProvider->pagination = FALSE;
         $this->renderHeader();
         $row = $this->renderBody();
         $this->renderFooter($row);
         //set auto width
         if ($this->autoWidth) {
             foreach ($this->columns as $n => $column) {
                 $this->objPHPExcel->getActiveSheet()->getColumnDimension($this->columnName($n + 1))->setAutoSize(true);
             }
         }
         // Set the pdf renderer
         $rendererName = \PHPExcel_Settings::PDF_RENDERER_DOMPDF;
         //create writer for saving
         $objWriter = \PHPExcel_IOFactory::createWriter($this->objPHPExcel, $this->fullExportConfig[$this->fullExportType]['PHPExcel_Writer']);
         if (!$this->stream) {
             $objWriter->save($this->filename);
         } else {
             //output to browser
             if (!$this->filename) {
                 $this->filename = $this->title;
             }
             ob_end_clean();
             header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
             header('Pragma: public');
             header('Content-type: ' . $this->fullExportConfig[$this->fullExportType]['Content-type']);
             header('Content-Disposition: attachment; filename="' . $this->fullExportConfig[$this->fullExportType]['filename'] . '.' . $this->fullExportConfig[$this->fullExportType]['extension'] . '"');
             header('Cache-Control: max-age=0');
             $objWriter->save('php://output');
             Yii::$app->end();
         }
     } else {
         if (strpos($this->layout, '{fullexport}') > 0) {
             $this->layout = strtr($this->layout, ['{fullexport}' => $this->renderFullExport(), '{toolbar}' => $this->toolbar]);
         } else {
             $this->layout = strtr($this->layout, ['{toolbar}' => $this->toolbar]);
         }
         parent::run();
     }
 }
Exemple #4
0
 public function run()
 {
     BfootableAsset::register($this->getView());
     $this->registerScript();
     parent::run();
 }
Exemple #5
0
 public function run()
 {
     if ($this->bootstrap && !empty($this->panel)) {
         $this->renderPanel();
     }
     if (strpos($this->layout, '{export}') > 0) {
         $this->layout = strtr($this->layout, ['{export}' => $this->renderExport(), '{toolbar}' => $this->toolbar]);
     } else {
         $this->layout = strtr($this->layout, ['{toolbar}' => $this->toolbar]);
     }
     if ($this->bootstrap && $this->responsive) {
         $this->layout = str_replace('{items}', '<div class="table-responsive">{items}</div>', $this->layout);
     }
     parent::run();
 }
 public function run()
 {
     $this->registerWidget();
     parent::run();
 }
Exemple #7
0
 public function run()
 {
     //        $this->panel['heading'] = FALSE;
     parent::run();
 }