wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
RemoteCapablePersistenceFacadeImpl Class Reference
+ Inheritance diagram for RemoteCapablePersistenceFacadeImpl:

Public Member Functions

 RemoteCapablePersistenceFacadeImpl ()
 
 setResolveProxies ($isResolvingProxies)
 
 isResolvingProxies ()
 
 setTranslatingValues ($isTranslatingValues)
 
 isTranslatingValues ()
 
load ($oid, $buildDepth, $buildAttribs=null, $buildTypes=null)
 
create ($type, $buildDepth, $buildAttribs=null)
 
 save (&$object)
 
 delete ($oid, $recursive=true)
 
 getOIDs ($type, $criteria=null, $orderby=null, &$pagingInfo)
 
 loadObjects ($type, $buildDepth, $criteria=null, $orderby=null, &$pagingInfo, $buildAttribs=null, $buildTypes=null)
 
 getProxyObject ($umi, $buildDepth)
 
 loadRemoteObject ($umi, $buildDepth)
 
 registerProxyObject ($umi, &$obj, $buildDepth)
 
 registerRemoteObject ($umi, &$obj, $buildDepth)
 
 registerObject ($umi, &$obj, $buildDepth=BUILDDEPTH_SINGLE, $varName)
 
 getRegisteredProxyObject ($umi, $buildDepth)
 
 getRegisteredRemoteObject ($umi, $buildDepth)
 
 getRegisteredObject ($umi, $buildDepth=BUILDDEPTH_SINGLE, $varName)
 
 makeUmis ($oids, $umiPrefix)
 
- Public Member Functions inherited from PersistenceFacadeImpl
 __sleep ()
 
load ($oid, $buildDepth, $buildAttribs=null, $buildTypes=null)
 
create ($type, $buildDepth, $buildAttribs=null)
 
 save (&$object)
 
 delete ($oid, $recursive=true)
 
 getCreatedOIDs ($type)
 
 getLastCreatedOID ($type)
 
 getOIDs ($type, $criteria=null, $orderby=null, &$pagingInfo)
 
 getOIDsEx ($type, $where=null, $orderby=null, &$pagingInfo)
 
 getFirstOID ($type, $criteria=null, $orderby=null, &$pagingInfo)
 
 getFirstOIDEx ($type, $where=null, $orderby=null, &$pagingInfo)
 
 loadObjects ($type, $buildDepth, $criteria=null, $orderby=null, &$pagingInfo, $buildAttribs=null, $buildTypes=null)
 
loadFirstObject ($type, $buildDepth, $criteria=null, $orderby=null, &$pagingInfo, $buildAttribs=null, $buildTypes=null)
 
 startTransaction ()
 
 commitTransaction ()
 
 rollbackTransaction ()
 
getMapper ($type)
 
 getClassFile ($parser, $className)
 
 setMapper ($type, &$mapper)
 
 storeConnection ($initParams, &$connection)
 
 setReadOnly ($isReadOnly)
 
 enableLogging ($logStrategy)
 
 disableLogging ()
 
 isLogging ()
 
 setCaching ($isCaching)
 
 clearCache ()
 
 getCacheKey ($oid, $buildDepth, $buildAttribs, $buildTypes)
 
 getId ()
 
 valueChanged (&$object, $name, $type, $oldValue, $newValue)
 
 propertyChanged (&$object, $name, $oldValue, $newValue)
 
 stateChanged (&$object, $oldValue, $newValue)
 
- Public Member Functions inherited from ChangeListener
 getId ()
 
 valueChanged (&$object, $name, $type, $oldValue, $newValue)
 
 propertyChanged (&$object, $name, $oldValue, $newValue)
 
 stateChanged (&$object, $oldValue, $newValue)
 

Public Attributes

const PROXY_OBJECTS_SESSION_VARNAME = 'RemoteCapablePersistenceFacadeImpl.proxyObjects'
 
const REMOTE_OBJECTS_SESSION_VARNAME = 'RemoteCapablePersistenceFacadeImpl.remoteObjects'
 
 $_isResolvingProxies = true
 
 $_isTranslatingValues = true
 
- Public Attributes inherited from PersistenceFacadeImpl
 $_mapperObjects = array()
 
 $_createdOIDs = array()
 
 $_dbConnections = array()
 
 $_cache = array()
 
 $_logging = false
 
 $_logStrategy = null
 
 $_isReadOnly = false
 
 $_isCaching = false
 
 $_inTransaction = false
 

Detailed Description

Definition at line 30 of file class.RemoteCapablePersistenceFacadeImpl.php.

Member Function Documentation

RemoteCapablePersistenceFacadeImpl::RemoteCapablePersistenceFacadeImpl ( )

Constructor

Definition at line 42 of file class.RemoteCapablePersistenceFacadeImpl.php.

References SessionData\getInstance().

+ Here is the call graph for this function:

RemoteCapablePersistenceFacadeImpl::setResolveProxies (   $isResolvingProxies)

