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

Public Member Functions

 visit (&$obj)
 
 getResult ()
 
 clearResult ()
 
- Public Member Functions inherited from Visitor
 startIterator (&$iterator)
 
 startArray (&$array)
 
 visit (&$obj)
 
 doPreVisit ()
 
 doPostVisit ()
 

Public Attributes

 $_result = array()
 

Detailed Description

The CommitVisitor is used to commit the object's changes to the object storage. The objects must implement the PersistentObject interface.

wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH

Licensed under the terms of any of the following licenses at your choice:

See the license.txt file distributed with this work for additional information.

Id:
class.CommitVisitor.php 1462 2014-02-04 23:52:27Z iherwig
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 28 of file class.CommitVisitor.php.

Member Function Documentation

CommitVisitor::visit ( $obj)

Visit the current object in iteration and commit changes.

Parameters
objA reference to the current object.

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

References STATE_DELETED, STATE_DIRTY, and STATE_NEW.

CommitVisitor::getResult ( )

Get the last commit result.

Returns
An associative array with the persistent states as keys and arrays of oids (after commit) as values

Definition at line 64 of file class.CommitVisitor.php.

References $_result.

CommitVisitor::clearResult ( )

Clear the commit result.

Definition at line 72 of file class.CommitVisitor.php.

Member Data Documentation

CommitVisitor::$_result = array()

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

Referenced by getResult().


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