PHP Class Piwik\Plugins\UsersManager\UsersManager

Inheritance: extends Piwik\Plugin
Afficher le fichier Open project: piwik/piwik Class Usage Examples

Méthodes publiques

Méthode Description
checkPassword ( $password )
checkPasswordHash ( string $passwordHash, string $exceptionMessage ) Checks the password hash length. Used as a sanity check.
deleteSite ( $idSite ) Delete user preferences associated with a particular site
getClientSideTranslationKeys ( &$translationKeys )
getCronArchiveTokenAuth ( &$tokens )
getJsFiles ( &$jsFiles ) Return list of plug-in specific JavaScript files to be imported by the asset manager
getPasswordHash ( $password )
getStylesheetFiles ( &$stylesheets ) Get CSS files
isValidPasswordString ( $input ) : boolean Returns true if the password is complex enough (at least 6 characters and max 26 characters)
onPlatformInitialized ( )
recordAdminUsersInCache ( &$attributes, $idSite ) : void Hooks when a website tracker cache is flushed (website/user updated, cache deleted, or empty cache) Will record in the tracker config file the list of Admin token_auth for this website. This will be used when the Tracking API is used with setIp(), setForceDateTime(), setVisitorId(), etc.
registerEvents ( )

Method Details

checkPassword() public static méthode

public static checkPassword ( $password )

checkPasswordHash() public static méthode

Checks the password hash length. Used as a sanity check.
public static checkPasswordHash ( string $passwordHash, string $exceptionMessage )
$passwordHash string The password hash to check.
$exceptionMessage string Message of the exception thrown.

deleteSite() public méthode

Delete user preferences associated with a particular site
public deleteSite ( $idSite )

getClientSideTranslationKeys() public méthode

public getClientSideTranslationKeys ( &$translationKeys )

getCronArchiveTokenAuth() public méthode

public getCronArchiveTokenAuth ( &$tokens )

getJsFiles() public méthode

Return list of plug-in specific JavaScript files to be imported by the asset manager
See also: Piwik\AssetManager
public getJsFiles ( &$jsFiles )

getPasswordHash() public static méthode

public static getPasswordHash ( $password )

getStylesheetFiles() public méthode

Get CSS files
public getStylesheetFiles ( &$stylesheets )

isValidPasswordString() public static méthode

Returns true if the password is complex enough (at least 6 characters and max 26 characters)
public static isValidPasswordString ( $input ) : boolean
$input string
Résultat boolean

onPlatformInitialized() public méthode

recordAdminUsersInCache() public méthode

Hooks when a website tracker cache is flushed (website/user updated, cache deleted, or empty cache) Will record in the tracker config file the list of Admin token_auth for this website. This will be used when the Tracking API is used with setIp(), setForceDateTime(), setVisitorId(), etc.
public recordAdminUsersInCache ( &$attributes, $idSite ) : void
$attributes
$idSite
Résultat void

registerEvents() public méthode

See also: Piwik\Plugin::registerEvents
public registerEvents ( )