Back to Cli 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: Cli
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 the `joomla/console` package instead
 */
public function unserialize($input)
{
    // Unserialize the executable, args, options, data, and inputs.
    list($this->executable, $this->args, $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();
    }
}