36 lines
556 B
PHP
36 lines
556 B
PHP
<?php
|
|
namespace Dompdf\Frame;
|
|
|
|
use IteratorAggregate;
|
|
use Dompdf\Frame;
|
|
|
|
/**
|
|
* Pre-order IteratorAggregate
|
|
*
|
|
* @access private
|
|
* @package dompdf
|
|
*/
|
|
class FrameTreeList implements IteratorAggregate
|
|
{
|
|
/**
|
|
* @var \Dompdf\Frame
|
|
*/
|
|
protected $_root;
|
|
|
|
/**
|
|
* @param \Dompdf\Frame $root
|
|
*/
|
|
public function __construct(Frame $root)
|
|
{
|
|
$this->_root = $root;
|
|
}
|
|
|
|
/**
|
|
* @return FrameTreeIterator
|
|
*/
|
|
public function getIterator()
|
|
{
|
|
return new FrameTreeIterator($this->_root);
|
|
}
|
|
}
|