Back to CacheController class

Method __construct

public
__construct
(mixed $options)
Constructor
Parameters
  • array $options Array of options
Since
  • 1.7.0

Method __construct - Source code

/**
 * Constructor
 *
 * @param   array  $options  Array of options
 *
 * @since   1.7.0
 */
public function __construct($options)
{
    $this->cache = new Cache($options);
    $this->options =& $this->cache->_options;
    // Overwrite default options with given options
    foreach ($options as $option => $value) {
        if (isset($options[$option])) {
            $this->options[$option] = $options[$option];
        }
    }
}