You are here

protected function LdapAuthorizationConsumerConfAdmin::populateFromDrupalForm in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.2 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::populateFromDrupalForm()
  2. 7 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::populateFromDrupalForm()
2 calls to LdapAuthorizationConsumerConfAdmin::populateFromDrupalForm()
LdapAuthorizationConsumerConfAdmin::drupalFormSubmit in ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php
LdapAuthorizationConsumerConfAdmin::drupalFormValidate in ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php

File

ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php, line 341

Class

LdapAuthorizationConsumerConfAdmin
LDAP Authorization Consumer Configration Admin Class

Code

protected function populateFromDrupalForm($op, $values) {
  $this->inDatabase = drupal_strtolower($op) == 'edit' || drupal_strtolower($op) == 'save';
  $this->consumerType = $values['consumer_type'];
  $this->sid = $values['sid'];
  $this->status = (bool) $values['status'];
  $this->onlyApplyToLdapAuthenticated = (bool) @$values['only_ldap_authenticated'];
  $this->useFirstAttrAsGroupId = (bool) $values['use_first_attr_as_groupid'];
  $this->mappings = $this->consumer
    ->normalizeMappings($this
    ->pipeListToArray($values['mappings'], FALSE));
  $this->useMappingsAsFilter = (bool) @$values['use_filter'];
  $this->synchOnLogon = (bool) @$values['synchronization_modes']['user_logon'];
  $this->regrantLdapProvisioned = (bool) @$values['synchronization_actions']['regrant_ldap_provisioned'];
  $this->revokeLdapProvisioned = (bool) @$values['synchronization_actions']['revoke_ldap_provisioned'];
  $this->createConsumers = (bool) @$values['synchronization_actions']['create_consumers'];
}