wcmf logo wemove logo

OutputVisitor Class Reference
[Visitor]

The OutputVisitor is used to output an object's content to different destinations and formats. The spezial output destination/format may be configured by using the corresponding OutputStrategy, which is set using the setOutputStrategy() method. More...

Inheritance diagram for OutputVisitor:

Inheritance graph
[legend]

Public Member Functions

 OutputVisitor ($outputStrategy=null)
 setOutputStrategy (&$strategy)
 visit (&$obj)
 doPreVisit ()
 doPostVisit ()

Data Fields

 $_outputStrategy = null

Detailed Description

The OutputVisitor is used to output an object's content to different destinations and formats. The spezial output destination/format may be configured by using the corresponding OutputStrategy, which is set using the setOutputStrategy() method.

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.OutputVisitor.php 929 2009-02-22 23:20:49Z iherwig

Author:
ingo herwig <ingo@wemove.com>

Definition at line 31 of file class.OutputVisitor.php.


Member Function Documentation

OutputVisitor ( outputStrategy = null  ) 

Constructor.

Parameters:
outputStrategy A reference to an OutputStrategy to use (If 'null', a DefaultOutputStrategy will be used).

Definition at line 38 of file class.OutputVisitor.php.

setOutputStrategy ( &$  strategy  ) 

Set the PersistenceStrategy.

Parameters:
strategy A reference to an OutputStrategy to use.

Definition at line 49 of file class.OutputVisitor.php.

visit ( &$  obj  ) 

Visit the current object in iteration and output its content using the configured OutputStrategy.

Parameters:
obj A reference to the current object.

Reimplemented from Visitor.

Definition at line 58 of file class.OutputVisitor.php.

doPreVisit (  ) 

Output the document header.

Reimplemented from Visitor.

Definition at line 65 of file class.OutputVisitor.php.

doPostVisit (  ) 

Output the document footer.

Reimplemented from Visitor.

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


Field Documentation

$_outputStrategy = null

Definition at line 33 of file class.OutputVisitor.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:45 2009.
Copyright © 2009 wemove digital solutions GmbH.
sourceforge logo