Back to Input class

Method unserialize

public \Joomla\CMS\Input\Input
unserialize
(mixed $input)
Method to unserialize the input.
Parameters
  • string $input The serialized input.
Returns
  • \Joomla\CMS\Input\Input The input object.
Since
  • 3.0.0
Deprecated
  • 5.0
Class: Input
Project: Joomla

Method unserialize - Source code

/**
 * Method to unserialize the input.
 *
 * @param   string  $input  The serialized input.
 *
 * @return  Input  The input object.
 *
 * @since   3.0.0
 * @deprecated  5.0  Use Joomla\Input\Input instead
 */
public function unserialize($input)
{
    // Unserialize the options, data, and inputs.
    list($this->options, $this->data, $this->inputs) = unserialize($input);
    // Load the filter.
    if (isset($this->options['filter'])) {
        $this->filter = $this->options['filter'];
    } else {
        $this->filter = InputFilter::getInstance();
    }
}