index that shows options and setup check
[phancap.git] / src / phancap / Options.php
index b51f2a788569c8c7abc51680891f822244f27261..6aaa49f6131424187fd5ebf7d9119858c4691aa2 100644 (file)
@@ -3,7 +3,7 @@ namespace phancap;
 
 class Options
 {
-    public static $options = array(
+    public $options = array(
         /**
          * Browser settings
          */
@@ -96,7 +96,7 @@ class Options
      */
     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'])) {
@@ -263,8 +263,8 @@ class Options
     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;
     }
 }
 ?>