You are here

protected function LdapAuthenticationConfAdmin::populateFromDrupalForm in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_authentication/LdapAuthenticationConfAdmin.class.php \LdapAuthenticationConfAdmin::populateFromDrupalForm()
  2. 7.2 ldap_authentication/LdapAuthenticationConfAdmin.class.php \LdapAuthenticationConfAdmin::populateFromDrupalForm()
2 calls to LdapAuthenticationConfAdmin::populateFromDrupalForm()
LdapAuthenticationConfAdmin::drupalFormSubmit in ldap_authentication/LdapAuthenticationConfAdmin.class.php
LdapAuthenticationConfAdmin::drupalFormValidate in ldap_authentication/LdapAuthenticationConfAdmin.class.php
validate form, not object

File

ldap_authentication/LdapAuthenticationConfAdmin.class.php, line 552

Class

LdapAuthenticationConfAdmin

Code

protected function populateFromDrupalForm($values) {
  $this->authenticationMode = $values['authenticationMode'] ? (int) $values['authenticationMode'] : NULL;
  $this->sids = $values['authenticationServers'];
  $this->allowOnlyIfTextInDn = $this
    ->linesToArray($values['allowOnlyIfTextInDn']);
  $this->excludeIfTextInDn = $this
    ->linesToArray($values['excludeIfTextInDn']);
  $this->allowTestPhp = $values['allowTestPhp'];
  $this->loginConflictResolve = $values['loginConflictResolve'] ? (int) $values['loginConflictResolve'] : NULL;
  $this->acctCreation = $values['acctCreation'] ? (int) $values['acctCreation'] : NULL;
  $this->loginUIUsernameTxt = $values['loginUIUsernameTxt'] ? (string) $values['loginUIUsernameTxt'] : NULL;
  $this->loginUIPasswordTxt = $values['loginUIPasswordTxt'] ? (string) $values['loginUIPasswordTxt'] : NULL;
  $this->ldapUserHelpLinkUrl = $values['ldapUserHelpLinkUrl'] ? (string) $values['ldapUserHelpLinkUrl'] : NULL;
  $this->ldapUserHelpLinkText = $values['ldapUserHelpLinkText'] ? (string) $values['ldapUserHelpLinkText'] : NULL;
  $this->excludeIfNoAuthorizations = $values['excludeIfNoAuthorizations'] ? (int) $values['excludeIfNoAuthorizations'] : NULL;
  $this->emailOption = $values['emailOption'] ? (int) $values['emailOption'] : NULL;
  $this->emailUpdate = $values['emailUpdate'] ? (int) $values['emailUpdate'] : NULL;

  // $this->ssoEnabled = ($values['ssoEnabled']) ? (int)$values['ssoEnabled'] : NULL;
  $this->ssoRemoteUserStripDomainName = $values['ssoRemoteUserStripDomainName'] ? (int) $values['ssoRemoteUserStripDomainName'] : NULL;
  $this->seamlessLogin = $values['seamlessLogin'] ? (int) $values['seamlessLogin'] : NULL;
  $this->cookieExpire = $values['cookieExpire'] ? (int) $values['cookieExpire'] : NULL;
  $this->ldapImplementation = $values['ldapImplementation'] ? (string) $values['ldapImplementation'] : NULL;
}