public function isSynched($attr_token, $prov_events, $direction) {
    $result = (boolean)(
      isset($this->synchMapping[$direction][$attr_token]['prov_events']) &&
      count(array_intersect($prov_events, $this->synchMapping[$direction][$attr_token]['prov_events']))
    );
    if (!$result) {
      if (isset($this->synchMapping[$direction][$attr_token])) {
        //debug($this->synchMapping[$direction][$attr_token]);
      }
      else {
      //  debug("$attr_token not in ldapUserConf::synchMapping");
      }
    }
    return $result;
  }
public function isSynched($attr_token, $prov_events, $direction) {
    $result = (boolean)(
      isset($this->synchMapping[$direction][$attr_token]['prov_events']) &&
      count(array_intersect($prov_events, $this->synchMapping[$direction][$attr_token]['prov_events']))
    );
    if (!$result) {
      if (isset($this->synchMapping[$direction][$attr_token])) {
        //debug($this->synchMapping[$direction][$attr_token]);
      }
      else {
      //  debug("$attr_token not in ldapUserConf::synchMapping");
      }
    }
    return $result;
  }
public function isSynched ( $ attr_token , $ prov_events , $ direction ) { $ result = ( boolean ) ( isset ( $ this -> synchMapping [ $ direction ] [ $ attr_token ] [ 'prov_events' ] ) && count ( array_intersect ( $ prov_events , $ this -> synchMapping [ $ direction ] [ $ attr_token ] [ 'prov_events' ] ) ) ) ; if ( ! $ result ) { if ( isset ( $ this -> synchMapping [ $ direction ] [ $ attr_token ] ) ) { //debug($this->synchMapping[$direction][$attr_token]); } else { //  debug("$attr_token not in ldapUserConf::synchMapping"); } } return $ result ; }
given configuration of synching, determine is a given synch should occur

@param string $attr_token e.g. [property.mail], [field.ldap_user_puid_property]
@param object $ldap_server
@param array $prov_events e.g. array(LDAP_USER_EVENT_CREATE_DRUPAL_USER).  typically array with 1 element
@param scalar $direction LDAP_USER_PROV_DIRECTION_TO_DRUPAL_USER or LDAP_USER_PROV_DIRECTION_TO_LDAP_ENTRY
given configuration of synching determine is a given synch should occur