Skip to content

Commit

Permalink
Update interface.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Nov 12, 2014
1 parent ab01cd8 commit e884621
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions libraries/joomla/session/handler/interface.php
Expand Up @@ -23,6 +23,8 @@ interface JSessionHandlerInterface
*
* @return bool True if started.
*
* @since 3.4
*
* @throws RuntimeException If something goes wrong starting the session.
*/
public function start();
Expand All @@ -31,13 +33,17 @@ public function start();
* Checks if the session is started.
*
* @return bool True if started, false otherwise.
*
* @since 3.4
*/
public function isStarted();

/**
* Returns the session ID
*
* @return string The session ID or empty.
*
* @since 3.4
*/
public function getId();

Expand All @@ -47,13 +53,17 @@ public function getId();
* @param string $id Set the session id
*
* @return void
*
* @since 3.4
*/
public function setId($id);

/**
* Returns the session name
*
* @return mixed The session name.
*
* @since 3.4
*/
public function getName();

Expand All @@ -63,6 +73,8 @@ public function getName();
* @param string $name Set the name of the session
*
* @return void
*
* @since 3.4
*/
public function setName($name);

Expand All @@ -85,6 +97,8 @@ public function setName($name);
*
* @return bool True if session regenerated, false if error
*
* @since 3.4
*
* @throws RuntimeException If an error occurs while regenerating this storage
*/
public function regenerate($destroy = false, $lifetime = null);
Expand All @@ -99,6 +113,8 @@ public function regenerate($destroy = false, $lifetime = null);
*
* @return void
*
* @since 3.4
*
* @throws RuntimeException If the session is saved without being started, or if the session
* is already closed.
*/
Expand All @@ -108,6 +124,8 @@ public function save();
* Clear all session data in memory.
*
* @return void
*
* @since 3.4
*/
public function clear();
}

0 comments on commit e884621

Please sign in to comment.