| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package dompdf |
| 4 |
* @link https://github.com/dompdf/dompdf |
| 5 |
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License |
| 6 |
*/ |
| 7 |
namespace Dompdf\Positioner; |
| 8 |
|
| 9 |
use Dompdf\FrameDecorator\AbstractFrameDecorator; |
| 10 |
use Dompdf\FrameDecorator\Table; |
| 11 |
|
| 12 |
/** |
| 13 |
* Positions table cells |
| 14 |
* |
| 15 |
* @package dompdf |
| 16 |
*/ |
| 17 |
class TableCell extends AbstractPositioner |
| 18 |
{ |
| 19 |
|
| 20 |
/** |
| 21 |
* @param AbstractFrameDecorator $frame |
| 22 |
*/ |
| 23 |
function position(AbstractFrameDecorator $frame): void |
| 24 |
{ |
| 25 |
$table = Table::find_parent_table($frame); |
| 26 |
$cellmap = $table->get_cellmap(); |
| 27 |
$frame->set_position($cellmap->get_frame_position($frame)); |
| 28 |
} |
| 29 |
} |
| 30 |
|