From f0ffb387356941fa8518b3c546a239cf49c3524a Mon Sep 17 00:00:00 2001 From: sgiehl Date: Sat, 26 May 2012 21:08:06 +0000 Subject: 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 --- core/Session/Namespace.php | 4 ++++ core/Session/SaveHandler/DbTable.php | 17 ++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) (limited to 'core/Session') 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) -- cgit v1.2.3