FrameTreeList.php in MBE eShip trunk, at lib/dompdf/src/Frame/FrameTreeList.php
| 1 | <?php |
| 2 | namespace Dompdf\Frame; |
| 3 | |
| 4 | use IteratorAggregate; |
| 5 | use Dompdf\Frame; |
| 6 | |
| 7 | /** |
| 8 | * Pre-order IteratorAggregate |
| 9 | * |
| 10 | * @access private |
| 11 | * @package dompdf |
| 12 | */ |
| 13 | class FrameTreeList implements IteratorAggregate |
| 14 | { |
| 15 | /** |
| 16 | * @var \Dompdf\Frame |
| 17 | */ |
| 18 | protected $_root; |
| 19 | |
| 20 | /** |
| 21 | * @param \Dompdf\Frame $root |
| 22 | */ |
| 23 | public function __construct(Frame $root) |
| 24 | { |
| 25 | $this->_root = $root; |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * @return FrameTreeIterator |
| 30 | */ |
| 31 | public function getIterator() |
| 32 | { |
| 33 | return new FrameTreeIterator($this->_root); |
| 34 | } |
| 35 | } |
| 36 |