setOption($name, $value); } } /** * 设置配置 * * @param string $name Name of the option * @param mixed $value Value of the option * @throws Zeed_Exception * @return void */ public function setOption($name, $value) { /** * Locker Options */ if (array_key_exists($name, $this->_specificOptions)) { // This a specic option of this frontend $this->_specificOptions[$name] = $value; return; } throw new Zeed_Exception("Incorrect option name : {$name} at " . __METHOD__); } public function __destruct() { $this->unlock(); } /** * 锁定 * * @return boolean */ public function lock() { return false; } /** * 释放锁定 * * @return boolean */ public function unlock() { return true; } } // End ^ Native EOL ^ encoding