Пример #1
0
 /**
  * Renders the ajax grid
  * @param ajax_grid_pager $pager
  */
 public function render($pager = null)
 {
     $sortdir_name = $this->sortdir->client_id();
     if (!$this->_isExternalBuffer) {
         $this->buffer->start();
     }
     if ($this->_renderFilterTop) {
         echo $this->render_filters('top');
     }
     if (!is_null($this->pager) && $this->_renderPagerTop) {
         echo $this->pager->render('top');
     }
     echo parent::render(array('buffer' => $this->buffer->client_id(), 'sortdir_name' => $this->sortdir->client_id(), 'sorting_name' => $this->sorting->client_id()));
     if ($this->_renderFilterBottom) {
         echo $this->render_filters('bottom');
     }
     if (!is_null($this->pager)) {
         echo $this->pager->render('bottom');
     }
     if (!$this->_isExternalBuffer) {
         $this->buffer->end();
     }
 }
Пример #2
0
 /**
  * Returns confirmed
  * @return bool
  */
 public function isConfirmed()
 {
     return (bool) $this->confirmvar->get_value();
 }
Пример #3
0
 /**
  * Registers an ajax variable in the buffer
  *
  * @param ajax_var $variable
  */
 public function register_var(&$variable)
 {
     if (!isset($this->vars[$variable->get_id()])) {
         $this->vars[$variable->get_id()] =& $variable;
     }
     $client_id = $variable->client_id();
     if ($this->is_post_back && isset($_REQUEST[$client_id])) {
         $variable->set_value($_REQUEST[$client_id]);
     }
 }