wCMF
3.6
|
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 | |
Definition at line 30 of file class.RemoteCapablePersistenceFacadeImpl.php.
RemoteCapablePersistenceFacadeImpl::RemoteCapablePersistenceFacadeImpl | ( | ) |
Constructor
Definition at line 42 of file class.RemoteCapablePersistenceFacadeImpl.php.
References SessionData\getInstance().
RemoteCapablePersistenceFacadeImpl::setResolveProxies | ( | $isResolvingProxies | ) |
Tell the PersistenceFacade implementation to resolve proxies or not.
isResolvingProxies | True/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.
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.
isTranslatingValues | True/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.
Definition at line 83 of file class.RemoteCapablePersistenceFacadeImpl.php.
References $_isTranslatingValues.
& RemoteCapablePersistenceFacadeImpl::load | ( | $oid, | |
$buildDepth, | |||
$buildAttribs = null , |
|||
$buildTypes = null |
|||
) |
Definition at line 90 of file class.RemoteCapablePersistenceFacadeImpl.php.
References PersistenceFacade\getOIDParameter(), isResolvingProxies(), loadRemoteObject(), and registerProxyObject().
& RemoteCapablePersistenceFacadeImpl::create | ( | $type, | |
$buildDepth, | |||
$buildAttribs = null |
|||
) |
Definition at line 111 of file class.RemoteCapablePersistenceFacadeImpl.php.
RemoteCapablePersistenceFacadeImpl::save | ( | & | $object | ) |
Definition at line 119 of file class.RemoteCapablePersistenceFacadeImpl.php.
References PersistenceFacade\getOIDParameter(), and WCMFException\throwEx().
RemoteCapablePersistenceFacadeImpl::delete | ( | $oid, | |
$recursive = true |
|||
) |
Definition at line 131 of file class.RemoteCapablePersistenceFacadeImpl.php.
References PersistenceFacade\getOIDParameter(), and WCMFException\throwEx().
RemoteCapablePersistenceFacadeImpl::getOIDs | ( | $type, | |
$criteria = null , |
|||
$orderby = null , |
|||
& | $pagingInfo | ||
) |
Definition at line 143 of file class.RemoteCapablePersistenceFacadeImpl.php.
RemoteCapablePersistenceFacadeImpl::loadObjects | ( | $type, | |
$buildDepth, | |||
$criteria = null , |
|||
$orderby = null , |
|||
& | $pagingInfo, | ||
$buildAttribs = null , |
|||
$buildTypes = null |
|||
) |
Definition at line 151 of file class.RemoteCapablePersistenceFacadeImpl.php.
References isResolvingProxies(), loadRemoteObject(), and registerProxyObject().
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.
umi | The universal model id (oid with server prefix) |
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().
RemoteCapablePersistenceFacadeImpl::loadRemoteObject | ( | $umi, | |
$buildDepth | |||
) |
Load the real subject of a proxy from the remote instance.
umi | The universal model id (oid with server prefix) |
buildDepth | buildDepth 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().
RemoteCapablePersistenceFacadeImpl::registerProxyObject | ( | $umi, | |
& | $obj, | ||
$buildDepth | |||
) |
Save a proxy object in the session.
umi | The universal model id (oid with server prefix) |
obj | The proxy object. |
buildDepth | The 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().
RemoteCapablePersistenceFacadeImpl::registerRemoteObject | ( | $umi, | |
& | $obj, | ||
$buildDepth | |||
) |
Save a remote object in the session.
umi | The universal model id (oid with server prefix) |
obj | The remote object. |
buildDepth | The depth the object was loaded. |
Definition at line 332 of file class.RemoteCapablePersistenceFacadeImpl.php.
References registerObject().
Referenced by loadRemoteObject().
RemoteCapablePersistenceFacadeImpl::registerObject | ( | $umi, | |
& | $obj, | ||
$buildDepth = BUILDDEPTH_SINGLE , |
|||
$varName | |||
) |
Save a object in the given session variable.
umi | The universal model id (oid with server prefix) |
obj | The object to register. |
buildDepth | The depth the object was loaded [default: BUILDDEPTH_SINGLE]. |
varName | The 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().
RemoteCapablePersistenceFacadeImpl::getRegisteredProxyObject | ( | $umi, | |
$buildDepth | |||
) |
Get a proxy object from the session.
umi | The universal model id (oid with server prefix) |
buildDepth | The requested build depth. |
Definition at line 374 of file class.RemoteCapablePersistenceFacadeImpl.php.
References getRegisteredObject().
Referenced by getProxyObject().
RemoteCapablePersistenceFacadeImpl::getRegisteredRemoteObject | ( | $umi, | |
$buildDepth | |||
) |
Get a remote object from the session.
umi | The universal model id (oid with server prefix) |
buildDepth | The requested build depth. |
Definition at line 386 of file class.RemoteCapablePersistenceFacadeImpl.php.
References getRegisteredObject().
Referenced by loadRemoteObject().
RemoteCapablePersistenceFacadeImpl::getRegisteredObject | ( | $umi, | |
$buildDepth = BUILDDEPTH_SINGLE , |
|||
$varName | |||
) |
Get a object from the given session variable.
umi | The universal model id (oid with server prefix) |
buildDepth | The requested build depth [default: BUILDDEPTH_SINGLE]. |
Definition at line 398 of file class.RemoteCapablePersistenceFacadeImpl.php.
References BUILDDEPTH_INFINITE, BUILDDEPTH_SINGLE, and SessionData\getInstance().
Referenced by getRegisteredProxyObject(), and getRegisteredRemoteObject().
RemoteCapablePersistenceFacadeImpl::makeUmis | ( | $oids, | |
$umiPrefix | |||
) |
Replace all object ids in an array with the umis according to the given umiPrefix.
oids | The array of oids |
umiPrefix | The umi prefix |
Definition at line 426 of file class.RemoteCapablePersistenceFacadeImpl.php.
References PersistenceFacade\composeOID(), and PersistenceFacade\decomposeOID().
Referenced by loadRemoteObject().
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().