renderRows() public method

Render lister rows.
public renderRows ( )
示例#1
0
文件: Basic.php 项目: TigerBui/atk4
 /**
  * Render grid rows
  *
  * Extends renderRows method of CompleteLister
  *
  * @return void
  */
 function renderRows()
 {
     // precache template chunks
     $this->precacheTemplate();
     // extend CompleteLister renderRows method
     parent::renderRows();
     // if we have at least one data row rendered, then remove not_found message
     if ($this->total_rows) {
         $this->template->del('not_found');
     } elseif ($this->no_records_message) {
         $this->template->tryDel('all_table');
         $this->template->set('not_found_message', $this->no_records_message);
     }
 }
示例#2
0
 function renderRows()
 {
     $this->precacheTemplate();
     parent::renderRows();
     if (!$this->totals['row_count']) {
         $def_template = $this->defaultTemplate();
         $this->totals = false;
         $this->template->del('full_table');
     } else {
         $this->template->del('not_found');
     }
 }