You are here

public static function SimpleLdapUser::reset in Simple LDAP 7

Same name and namespace in other branches
  1. 7.2 simple_ldap_user/SimpleLdapUser.class.php \SimpleLdapUser::reset()

Clear the cache for the given username.

Parameters

string $name: If specified, clear the cache entry for the given user. If not specified, all cache entries are cleared.

1 call to SimpleLdapUser::reset()
SimpleLdapUserController::resetCache in simple_ldap_user/SimpleLdapUserController.class.php
Resets the entity cache.

File

simple_ldap_user/SimpleLdapUser.class.php, line 340
Class defining a simple LDAP user.

Class

SimpleLdapUser
@file Class defining a simple LDAP user.

Code

public static function reset($name = NULL) {
  if ($name === NULL) {
    self::$users = array();
  }
  else {
    unset(self::$users[$name]);
  }
}