diff options
Diffstat (limited to 'plugins/UsersManager')
-rw-r--r-- | plugins/UsersManager/API.php | 17 | ||||
-rw-r--r-- | plugins/UsersManager/Controller.php | 1 | ||||
-rw-r--r-- | plugins/UsersManager/UsersManager.php | 5 |
3 files changed, 13 insertions, 10 deletions
diff --git a/plugins/UsersManager/API.php b/plugins/UsersManager/API.php index 2337d76d63..c4c8dc0806 100644 --- a/plugins/UsersManager/API.php +++ b/plugins/UsersManager/API.php @@ -12,6 +12,7 @@ use Piwik\Config; use Piwik\Piwik; use Piwik\Common; use Piwik\Access; +use Piwik\Date; use Piwik\Site; /** @@ -198,7 +199,7 @@ class Piwik_UsersManager_API * If a user doesn't have any access to the $idSite ('noaccess'), * the user will not be in the returned array. * - * @param string website ID + * @param int website ID * * @return array The returned array has the format * array( @@ -249,7 +250,7 @@ class Piwik_UsersManager_API * this website will not be in the returned array. * If the user doesn't have any access, the returned array will be an empty array. * - * @param string User that has to be valid + * @param string $userLogin User that has to be valid * * @return array The returned array has the format * array( @@ -282,7 +283,7 @@ class Piwik_UsersManager_API /** * Returns the user information (login, password md5, alias, email, date_registered, etc.) * - * @param string the user login + * @param string $userLogin the user login * * @return array the user information */ @@ -302,7 +303,7 @@ class Piwik_UsersManager_API /** * Returns the user information (login, password md5, alias, email, date_registered, etc.) * - * @param string the user email + * @param string $userEmail the user email * * @return array the user information */ @@ -385,7 +386,7 @@ class Piwik_UsersManager_API 'alias' => $alias, 'email' => $email, 'token_auth' => $token_auth, - 'date_registered' => Piwik_Date::now()->getDatetime() + 'date_registered' => Date::now()->getDatetime() ) ); @@ -629,7 +630,7 @@ class Piwik_UsersManager_API * Delete a user given its login. * The user's access are not deleted. * - * @param string the user login. + * @param string $userLogin the user login. * */ private function deleteUserOnly($userLogin) @@ -645,8 +646,8 @@ class Piwik_UsersManager_API * Delete the user access for the given websites. * The array of idsite must be either null OR the values must have been checked before for their validity! * - * @param string the user login - * @param array array of idsites on which to delete the access. If null then delete all the access for this user. + * @param string $userLogin the user login + * @param array $idSites array of idsites on which to delete the access. If null then delete all the access for this user. * * @return bool true on success */ diff --git a/plugins/UsersManager/Controller.php b/plugins/UsersManager/Controller.php index 29f567757c..506c6e6acc 100644 --- a/plugins/UsersManager/Controller.php +++ b/plugins/UsersManager/Controller.php @@ -10,6 +10,7 @@ */ use Piwik\Piwik; use Piwik\Common; +use Piwik\Config; use Piwik\Site; /** diff --git a/plugins/UsersManager/UsersManager.php b/plugins/UsersManager/UsersManager.php index 58f585da67..8d2aeb7a57 100644 --- a/plugins/UsersManager/UsersManager.php +++ b/plugins/UsersManager/UsersManager.php @@ -9,13 +9,14 @@ * @package Piwik_UsersManager */ use Piwik\Piwik; +use Piwik\Plugin; /** * Manage Piwik users * * @package Piwik_UsersManager */ -class Piwik_UsersManager extends Piwik_Plugin +class Piwik_UsersManager extends Plugin { const PASSWORD_MIN_LENGTH = 6; const PASSWORD_MAX_LENGTH = 26; @@ -100,7 +101,7 @@ class Piwik_UsersManager extends Piwik_Plugin /** * Returns true if the password is complex enough (at least 6 characters and max 26 characters) * - * @param string email + * @param $input string * @return bool */ public static function isValidPasswordString($input) |