private function provisionEventConfigurable($prov_event, $mapping = NULL) {

    if ($mapping) {
      if ($prov_event == LDAP_USER_EVENT_CREATE_LDAP_ENTRY || $prov_event == LDAP_USER_EVENT_SYNCH_TO_LDAP_ENTRY) {
        $configurable = (boolean)(!isset($mapping['configurable_to_ldap']) || $mapping['configurable_to_ldap']);
      }
      elseif ($prov_event == LDAP_USER_EVENT_CREATE_DRUPAL_USER || $prov_event == LDAP_USER_EVENT_SYNCH_TO_DRUPAL_USER) {
        $configurable = (boolean)(!isset($mapping['configurable_to_drupal']) || $mapping['configurable_to_drupal']);
      }
    }
    else {
      $configurable = TRUE;
    }

    return $configurable;
  }
private function provisionEventConfigurable($prov_event, $mapping = NULL) {

    if ($mapping) {
      if ($prov_event == LDAP_USER_EVENT_CREATE_LDAP_ENTRY || $prov_event == LDAP_USER_EVENT_SYNCH_TO_LDAP_ENTRY) {
        $configurable = (boolean)(!isset($mapping['configurable_to_ldap']) || $mapping['configurable_to_ldap']);
      }
      elseif ($prov_event == LDAP_USER_EVENT_CREATE_DRUPAL_USER || $prov_event == LDAP_USER_EVENT_SYNCH_TO_DRUPAL_USER) {
        $configurable = (boolean)(!isset($mapping['configurable_to_drupal']) || $mapping['configurable_to_drupal']);
      }
    }
    else {
      $configurable = TRUE;
    }

    return $configurable;
  }
private function provisionEventConfigurable ( $ prov_event , $ mapping = NULL ) { if ( $ mapping ) { if ( $ prov_event == LDAP_USER_EVENT_CREATE_LDAP_ENTRY || $ prov_event == LDAP_USER_EVENT_SYNCH_TO_LDAP_ENTRY ) { $ configurable = ( boolean ) ( ! isset ( $ mapping [ 'configurable_to_ldap' ] ) || $ mapping [ 'configurable_to_ldap' ] ) ; } elseif ( $ prov_event == LDAP_USER_EVENT_CREATE_DRUPAL_USER || $ prov_event == LDAP_USER_EVENT_SYNCH_TO_DRUPAL_USER ) { $ configurable = ( boolean ) ( ! isset ( $ mapping [ 'configurable_to_drupal' ] ) || $ mapping [ 'configurable_to_drupal' ] ) ; } } else { $ configurable = TRUE ; } return $ configurable ; }
Is a particular synch method viable for a given mapping?
That is, Can it be enabled in the UI by admins?

@param int $prov_event
@param array $mapping is array of mapping configuration.

@return boolean
Is a particular synch method viable for a given mapping? That is Can it be enabled in the UI by admins?