13 use wcmf\lib\model\output\DefaultOutputStrategy;
26 private $outputStrategy =
null;
33 if (get_class($outputStrategy) !=
'') {
34 $this->outputStrategy = $outputStrategy;
37 $this->outputStrategy =
new DefaultOutputStrategy();
46 $this->outputStrategy = $strategy;
55 $this->outputStrategy->writeObject($obj);
62 $this->outputStrategy->writeHeader();
69 $this->outputStrategy->writeFooter();
OutputVisitor is used to output an object's content to different destinations and formats.
doPostVisit()
Output the document footer.
__construct($outputStrategy=null)
Constructor.
Visitor is used to extend an object's functionality by not extending its interface.
visit($obj)
Visit the current object in iteration and output its content using the configured OutputStrategy.
setOutputStrategy($strategy)
Set the PersistenceStrategy.
doPreVisit()
Output the document header.