Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefangiehl@gmail.com>2012-05-03 02:08:23 +0400
committersgiehl <stefangiehl@gmail.com>2012-05-03 02:08:23 +0400
commit0e64dd6c7cdfa5c10a71e2c354cc545b2c592c81 (patch)
tree3c0d8708a7e5cb3287ab17394d107543eeb819d3 /plugins/UsersManager
parent9f5147e17b2f728e1071b2e7f18dd386e92f70a5 (diff)
added/fixed several doc blocks; fixed some css
git-svn-id: http://dev.piwik.org/svn/trunk@6243 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/UsersManager')
-rw-r--r--plugins/UsersManager/API.php52
-rw-r--r--plugins/UsersManager/Controller.php3
-rw-r--r--plugins/UsersManager/UsersManager.php8
-rw-r--r--plugins/UsersManager/templates/UsersManager.tpl1
4 files changed, 32 insertions, 32 deletions
diff --git a/plugins/UsersManager/API.php b/plugins/UsersManager/API.php
index 5b071f468b..ee28df7216 100644
--- a/plugins/UsersManager/API.php
+++ b/plugins/UsersManager/API.php
@@ -26,14 +26,15 @@
class Piwik_UsersManager_API
{
static private $instance = null;
-
+
/**
- * You can create your own Users Plugin to override this class.
+ * You can create your own Users Plugin to override this class.
* Example of how you would overwrite the UsersManager_API with your own class:
* Call the following in your plugin __construct() for example:
- *
+ *
* Zend_Registry::set('UsersManager_API',Piwik_MyCustomUsersManager_API::getInstance());
- *
+ *
+ * @throws Exception
* @return Piwik_UsersManager_API
*/
static public function getInstance()
@@ -67,13 +68,12 @@ class Piwik_UsersManager_API
Piwik::checkUserIsSuperUserOrTheUser($userLogin);
Piwik_SetOption($this->getPreferenceId($userLogin, $preferenceName), $preferenceValue);
}
-
+
/**
* Gets a user preference
* @param string $userLogin
* @param string $preferenceName
- * @param string $preferenceValue
- * @return void
+ * @return bool|string
*/
public function getUserPreference($userLogin, $preferenceName)
{
@@ -89,7 +89,7 @@ class Piwik_UsersManager_API
/**
* Returns the list of all the users
*
- * @param string Comma separated list of users to select. If not specified, will return all users
+ * @param string $userLogins Comma separated list of users to select. If not specified, will return all users
* @return array the list of all the users
*/
public function getUsers( $userLogins = '' )
@@ -467,9 +467,9 @@ class Piwik_UsersManager_API
/**
* Delete a user and all its access, given its login.
*
- * @param string the user login.
+ * @param string $userLogin the user login.
*
- * @exception if the user doesn't exist
+ * @throws Exception if the user doesn't exist
*
* @return bool true on success
*/
@@ -520,15 +520,15 @@ class Piwik_UsersManager_API
*
* If access = 'noaccess' the current access (if any) will be deleted.
* If access = 'view' or 'admin' the current access level is deleted and updated with the new value.
- *
- * @param string Access to grant. Must have one of the following value : noaccess, view, admin
- * @param string The user login
- * @param int|array The array of idSites on which to apply the access level for the user.
+ *
+ * @param string $userLogin The user login
+ * @param string $access Access to grant. Must have one of the following value : noaccess, view, admin
+ * @param int|array $idSites The array of idSites on which to apply the access level for the user.
* If the value is "all" then we apply the access level to all the websites ID for which the current authentificated user has an 'admin' access.
*
- * @exception if the user doesn't exist
- * @exception if the access parameter doesn't have a correct value
- * @exception if any of the given website ID doesn't exist
+ * @throws Exception if the user doesn't exist
+ * @throws Exception if the access parameter doesn't have a correct value
+ * @throws Exception if any of the given website ID doesn't exist
*
* @return bool true on success
*/
@@ -587,8 +587,8 @@ class Piwik_UsersManager_API
/**
* Throws an exception is the user login doesn't exist
*
- * @param string user login
- * @exception if the user doesn't exist
+ * @param string $userLogin user login
+ * @throws Exception if the user doesn't exist
*/
private function checkUserExists( $userLogin )
{
@@ -601,8 +601,8 @@ class Piwik_UsersManager_API
/**
* Throws an exception is the user email cannot be found
*
- * @param string user email
- * @exception if the user doesn't exist
+ * @param string $userEmail user email
+ * @throws Exception if the user doesn't exist
*/
private function checkUserEmailExists( $userEmail )
{
@@ -687,12 +687,14 @@ class Piwik_UsersManager_API
}
}
}
-
+
/**
* Generates a unique MD5 for the given login & password
- *
- * @param string Login
- * @param string MD5ied string of the password
+ *
+ * @param string $userLogin Login
+ * @param string $md5Password MD5ied string of the password
+ * @throws Exception
+ * @return string
*/
public function getTokenAuth($userLogin, $md5Password)
{
diff --git a/plugins/UsersManager/Controller.php b/plugins/UsersManager/Controller.php
index 533e9cbb83..1202620fea 100644
--- a/plugins/UsersManager/Controller.php
+++ b/plugins/UsersManager/Controller.php
@@ -251,9 +251,10 @@ class Piwik_UsersManager_Controller extends Piwik_Controller_Admin
}
echo $toReturn;
}
-
+
/**
* Records settings from the "User Settings" page
+ * @throws Exception
*/
public function recordUserSettings()
{
diff --git a/plugins/UsersManager/UsersManager.php b/plugins/UsersManager/UsersManager.php
index 136ada7962..0ffb7336ab 100644
--- a/plugins/UsersManager/UsersManager.php
+++ b/plugins/UsersManager/UsersManager.php
@@ -59,7 +59,7 @@ class Piwik_UsersManager extends Piwik_Plugin
* 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.
*
- * @param Piwik_Event_Notification $notification
+ * @param Piwik_Event_Notification $notification notification object
* @return void
*/
function recordAdminUsersInCache($notification)
@@ -80,7 +80,7 @@ class Piwik_UsersManager extends Piwik_Plugin
/**
* Delete user preferences associated with a particular site
*
- * @param Event_Notification $notification
+ * @param Piwik_Event_Notification $notification notification object
*/
function deleteSite( $notification )
{
@@ -94,7 +94,7 @@ class Piwik_UsersManager extends Piwik_Plugin
*
* @see Piwik_AssetManager
*
- * @param Event_Notification $notification
+ * @param Piwik_Event_Notification $notification notification object
*/
function getJsFiles( $notification )
{
@@ -106,8 +106,6 @@ class Piwik_UsersManager extends Piwik_Plugin
/**
* Add admin menu items
- *
- * @param Event_Notification $notification (not used)
*/
function addMenu()
{
diff --git a/plugins/UsersManager/templates/UsersManager.tpl b/plugins/UsersManager/templates/UsersManager.tpl
index 471e0da89a..4d848db027 100644
--- a/plugins/UsersManager/templates/UsersManager.tpl
+++ b/plugins/UsersManager/templates/UsersManager.tpl
@@ -18,7 +18,6 @@
cursor: pointer;
}
.addrow {
- font-color:#3A477B;
padding:1em;
font-weight:bold;
}