Esempio n. 1
0
 static function getOption($option)
 {
     if (empty(self::$settings)) {
         self::$settings = new am4_Settings_Config();
     }
     return self::$settings->get($option);
 }
Esempio n. 2
0
 public function load()
 {
     $this->settings = $this->config->get($this->category, array());
     return $this;
 }
Esempio n. 3
0
 function saveForm($post)
 {
     $options = new am4_Settings_Config();
     $options->loadFromArray($post)->save();
 }