public function setValue($value) { $key = $this->name; $sid = Dog::getServer()->getID(); $uid = Dog::getUser()->getID(); $c = Dog::getChannel(); if ($this->module !== NULL) { $mod = $this->module; switch ($this->scope) { case 'g': return Dog_Conf_Mod::setConf($mod, $key, $value); case 's': return Dog_Conf_Mod_Serv::setConf($mod, $sid, $key, $value); case 'c': if ($c !== false) { return Dog_Conf_Mod_Chan::setConf($mod, $c->getID(), $key, $value); } return false; case 'u': return Dog_Conf_Mod_User::setConf($mod, $uid, $key, $value); } } elseif ($this->plugin !== NULL) { $plg = $this->plugin; switch ($this->scope) { case 'g': return Dog_Conf_Plug::setConf($plg, $key, $value); case 's': return Dog_Conf_Plug_Serv::setConf($plg, $sid, $key, $value); case 'c': if ($c !== false) { Dog_Conf_Plug_Chan::setConf($plg, $c->getID(), $key, $value); } return false; case 'u': return Dog_Conf_Plug_User::setConf($plg, $uid, $key, $value); } } return false; }
public function configSetAbbos($s) { return Dog_Conf_Mod_Chan::setConf($this->getName(), Dog::getChannel()->getID(), 'boards', $s); }