Beispiel #1
0
 public function get_push_state()
 {
     $push_state = new push_state();
     $push_state->url = isset($this->current) ? $this->current->get_url() : '/' . _get::__namespace($this, 0) . ($this->view != '_default' ? '/' . $this->view : '');
     if ($this->page > 1) {
         $push_state->url .= 'page/' . $this->page;
     }
     $push_state->title = $this->page_object->title;
     $push_state->data->url = $push_state->url;
     $push_state->data->module = get_class($this);
     $push_state->data->act = isset($_REQUEST['ajax_act']) ? $_REQUEST['ajax_act'] : 'ajax_load';
     $push_state->data->request = $_REQUEST;
     $push_state->data->id = '#' . $this->view_object->get_page_selector();
     $push_state->push = !isset($_REQUEST['is_popped']) ? true : !$_REQUEST['is_popped'];
     return $push_state;
 }
Beispiel #2
0
 public function get_page_selector()
 {
     return get::__namespace($this->module, 0) . (isset($this->module->current) && $this->module->current->get_primary_key() ? '-' . $this->module->current->get_primary_key() : '');
 }
Beispiel #3
0
 public function get_page_selector()
 {
     return get::__namespace($this->module, 0) . '-igc';
 }