/** * Renders the grid as HTML */ public function render($entries = false) { if (is_array($entries)) { if (null !== $this->_provider) { $this->_provider->set_rows($entries); } else { $this->_provider = new org_openpsa_widgets_grid_provider($entries, $this->get_option('datatype')); $this->_provider->set_grid($this); } } echo $this->__toString(); }