PHP Class Piwik\Plugins\UsersManager\UsersManager

Inheritance: extends Piwik\Plugin
Datei anzeigen Open project: piwik/piwik Class Usage Examples

Public Methods

Method 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 method

public static checkPassword ( $password )

checkPasswordHash() public static method

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 method

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

getClientSideTranslationKeys() public method

public getClientSideTranslationKeys ( &$translationKeys )

getCronArchiveTokenAuth() public method

public getCronArchiveTokenAuth ( &$tokens )

getJsFiles() public method

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 method

public static getPasswordHash ( $password )

getStylesheetFiles() public method

Get CSS files
public getStylesheetFiles ( &$stylesheets )

isValidPasswordString() public static method

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

onPlatformInitialized() public method

recordAdminUsersInCache() public method

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
return void

registerEvents() public method

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