table_cell_positioner.cls.php 716 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * @package dompdf
  4. * @link http://dompdf.github.com/
  5. * @author Benj Carson <benjcarson@digitaljunkies.ca>
  6. * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
  7. */
  8. /**
  9. * Positions table cells
  10. *
  11. * @access private
  12. * @package dompdf
  13. */
  14. class Table_Cell_Positioner extends Positioner {
  15. function __construct(Frame_Decorator $frame) { parent::__construct($frame); }
  16. //........................................................................
  17. function position() {
  18. $table = Table_Frame_Decorator::find_parent_table($this->_frame);
  19. $cellmap = $table->get_cellmap();
  20. $this->_frame->set_position($cellmap->get_frame_position($this->_frame));
  21. }
  22. }