Tell the PersistenceFacade implementation to resolve proxies or not.

Parameters
isResolvingProxiesTrue/False whether proxies should be resolved or not

Definition at line 59 of file class.RemoteCapablePersistenceFacadeImpl.php.

RemoteCapablePersistenceFacadeImpl::isResolvingProxies ( )

Check if the PersistenceFacade implementation is resolving proxies or not.

Returns
True/False whether proxies are resolved or not

Definition at line 67 of file class.RemoteCapablePersistenceFacadeImpl.php.

References $_isResolvingProxies.

Referenced by load(), and loadObjects().

RemoteCapablePersistenceFacadeImpl::setTranslatingValues (   $isTranslatingValues)

Tell the PersistenceFacade implementation to translate remote values or not.

Parameters
isTranslatingValuesTrue/False whether values should be translated or not

Definition at line 75 of file class.RemoteCapablePersistenceFacadeImpl.php.

RemoteCapablePersistenceFacadeImpl::isTranslatingValues ( )

Check if the PersistenceFacade implementation is translating remote values or not.

Returns
True/False whether values are tanslated or not

Definition at line 83 of file class.RemoteCapablePersistenceFacadeImpl.php.

References $_isTranslatingValues.

& RemoteCapablePersistenceFacadeImpl::load (   $oid,
  $buildDepth,
  $buildAttribs = null,
  $buildTypes = null 
)
See Also
PersistenceFacade::load()

Definition at line 90 of file class.RemoteCapablePersistenceFacadeImpl.php.

References PersistenceFacade\getOIDParameter(), isResolvingProxies(), loadRemoteObject(), and registerProxyObject().

+ Here is the call graph for this function:

& RemoteCapablePersistenceFacadeImpl::create (   $type,
  $buildDepth,
  $buildAttribs = null 
)
See Also
PersistenceFacade::create()

Definition at line 111 of file class.RemoteCapablePersistenceFacadeImpl.php.

RemoteCapablePersistenceFacadeImpl::save ( $object)
See Also
PersistenceFacade::save()

Definition at line 119 of file class.RemoteCapablePersistenceFacadeImpl.php.

References PersistenceFacade\getOIDParameter(), and WCMFException\throwEx().

+ Here is the call graph for this function:

RemoteCapablePersistenceFacadeImpl::delete (   $oid,
  $recursive = true 
)
See Also
PersistenceFacade::delete()

Definition at line 131 of file class.RemoteCapablePersistenceFacadeImpl.php.

References PersistenceFacade\getOIDParameter(), and WCMFException\throwEx().

+ Here is the call graph for this function:

RemoteCapablePersistenceFacadeImpl::getOIDs (   $type,
  $criteria = null,
  $orderby = null,
$pagingInfo 
)
See Also
PersistenceFacade::getOIDs()

Definition at line 143 of file class.RemoteCapablePersistenceFacadeImpl.php.

RemoteCapablePersistenceFacadeImpl::loadObjects (   $type,
  $buildDepth,
  $criteria = null,
  $orderby = null,
$pagingInfo,
  $buildAttribs = null,
  $buildTypes = null 
)
See Also
PersistenceFacade::loadObjects()

Definition at line 151 of file class.RemoteCapablePersistenceFacadeImpl.php.

References isResolvingProxies(), loadRemoteObject(), and registerProxyObject().

+ Here is the call graph for this function:

RemoteCapablePersistenceFacadeImpl::getProxyObject (   $umi,
  $buildDepth 
)

Get the proxy object for a remote object. This method makes sure that a proxy for the given remote object exists. If it does not exist, it will be created.

Parameters
umiThe universal model id (oid with server prefix)
Returns
The proxy object.

Definition at line 177 of file class.RemoteCapablePersistenceFacadeImpl.php.

References BUILDDEPTH_SINGLE, DATATYPE_ATTRIBUTE, Log\debug(), PersistenceFacade\decomposeOID(), PersistenceFacade\getInstance(), getRegisteredProxyObject(), and registerProxyObject().

Referenced by loadRemoteObject().

+ Here is the call graph for this function:

RemoteCapablePersistenceFacadeImpl::loadRemoteObject (   $umi,
  $buildDepth 
)

Load the real subject of a proxy from the remote instance.

Parameters
umiThe universal model id (oid with server prefix)
buildDepthbuildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build (except BUILDDEPTH_REQUIRED)

Definition at line 223 of file class.RemoteCapablePersistenceFacadeImpl.php.

References PersistenceFacade\composeOID(), DATATYPE_IGNORE, Log\debug(), PersistenceFacade\decomposeOID(), RemotingFacade\getInstance(), PersistenceFacade\getOIDParameter(), getProxyObject(), getRegisteredRemoteObject(), WCMFException\getStackTrace(), Log\isDebugEnabled(), makeUmis(), and registerRemoteObject().

Referenced by load(), and loadObjects().

+ Here is the call graph for this function:

