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

Public Member Functions

 OutputVisitor ($outputStrategy=null)
 
 setOutputStrategy (&$strategy)
 
 visit (&$obj)
 
 doPreVisit ()
 
 doPostVisit ()
 
- Public Member Functions inherited from Visitor
 startIterator (&$iterator)
 
 startArray (&$array)
 
 visit (&$obj)
 
 doPreVisit ()
 
 doPostVisit ()
 

Public Attributes

 $_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-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.OutputVisitor.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 31 of file class.OutputVisitor.php.

Member Function Documentation

OutputVisitor::OutputVisitor (   $outputStrategy = null)

Constructor.

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

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

OutputVisitor::setOutputStrategy ( $strategy)

Set the PersistenceStrategy.

Parameters
strategyA reference to an OutputStrategy to use.

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

OutputVisitor::visit ( $obj)

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

Parameters
objA reference to the current object.

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

OutputVisitor::doPreVisit ( )

Output the document header.

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

OutputVisitor::doPostVisit ( )

Output the document footer.

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

Member Data Documentation

OutputVisitor::$_outputStrategy = null

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


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