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-27 01:08:06 +0400
committersgiehl <stefangiehl@gmail.com>2012-05-27 01:08:06 +0400
commitf0ffb387356941fa8518b3c546a239cf49c3524a (patch)
treeeb305898ecb30a82aafcf8e4ada344077b1c0c41 /core/Session
parent71fc2e87eb99212ccd0da6235a8410f55c39c7b5 (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/Session')
-rw-r--r--core/Session/Namespace.php4
-rw-r--r--core/Session/SaveHandler/DbTable.php17
2 files changed, 14 insertions, 7 deletions
diff --git a/core/Session/Namespace.php b/core/Session/Namespace.php
index 2393508048..c01b976a97 100644
--- a/core/Session/Namespace.php
+++ b/core/Session/Namespace.php
@@ -18,6 +18,10 @@
*/
class Piwik_Session_Namespace extends Zend_Session_Namespace
{
+ /**
+ * @param string $namespace
+ * @param bool $singleInstance
+ */
public function __construct($namespace = 'Default', $singleInstance = false)
{
if(Piwik_Common::isPhpCliMode())
diff --git a/core/Session/SaveHandler/DbTable.php b/core/Session/SaveHandler/DbTable.php
index c891f915f5..e3e32ca890 100644
--- a/core/Session/SaveHandler/DbTable.php
+++ b/core/Session/SaveHandler/DbTable.php
@@ -21,6 +21,9 @@ class Piwik_Session_SaveHandler_DbTable implements Zend_Session_SaveHandler_Inte
protected $config;
protected $maxLifetime;
+ /**
+ * @param array $config
+ */
function __construct($config)
{
$this->config = $config;
@@ -40,8 +43,8 @@ class Piwik_Session_SaveHandler_DbTable implements Zend_Session_SaveHandler_Inte
/**
* Open Session - retrieve resources
*
- * @param string $save_path
- * @param string $name
+ * @param string $save_path
+ * @param string $name
* @return boolean
*/
public function open($save_path, $name)
@@ -64,7 +67,7 @@ class Piwik_Session_SaveHandler_DbTable implements Zend_Session_SaveHandler_Inte
/**
* Read session data
*
- * @param string $id
+ * @param string $id
* @return string
*/
public function read($id)
@@ -83,8 +86,8 @@ class Piwik_Session_SaveHandler_DbTable implements Zend_Session_SaveHandler_Inte
/**
* Write Session - commit data to resource
*
- * @param string $id
- * @param mixed $data
+ * @param string $id
+ * @param mixed $data
* @return boolean
*/
public function write($id, $data)
@@ -109,7 +112,7 @@ class Piwik_Session_SaveHandler_DbTable implements Zend_Session_SaveHandler_Inte
* Destroy Session - remove data from resource for
* given session id
*
- * @param string $id
+ * @param string $id
* @return boolean
*/
public function destroy($id)
@@ -126,7 +129,7 @@ class Piwik_Session_SaveHandler_DbTable implements Zend_Session_SaveHandler_Inte
* Garbage Collection - remove old session data older
* than $maxlifetime (in seconds)
*
- * @param int $maxlifetime
+ * @param int $maxlifetime timestamp in seconds
* @return true
*/
public function gc($maxlifetime)