00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 class GauffrPersistentSessionIdentity extends ezcPersistentSessionIdentityDecorator
00020 {
00021
00022
00023
00024 static private $instance = null;
00025
00026
00027
00028
00029
00030
00031
00032
00033 public static function getInstance()
00034 {
00035 if ( is_null( self::$instance ) )
00036 {
00037 $persistentSession = GauffrPersistentObject::getPersistentSessionInstance();
00038 $identityMap = new ezcPersistentBasicIdentityMap( $persistentSession->definitionManager );
00039 self::$instance = new GauffrPersistentSessionIdentity( $persistentSession, $identityMap );
00040 }
00041 return self::$instance;
00042 }
00043
00044
00045
00046
00047
00048
00049
00050 private function __clone ()
00051 {
00052 throw new Exception ('Clone is not allowed');
00053 }
00054
00055 }
00056
00057 ?>