diff options
author | sgiehl <stefangiehl@gmail.com> | 2012-05-27 01:08:06 +0400 |
---|---|---|
committer | sgiehl <stefangiehl@gmail.com> | 2012-05-27 01:08:06 +0400 |
commit | f0ffb387356941fa8518b3c546a239cf49c3524a (patch) | |
tree | eb305898ecb30a82aafcf8e4ada344077b1c0c41 /core/Nonce.php | |
parent | 71fc2e87eb99212ccd0da6235a8410f55c39c7b5 (diff) |
moved another interface to its own file; fixed/added lot of doc blocks
git-svn-id: http://dev.piwik.org/svn/trunk@6325 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Nonce.php')
-rw-r--r-- | core/Nonce.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/Nonce.php b/core/Nonce.php index 1acd4c7464..33d1c24d55 100644 --- a/core/Nonce.php +++ b/core/Nonce.php @@ -28,9 +28,9 @@ class Piwik_Nonce /** * Generate nonce * - * @param string $id Unique id to avoid namespace conflicts, e.g., ModuleName.ActionName - * @param int $ttl Optional time-to-live in seconds; default is 5 minutes - * @return string Nonce + * @param string $id Unique id to avoid namespace conflicts, e.g., ModuleName.ActionName + * @param int $ttl Optional time-to-live in seconds; default is 5 minutes + * @return string Nonce */ static public function getNonce($id, $ttl = 300) { @@ -54,9 +54,9 @@ class Piwik_Nonce /** * Verify nonce and check referrer (if present, i.e., it may be suppressed by the browser or a proxy/network). * - * @param string $id Unique id - * @param string $cnonce Nonce sent to client - * @return bool true if valid; false otherwise + * @param string $id Unique id + * @param string $cnonce Nonce sent to client + * @return bool true if valid; false otherwise */ static public function verifyNonce($id, $cnonce) { @@ -91,7 +91,7 @@ class Piwik_Nonce /** * Discard nonce ("now" as opposed to waiting for garbage collection) * - * @param string $id Unique id + * @param string $id Unique id */ static public function discardNonce($id) { |