void assertSiteAdministrator(
)
|
|
API Tags:
See: | GalleryCoreApi::assertUserIsSiteAdministrator |
void deleteUserItems(
$userId
)
|
|
Parameters:
API Tags:
See: | GalleryCoreApi::deleteUserItems |
void fetchLanguageCodeForUser(
$userId
)
|
|
Parameters:
API Tags:
See: | GalleryCoreApi::fetchLanguageCodeForUser |
void fetchUserByUserName(
[
$userName = null]
)
|
|
Parameters:
API Tags:
See: | GalleryCoreApi::fetchUserByUserName |
void fetchUserCount(
[
$substring = null], [
$groupId = null]
)
|
|
Parameters:
API Tags:
See: | GalleryCoreApi::fetchUserCount |
void fetchUsernames(
[
$count = null], [
$offset = null], [
$substring = null]
)
|
|
Parameters:
|
$count: |
|
|
$offset: |
|
|
$substring: |
|
API Tags:
See: | GalleryCoreApi::fetchUsernames |
void handleEvent(
$event
)
|
|
Handler for Gallery::Login and Gallery::FailedLogin events.
Parameters:
API Tags:
See: | GalleryEventListener::handleEvent |
void isDisabledUsername(
$userName
)
|
|
Parameters:
API Tags:
See: | GalleryCoreApi::isDisabledUsername |
bool _isDisabled(
int
$count, int
$lastAttempt
)
|
|
Return true if the failure count and last attempt are over our threshold. For every 10 failures, logins are disabled for 1 hour.
Parameters:
int |
$count: |
the number of consecutive failed logins |
int |
$lastAttempt: |
the time of the last failed login attempt |
API Tags:
Return: | true if the account is disabled |
Access: | private |