wCMF
3.6
|
Public Member Functions | |
OutputVisitor ($outputStrategy=null) | |
setOutputStrategy (&$strategy) | |
visit (&$obj) | |
doPreVisit () | |
doPostVisit () | |
![]() | |
startIterator (&$iterator) | |
startArray (&$array) | |
visit (&$obj) | |
doPreVisit () | |
doPostVisit () | |
Public Attributes | |
$_outputStrategy = null | |
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.
Definition at line 31 of file class.OutputVisitor.php.
OutputVisitor::OutputVisitor | ( | $outputStrategy = null | ) |
Constructor.
outputStrategy | A 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.
strategy | A 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.
obj | A 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.
OutputVisitor::$_outputStrategy = null |
Definition at line 33 of file class.OutputVisitor.php.