示例#1
0
 /**
  * Save conference settings.
  */
 function execute()
 {
     $authDao =& DAORegistry::getDAO('AuthSourceDAO');
     $auth = new AuthSource();
     $auth->setAuthId($this->authId);
     $auth->setTitle($this->getData('title'));
     $auth->setSettings($this->getData('settings'));
     $authDao->updateObject($auth);
 }
示例#2
0
 /**
  * Internal function to return an AuthSource object from a row.
  * @param $row array
  * @return AuthSource
  */
 function &_returnAuthSourceFromRow(&$row)
 {
     $auth = new AuthSource();
     $auth->setAuthId($row['auth_id']);
     $auth->setTitle($row['title']);
     $auth->setPlugin($row['plugin']);
     $auth->setPluginClass(@$this->plugins[$row['plugin']]);
     $auth->setDefault($row['auth_default']);
     $auth->setSettings(unserialize($row['settings']));
     return $auth;
 }