protected function populateFromDrupalForm($values, $storage) {
    $this->drupalAcctProvisionServer = ($values['drupalAcctProvisionServer'] == 'none') ? 0 : $values['drupalAcctProvisionServer'];
    $this->ldapEntryProvisionServer = ($values['ldapEntryProvisionServer']  == 'none') ? 0 : $values['ldapEntryProvisionServer'];

    $this->drupalAcctProvisionTriggers = $values['drupalAcctProvisionTriggers'];
    $this->ldapEntryProvisionTriggers = $values['ldapEntryProvisionTriggers'];
    $this->orphanedDrupalAcctBehavior = $values['orphanedDrupalAcctBehavior'];
    $this->orphanedCheckQty = $values['orphanedCheckQty'];

    $this->manualAccountConflict = $values['manualAccountConflict'];
    $this->userConflictResolve  = ($values['userConflictResolve']) ? (int)$values['userConflictResolve'] : NULL;
    $this->acctCreation  = ($values['acctCreation']) ? (int)$values['acctCreation'] : NULL;
    $this->disableAdminPasswordField = $values['disableAdminPasswordField'];
   // $this->wsKey  = ($values['wsKey']) ? $values['wsKey'] : NULL;

   // $this->wsUserIps  = ($values['wsUserIps']) ? explode("\n", $values['wsUserIps']) : array();
  //  foreach ($this->wsUserIps as $i => $ip) {
  //    $this->wsUserIps[$i] = trim($ip);
  //  }
   // $this->wsEnabled  = ($values['wsEnabled']) ? (int)$values['wsEnabled'] : 0;

    $this->ldapUserSynchMappings = $this->synchMappingsFromForm($values, $storage);

  }
protected function populateFromDrupalForm($values, $storage) {
    $this->drupalAcctProvisionServer = ($values['drupalAcctProvisionServer'] == 'none') ? 0 : $values['drupalAcctProvisionServer'];
    $this->ldapEntryProvisionServer = ($values['ldapEntryProvisionServer']  == 'none') ? 0 : $values['ldapEntryProvisionServer'];

    $this->drupalAcctProvisionTriggers = $values['drupalAcctProvisionTriggers'];
    $this->ldapEntryProvisionTriggers = $values['ldapEntryProvisionTriggers'];
    $this->orphanedDrupalAcctBehavior = $values['orphanedDrupalAcctBehavior'];
    $this->orphanedCheckQty = $values['orphanedCheckQty'];

    $this->manualAccountConflict = $values['manualAccountConflict'];
    $this->userConflictResolve  = ($values['userConflictResolve']) ? (int)$values['userConflictResolve'] : NULL;
    $this->acctCreation  = ($values['acctCreation']) ? (int)$values['acctCreation'] : NULL;
    $this->disableAdminPasswordField = $values['disableAdminPasswordField'];
   // $this->wsKey  = ($values['wsKey']) ? $values['wsKey'] : NULL;

   // $this->wsUserIps  = ($values['wsUserIps']) ? explode("\n", $values['wsUserIps']) : array();
  //  foreach ($this->wsUserIps as $i => $ip) {
  //    $this->wsUserIps[$i] = trim($ip);
  //  }
   // $this->wsEnabled  = ($values['wsEnabled']) ? (int)$values['wsEnabled'] : 0;

    $this->ldapUserSynchMappings = $this->synchMappingsFromForm($values, $storage);

  }
protected function populateFromDrupalForm ( $ values , $ storage ) { $ this -> drupalAcctProvisionServer = ( $ values [ 'drupalAcctProvisionServer' ] == 'none' ) ? 0 : $ values [ 'drupalAcctProvisionServer' ] ; $ this -> ldapEntryProvisionServer = ( $ values [ 'ldapEntryProvisionServer' ] == 'none' ) ? 0 : $ values [ 'ldapEntryProvisionServer' ] ; $ this -> drupalAcctProvisionTriggers = $ values [ 'drupalAcctProvisionTriggers' ] ; $ this -> ldapEntryProvisionTriggers = $ values [ 'ldapEntryProvisionTriggers' ] ; $ this -> orphanedDrupalAcctBehavior = $ values [ 'orphanedDrupalAcctBehavior' ] ; $ this -> orphanedCheckQty = $ values [ 'orphanedCheckQty' ] ; $ this -> manualAccountConflict = $ values [ 'manualAccountConflict' ] ; $ this -> userConflictResolve = ( $ values [ 'userConflictResolve' ] ) ? ( int ) $ values [ 'userConflictResolve' ] : NULL ; $ this -> acctCreation = ( $ values [ 'acctCreation' ] ) ? ( int ) $ values [ 'acctCreation' ] : NULL ; $ this -> disableAdminPasswordField = $ values [ 'disableAdminPasswordField' ] ; // $this->wsKey  = ($values['wsKey']) ? $values['wsKey'] : NULL; // $this->wsUserIps  = ($values['wsUserIps']) ? explode("\n", $values['wsUserIps']) : array(); //  foreach ($this->wsUserIps as $i => $ip) { //    $this->wsUserIps[$i] = trim($ip); //  } // $this->wsEnabled  = ($values['wsEnabled']) ? (int)$values['wsEnabled'] : 0; $ this -> ldapUserSynchMappings = $ this -> synchMappingsFromForm ( $ values , $ storage ) ; }
populate object with data from form values

@param array $values as $form_state['values'] from drupal form api
@param array $storage as $form_state['storage'] from drupal form api
populate object with data from form values