Static Public Member Functions | Private Member Functions | Static Private Attributes

GauffrPersistentSessionIdentity Class Reference

Manage ezcPersistentSessionIdentityDecorator. More...

List of all members.

Static Public Member Functions

static getInstance ()

Private Member Functions

 __clone ()

Static Private Attributes

static $instance = null

Detailed Description

Manage ezcPersistentSessionIdentityDecorator.

The GauffrPersistentSessionIdentity classes.

Manage one instance of ezcPersistentSessionIdentityDecorator.

Version:
0.4

Definition at line 19 of file gauffrpersistentsessionidentity.php.


Member Function Documentation

GauffrPersistentSessionIdentity::__clone (  )  [private]

Don't allow clone

Exceptions:
Exception because Gauffr don't allow clone.

Definition at line 50 of file gauffrpersistentsessionidentity.php.

    {
        throw new Exception ('Clone is not allowed');
    }

static GauffrPersistentSessionIdentity::getInstance (  )  [static]

Returns an instance of the class Gauffr.

Returns:
Gauffr Instance of Gauffr

Definition at line 33 of file gauffrpersistentsessionidentity.php.

References GauffrPersistentObject::getPersistentSessionInstance().

Referenced by GauffrPersistentObject::getPersistentSessionIdentity().

    {
        if ( is_null( self::$instance ) )
        {
            $persistentSession = GauffrPersistentObject::getPersistentSessionInstance();
            $identityMap = new ezcPersistentBasicIdentityMap( $persistentSession->definitionManager );
            self::$instance = new GauffrPersistentSessionIdentity( $persistentSession, $identityMap );
        }
        return self::$instance;
    }


Member Data Documentation

GauffrPersistentSessionIdentity::$instance = null [static, private]
Parameters:
Gauffr Instance

Definition at line 24 of file gauffrpersistentsessionidentity.php.


The documentation for this class was generated from the following file:
 All Classes Functions Variables