1<?php 2 3class RenderStackingContext { 4 var $_stacking_levels; 5 6 function RenderStackingContext() { 7 $this->set_stacking_levels(array()); 8 9 $level =& new StackingLevel('in-flow-non-inline'); 10 $this->add_stacking_level($level); 11 12 $level =& new StackingLevel('in-flow-floats'); 13 $this->add_stacking_level($level); 14 15 $level =& new StackingLevel('in-flow-inline'); 16 $this->add_stacking_level($level); 17 } 18 19 function get_stacking_levels() { 20 return $this->_stacking_levels; 21 } 22 23 function set_stacking_levels($levels) { 24 $this->_stacking_levels = $levels; 25 } 26} 27 28?>