RemoteCapablePersistenceFacadeImpl::registerProxyObject (   $umi,
$obj,
  $buildDepth 
)

Save a proxy object in the session.

Parameters
umiThe universal model id (oid with server prefix)
objThe proxy object.
buildDepthThe depth the object was loaded.

Definition at line 317 of file class.RemoteCapablePersistenceFacadeImpl.php.

References Log\debug(), PersistenceFacade\getOIDParameter(), WCMFException\getStackTrace(), and registerObject().

Referenced by getProxyObject(), load(), and loadObjects().

+ Here is the call graph for this function:

RemoteCapablePersistenceFacadeImpl::registerRemoteObject (   $umi,
$obj,
  $buildDepth 
)

Save a remote object in the session.

Parameters
umiThe universal model id (oid with server prefix)
objThe remote object.
buildDepthThe depth the object was loaded.

Definition at line 332 of file class.RemoteCapablePersistenceFacadeImpl.php.

References registerObject().

Referenced by loadRemoteObject().

+ Here is the call graph for this function:

RemoteCapablePersistenceFacadeImpl::registerObject (   $umi,
$obj,
  $buildDepth = BUILDDEPTH_SINGLE,
  $varName 
)

Save a object in the given session variable.

Parameters
umiThe universal model id (oid with server prefix)
objThe object to register.
buildDepthThe depth the object was loaded [default: BUILDDEPTH_SINGLE].
varNameThe session variable name.

Definition at line 347 of file class.RemoteCapablePersistenceFacadeImpl.php.

References BUILDDEPTH_SINGLE, ObjectFactory\getInstance(), and SessionData\getInstance().

Referenced by registerProxyObject(), and registerRemoteObject().

+ Here is the call graph for this function:

RemoteCapablePersistenceFacadeImpl::getRegisteredProxyObject (   $umi,
  $buildDepth 
)

Get a proxy object from the session.

Parameters
umiThe universal model id (oid with server prefix)
buildDepthThe requested build depth.
Returns
The proxy object or null if not found.

Definition at line 374 of file class.RemoteCapablePersistenceFacadeImpl.php.

References getRegisteredObject().

Referenced by getProxyObject().

+ Here is the call graph for this function:

RemoteCapablePersistenceFacadeImpl::getRegisteredRemoteObject (   $umi,
  $buildDepth 
)

Get a remote object from the session.

Parameters
umiThe universal model id (oid with server prefix)
buildDepthThe requested build depth.
Returns
The remote object or null if not found.

Definition at line 386 of file class.RemoteCapablePersistenceFacadeImpl.php.

References getRegisteredObject().

Referenced by loadRemoteObject().

+ Here is the call graph for this function:

RemoteCapablePersistenceFacadeImpl::getRegisteredObject (   $umi,
  $buildDepth = BUILDDEPTH_SINGLE,
  $varName 
)

Get a object from the given session variable.

Parameters
umiThe universal model id (oid with server prefix)
buildDepthThe requested build depth [default: BUILDDEPTH_SINGLE].
Returns
The object or null if not found.

Definition at line 398 of file class.RemoteCapablePersistenceFacadeImpl.php.

References BUILDDEPTH_INFINITE, BUILDDEPTH_SINGLE, and SessionData\getInstance().

Referenced by getRegisteredProxyObject(), and getRegisteredRemoteObject().

+ Here is the call graph for this function:

RemoteCapablePersistenceFacadeImpl::makeUmis (   $oids,
  $umiPrefix 
)

Replace all object ids in an array with the umis according to the given umiPrefix.

Parameters
oidsThe array of oids
umiPrefixThe umi prefix
Returns
The array of umis

Definition at line 426 of file class.RemoteCapablePersistenceFacadeImpl.php.

References PersistenceFacade\composeOID(), and PersistenceFacade\decomposeOID().

Referenced by loadRemoteObject().

+ Here is the call graph for this function:

Member Data Documentation

const RemoteCapablePersistenceFacadeImpl::PROXY_OBJECTS_SESSION_VARNAME = 'RemoteCapablePersistenceFacadeImpl.proxyObjects'

Definition at line 33 of file class.RemoteCapablePersistenceFacadeImpl.php.

const RemoteCapablePersistenceFacadeImpl::REMOTE_OBJECTS_SESSION_VARNAME = 'RemoteCapablePersistenceFacadeImpl.remoteObjects'

Definition at line 34 of file class.RemoteCapablePersistenceFacadeImpl.php.

RemoteCapablePersistenceFacadeImpl::$_isResolvingProxies = true

Definition at line 36 of file class.RemoteCapablePersistenceFacadeImpl.php.

Referenced by isResolvingProxies().

RemoteCapablePersistenceFacadeImpl::$_isTranslatingValues = true

Definition at line 37 of file class.RemoteCapablePersistenceFacadeImpl.php.

Referenced by isTranslatingValues().


The documentation for this class was generated from the following file: