wcmf logo wemove logo

CommitVisitor Class Reference
[Visitor]

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

Inheritance diagram for CommitVisitor:

Inheritance graph
[legend]

Public Member Functions

 visit (&$obj)
 getResult ()
 clearResult ()

Data Fields

 $_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-2009 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 929 2009-02-22 23:20:49Z iherwig

Author:
ingo herwig <ingo@wemove.com>

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


Member Function Documentation

visit ( &$  obj  ) 

Visit the current object in iteration and commit changes.

Parameters:
obj A reference to the current object.

Reimplemented from Visitor.

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

Referenced by SaveController::executeKernel(), and DeleteController::executeKernel().

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.

clearResult (  ) 

Clear the commit result.

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


Field Documentation

$_result = array()

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


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

This page generated via doxygen 1.5.8 Mon Mar 30 01:58:42 2009.
Copyright © 2009 wemove digital solutions GmbH.
sourceforge logo