예제 #1
0
 public static function set($name, $value)
 {
     self::$cache[$name] = $value;
     if (Component::isActive('Value')) {
         return Value::set($name, $value);
     }
     $name = explode('.', $name);
     if (count($name) == 1) {
         array_unshift($name, 'application');
     }
     //Update the config file
     return Backend::setConfig($name, $value);
 }
 /**
  * @covers Classes\Value\Value::set
  * @todo   Implement testSet().
  * 
  * @expectedException \Classes\Exception\Value\EmptyArgumentException
  */
 public function testSet_2()
 {
     $this->object->set();
 }
예제 #3
0
 public function set($value)
 {
     parent::set(strtolower($value));
 }