public function ldapContextToProvEvents($ldap_context = NULL) {

    switch ($ldap_context) {

      case 'ldap_user_prov_to_drupal':
        $result = array(LDAP_USER_EVENT_SYNCH_TO_DRUPAL_USER, LDAP_USER_EVENT_CREATE_DRUPAL_USER, LDAP_USER_EVENT_LDAP_ASSOCIATE_DRUPAL_ACCT);
        break;

      case 'ldap_user_prov_to_ldap':
        $result = array(LDAP_USER_EVENT_SYNCH_TO_LDAP_ENTRY, LDAP_USER_EVENT_CREATE_LDAP_ENTRY);
        break;

      default:
        $result = ldap_user_all_events();

    }

    return $result;

  }
public function ldapContextToProvEvents($ldap_context = NULL) {

    switch ($ldap_context) {

      case 'ldap_user_prov_to_drupal':
        $result = array(LDAP_USER_EVENT_SYNCH_TO_DRUPAL_USER, LDAP_USER_EVENT_CREATE_DRUPAL_USER, LDAP_USER_EVENT_LDAP_ASSOCIATE_DRUPAL_ACCT);
        break;

      case 'ldap_user_prov_to_ldap':
        $result = array(LDAP_USER_EVENT_SYNCH_TO_LDAP_ENTRY, LDAP_USER_EVENT_CREATE_LDAP_ENTRY);
        break;

      default:
        $result = ldap_user_all_events();

    }

    return $result;

  }
public function ldapContextToProvEvents ( $ ldap_context = NULL ) { switch ( $ ldap_context ) { case 'ldap_user_prov_to_drupal' : $ result = array ( LDAP_USER_EVENT_SYNCH_TO_DRUPAL_USER , LDAP_USER_EVENT_CREATE_DRUPAL_USER , LDAP_USER_EVENT_LDAP_ASSOCIATE_DRUPAL_ACCT ) ; break ; case 'ldap_user_prov_to_ldap' : $ result = array ( LDAP_USER_EVENT_SYNCH_TO_LDAP_ENTRY , LDAP_USER_EVENT_CREATE_LDAP_ENTRY ) ; break ; default : $ result = ldap_user_all_events ( ) ; } return $ result ; }
converts the more general ldap_context string to its associated ldap user event
converts the more general ldap_context string to its associated ldap user event