10 defined(
'JPATH_PLATFORM') or die;
48 $this->app = isset($app) ? $app : $this->loadApplication();
49 $this->input = isset($input) ? $input : $this->loadInput();
59 public function getApplication()
71 public function getInput()
83 public function serialize()
85 return serialize($this->input);
98 public function unserialize($input)
101 $this->app = $this->loadApplication();
104 $this->input = unserialize($input);
106 if (!($this->input instanceof
JInput))
108 throw new UnexpectedValueException(sprintf(
'%s::unserialize would not accept a `%s`.', get_class($this), gettype($this->input)));
121 protected function loadApplication()
133 protected function loadInput()
135 return $this->app->input;