RemoteCapablePersistenceFacade.php
145 public function loadObjects($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null) {
168 * @param $buildDepth buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build (except BuildDepth::REQUIRED)
191 $proxy = $persistenceFacade->loadFirstObject($umi->getType(), $buildDepth, array($umi->getType().'.umi' => $umi->toString()));
211 * @param $buildDepth buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build (except BuildDepth::REQUIRED)
314 // TODO: fix caching remote objects (invalidate cache entry, if an association to the object changes)
327 protected function registerObject(ObjectId $umi, PersistentObject $obj, $buildDepth, $varName) {
const PROXY_OBJECTS_SESSION_VARNAME
Definition: RemoteCapablePersistenceFacade.php:36
getRegisteredProxyObject(ObjectId $umi, $buildDepth)
Get a proxy object from the session.
Definition: RemoteCapablePersistenceFacade.php:347
EventManager is responsible for dispatching events to registered listeners.
Definition: EventManager.php:21
getRegisteredRemoteObject(ObjectId $umi, $buildDepth)
Get a remote object from the session.
Definition: RemoteCapablePersistenceFacade.php:358
registerRemoteObject(ObjectId $umi, PersistentObject $obj, $buildDepth)
Save a remote object in the session.
Definition: RemoteCapablePersistenceFacade.php:313
OutputStrategy defines the interface for classes that write an object's content to a destination (cal...
Definition: OutputStrategy.php:22
loadObjects($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: RemoteCapablePersistenceFacade.php:145
NodeIterator is used to iterate over a tree/list built of Nodes using a Depth-First-Algorithm.
Definition: NodeIterator.php:36
registerProxyObject(ObjectID $umi, PersistentObject $obj, $buildDepth)
Save a proxy object in the session.
Definition: RemoteCapablePersistenceFacade.php:298
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:27
registerObject(ObjectId $umi, PersistentObject $obj, $buildDepth, $varName)
Save a object in the given session variable.
Definition: RemoteCapablePersistenceFacade.php:327
getProxyObject(ObjectId $umi, $buildDepth)
Get the proxy object for a remote object.
Definition: RemoteCapablePersistenceFacade.php:171
static getInstance($name, $dynamicConfiguration=array())
Definition: ObjectFactory.php:39
PagingInfo contains information about a paged list.
Definition: PagingInfo.php:18
RemotingServer is used to communicate with other wCMF instances.
Definition: RemotingServer.php:40
Session is the interface for session implementations and defines access to session variables...
Definition: Session.php:21
setTranslatingValues($isTranslatingValues)
Tell the PersistenceFacade implementation to translate remote values or not.
Definition: RemoteCapablePersistenceFacade.php:93
RemoteCapablePersistenceFacade delegates local persistence operations to the default PersistenceFacad...
Definition: RemoteCapablePersistenceFacade.php:33
isTranslatingValues()
Check if the PersistenceFacade implementation is translating remote values or not.
Definition: RemoteCapablePersistenceFacade.php:101
const REMOTE_OBJECTS_SESSION_VARNAME
Definition: RemoteCapablePersistenceFacade.php:37
makeUmis($oids, $umiPrefix)
Replace all object ids in an array with the umis according to the given umiPrefix.
Definition: RemoteCapablePersistenceFacade.php:398
Default PersistenceFacade implementation.
Definition: DefaultPersistenceFacade.php:31
create($type, $buildDepth=BuildDepth::SINGLE)
Definition: RemoteCapablePersistenceFacade.php:129
getRegisteredObject(ObjectId $umi, $buildDepth, $varName)
Get a object from the given session variable.
Definition: RemoteCapablePersistenceFacade.php:370
getOIDs($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: RemoteCapablePersistenceFacade.php:137
load(ObjectId $oid, $buildDepth=BuildDepth::SINGLE)
Definition: RemoteCapablePersistenceFacade.php:108
isResolvingProxies()
Check if the PersistenceFacade implementation is resolving proxies or not.
Definition: RemoteCapablePersistenceFacade.php:85
__construct(EventManager $eventManager, OutputStrategy $logStrategy, Session $session)
Constructor.
Definition: RemoteCapablePersistenceFacade.php:52
setResolveProxies($isResolvingProxies)
Tell the PersistenceFacade implementation to resolve proxies or not.
Definition: RemoteCapablePersistenceFacade.php:77
loadRemoteObject(ObjectId $umi, $buildDepth)
Load the real subject of a proxy from the remote instance.
Definition: RemoteCapablePersistenceFacade.php:213
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:24