renderRows() публичный Метод

Render lister rows.
public renderRows ( )
Пример #1
0
 /**
  * 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');
     }
 }