Skip to content
Snippets Groups Projects
Commit 42958a55 authored by Olav Morken's avatar Olav Morken
Browse files

Added ModifiedInfo interface, and changed the Session class to implement this interface.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@302 44740490-163a-0410-bde0-09ae8108e29a
parent f6a4a0b6
No related branches found
No related tags found
No related merge requests found
<?php
/**
* The ModifiedInfo interface allows an object to export information about
* whether it has been modified since it was deserialized or not.
*/
interface SimpleSAML_ModifiedInfo {
/**
* This function is used to determine if this object has changed
* since it was deserialized.
*
* @return TRUE if it has changed, FALSE if not.
*/
public function isModified();
}
?>
\ No newline at end of file
...@@ -6,6 +6,8 @@ require_once('SimpleSAML/Session.php'); ...@@ -6,6 +6,8 @@ require_once('SimpleSAML/Session.php');
require_once('SimpleSAML/SessionHandler.php'); require_once('SimpleSAML/SessionHandler.php');
require_once('SimpleSAML/Metadata/MetaDataStorageHandler.php'); require_once('SimpleSAML/Metadata/MetaDataStorageHandler.php');
require_once('SimpleSAML/Logger.php'); require_once('SimpleSAML/Logger.php');
require_once('SimpleSAML/ModifiedInfo.php');
/** /**
* The Session class holds information about a user session, and everything attached to it. * The Session class holds information about a user session, and everything attached to it.
* *
...@@ -18,7 +20,7 @@ require_once('SimpleSAML/Logger.php'); ...@@ -18,7 +20,7 @@ require_once('SimpleSAML/Logger.php');
* @package simpleSAMLphp * @package simpleSAMLphp
* @version $Id$ * @version $Id$
*/ */
class SimpleSAML_Session { class SimpleSAML_Session implements SimpleSAML_ModifiedInfo {
const STATE_ONLINE = 1; const STATE_ONLINE = 1;
const STATE_LOGOUTINPROGRESS = 2; const STATE_LOGOUTINPROGRESS = 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment