예제 #1
0
 function testNamespaceDelete()
 {
     Options_Model_Options_Manager::deleteNamespace(__CLASS__);
     $result = Options_Model_Options_Manager::get($this->_key, __CLASS__);
     $this->assertEquals($result, null);
 }
예제 #2
0
 /**
  * Delete all options by namespace
  *
  * @param string $namespace
  * @return void
  */
 public static function deleteNamespace($namespace)
 {
     $self = Options_Model_Options_Manager::getInstance();
     $self->getDbTable()->deleteNamespace($namespace);
     if (isset(self::$_cache[$namespace])) {
         unset(self::$_cache[$namespace]);
     }
 }
예제 #3
0
 /**
  * Set option
  *
  * @param  string $key
  * @param  mixed  $value
  * @param  string $namespace
  * @param  string $type
  * @return void
  */
 public function set($key, $value, $namespace = 'default', $type = null)
 {
     Options_Model_Options_Manager::set($key, $value, $namespace, $type);
 }
예제 #4
0
 /**
  * Set Layout
  *
  * @param string $value
  * @return object Options_Model_Options_Manager
  */
 public static function setLayout($value)
 {
     return Options_Model_Options_Manager::set('signature', $value);
 }