示例#1
0
 /**
  * Combines all parts from the output
  * To deploy or to render()
  *
  * @param bool $deploy IF this is the deploy and not a render part
  *
  * @return void
  */
 private function _buildGridRender($deploy = true)
 {
     $bHeader = $this->_buildExtraRows('beforeHeader') . $this->_buildHeader() . $this->_buildExtraRows('afterHeader');
     $bTitles = $this->_buildExtraRows('beforeTitles') . $this->_buildMassActions() . $this->_buildTitlesTable(parent::_buildTitles(), true) . $this->_buildExtraRows('afterTitles');
     $bFilters = $this->_buildExtraRows('beforeFilters') . $this->_buildFiltersTable(parent::_buildFilters()) . $this->_buildExtraRows('afterFilters');
     $bGrid = $this->_buildGridTable(parent::_buildGrid());
     if (!$this->getInfo("hRow,title")) {
         $bSqlExp = $this->_buildExtraRows('beforeSqlExpTable') . $this->_buildSqlexpTable(parent::_buildSqlExp()) . $this->_buildExtraRows('afterSqlExpTable');
     } else {
         $bSqlExp = '';
     }
     $bPagination = $this->_buildExtraRows('beforePagination') . $this->_buildPagination() . $this->_buildExtraRows('afterPagination');
     if ($deploy == true) {
         $this->_renderDeploy['header'] = $bHeader;
         $this->_renderDeploy['titles'] = $bTitles;
         $this->_renderDeploy['filters'] = $bFilters;
         $this->_renderDeploy['grid'] = $bGrid;
         $this->_renderDeploy['sqlExp'] = $bSqlExp;
         $this->_renderDeploy['pagination'] = $bPagination;
     }
     $this->_render['header'] = $bHeader;
     $this->_render['titles'] = $bTitles;
     $this->_render['filters'] = $bFilters;
     $this->_render['grid'] = $bGrid;
     $this->_render['sqlExp'] = $bSqlExp;
     $this->_render['pagination'] = $bPagination;
 }