function testNamespaceDelete() { Options_Model_Options_Manager::deleteNamespace(__CLASS__); $result = Options_Model_Options_Manager::get($this->_key, __CLASS__); $this->assertEquals($result, null); }
/** * 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]); } }
/** * 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); }
/** * Set Layout * * @param string $value * @return object Options_Model_Options_Manager */ public static function setLayout($value) { return Options_Model_Options_Manager::set('signature', $value); }