function pageTable($page, $table = NULL, $doCols = true) { if (!isset($this->cache['page']) or $page != $this->cache['page']) { $this->cache['page'] = $page; $this->_save(); } $this->_cachePage($page); if (!$table) { require_once '../classes/Table.php'; $table = new Table(); } if ($doCols) { $table->columns($this->columns()); } if ($this->name) { $table->parameters(array('rpt' => $this->name, 'rpt_colnames' => $this->columnNames())); } $table->start(); foreach ($this->cache['rows'] as $row) { $table->row($row); } $table->end(); }