public function set_from_request() { parent::set_from_request(); if (!$this->identifier) { $this->identifier = clean_uri; } if (ajax && $_REQUEST['act'] == 'do_sort_submit') { if (isset($this->identifier)) { session::set($this->sort, $this->calling_class, $this->identifier, 'sort'); } } }
public function set_from_request() { parent::set_from_request(); if (!$this->identifier) { $this->identifier = clean_uri; } if (ajax && $_REQUEST['act'] == 'do_filter_submit') { if (isset($this->identifier)) { session::set([], get_class($this->source_data), $this->identifier, 'filter'); foreach ($this->fields as $field) { if (isset($this->{$field->field_name})) { session::set($this->{$field->field_name}, get_class($this->source_data), $this->identifier, 'filter', $field->field_name); } } } } }
public function set_from_request() { parent::set_from_request(); switch ($this->source) { case 0: $this->OS8 = null; $this->OSGB36_lat = null; $this->OSGB36_lng = null; $this->WGS84_lat = null; $this->WGS84_lng = null; break; case 1: $this->OS6 = null; $this->OSGB36_lat = null; $this->OSGB36_lng = null; $this->WGS84_lat = null; $this->WGS84_lng = null; break; case 2: $this->OS6 = null; $this->OS8 = null; $this->WGS84_lat = null; $this->WGS84_lng = null; $this->OSGB36_lat = geometry::coordinate_normalise($this->OSGB36_lat); $this->OSGB36_lng = geometry::coordinate_normalise($this->OSGB36_lng); break; case 3: $this->OS6 = null; $this->OS8 = null; $this->OSGB36_lat = null; $this->OSGB36_lng = null; $this->WGS84_lat = geometry::coordinate_normalise($this->WGS84_lat); $this->WGS84_lng = geometry::coordinate_normalise($this->WGS84_lng); break; default: break; } $this->set_disabled(); }