/**
  * 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);
 }
 /**
  * Create an authentication source.
  */
 function createAuthSource()
 {
     $this->validate();
     $auth = new AuthSource();
     $auth->setPlugin(Request::getUserVar('plugin'));
     $authDao =& DAORegistry::getDAO('AuthSourceDAO');
     if ($authDao->insertSource($auth)) {
         Request::redirect(null, null, 'editAuthSource', $auth->getAuthId());
     } else {
         Request::redirect(null, null, 'auth');
     }
 }
Beispiel #3
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;
 }