public function SimpleLdapUserController::resetCache in Simple LDAP 7.2
Same name and namespace in other branches
- 7 simple_ldap_user/SimpleLdapUserController.class.php \SimpleLdapUserController::resetCache()
Resets the entity cache.
Overrides DrupalDefaultEntityController::resetCache
1 call to SimpleLdapUserController::resetCache()
- SimpleLdapUserController::delete_single in simple_ldap_user/
SimpleLdapUserController.class.php - Delete a user from the system.
File
- simple_ldap_user/
SimpleLdapUserController.class.php, line 15 - SimpleLdapUserController class.
Class
- SimpleLdapUserController
- Controller class for LDAP users.
Code
public function resetCache(array $ids = NULL) {
if (isset($ids)) {
foreach ($ids as $id) {
if (isset($this->entityCache[$id]->name)) {
SimpleLdapUser::reset($this->entityCache[$id]->name);
}
}
}
else {
SimpleLdapUser::reset();
}
return parent::resetCache($ids);
}