| Current Path : /var/www/cesa.co.za/fpdf/ |
| Current File : /var/www/cesa.co.za/fpdf/filter.post.positioned.class.php |
<?php
class PostTreeFilterPositioned extends PreTreeFilter {
var $_context;
function PostTreeFilterPositioned(&$context) {
$this->_context =& $context;
}
function process(&$tree, $data, &$pipeline) {
if (is_a($tree, 'GenericContainerBox')) {
for ($i=0; $i<count($tree->content); $i++) {
$position = $tree->content[$i]->get_css_property(CSS_POSITION);
$float = $tree->content[$i]->get_css_property(CSS_FLOAT);
if ($position == POSITION_ABSOLUTE) {
$this->_context->add_absolute_positioned($tree->content[$i]);
} elseif ($position == POSITION_FIXED) {
$this->_context->add_fixed_positioned($tree->content[$i]);
};
$this->process($tree->content[$i], $data, $pipeline);
};
};
return true;
}
}
?>