Factory
in package
Contains frame decorating logic
This class is responsible for assigning the correct , , and objects to objects. This is determined primarily by the Frame's display type, but also by the Frame's node's type (e.g. DomElement vs. #text)
Tags
Table of Contents
- $_positioners : array<string|int, AbstractPositioner>
- Array of positioners for specific frame types
- decorate_frame() : AbstractFrameDecorator
- Decorate a Frame
- decorate_root() : Page
- Decorate the root Frame
- getPositionerInstance() : AbstractPositioner
- Creates Positioners
Properties
$_positioners
Array of positioners for specific frame types
protected
static array<string|int, AbstractPositioner>
$_positioners
Methods
decorate_frame()
Decorate a Frame
public
static decorate_frame(Frame $frame, Dompdf $dompdf[, Frame $root = null ]) : AbstractFrameDecorator
Parameters
- $frame : Frame
-
The frame to decorate
- $dompdf : Dompdf
-
The dompdf instance
- $root : Frame = null
-
The frame to decorate
Tags
Return values
AbstractFrameDecorator —FIXME: this is admittedly a little smelly...
decorate_root()
Decorate the root Frame
public
static decorate_root( $root, $dompdf) : Page
Parameters
Return values
Page —getPositionerInstance()
Creates Positioners
protected
static getPositionerInstance(string $type) : AbstractPositioner
Parameters
- $type : string
-
type of positioner to use