class Options
{
- public static $options = array(
+ public $options = array(
/**
* Browser settings
*/
*/
public function parse($arValues)
{
- foreach (static::$options as $name => $arOption) {
+ foreach ($this->options as $name => $arOption) {
$this->values[$name] = $arOption['default'];
if (!isset($arValues[$name])) {
if (isset($arOption['required'])) {
public function setConfig(Config $config)
{
$this->config = $config;
- static::$options['smaxage']['default'] = $this->config->screenshotMaxAge;
- static::$options['smaxage']['min'] = $this->config->screenshotMinAge;
+ $this->options['smaxage']['default'] = $this->config->screenshotMaxAge;
+ $this->options['smaxage']['min'] = $this->config->screenshotMinAge;
}
}
?>