PDFTableCell
in package
Represents a table cell for PDF export.
Tags
Table of Contents
- ALIGN_CENTER = 'C'
- ALIGN_LEFT = 'L'
- ALIGN_RIGHT = 'R'
- $align : string
- text alignment
- $bold : bool
- bold text
- $content : string
- content text of cell
- $width : string|null
- cell width (e.g. "20%")
- __construct() : mixed
- Constructor.
Constants
ALIGN_CENTER
public
mixed
ALIGN_CENTER
= 'C'
ALIGN_LEFT
public
mixed
ALIGN_LEFT
= 'L'
ALIGN_RIGHT
public
mixed
ALIGN_RIGHT
= 'R'
Properties
$align
text alignment
public
string
$align
= self::ALIGN_LEFT
$bold
bold text
public
bool
$bold
= false
$content
content text of cell
public
string
$content
= ''
$width
cell width (e.g. "20%")
public
string|null
$width
Methods
__construct()
Constructor.
public
__construct(string|null $content[, string|null $width = null ][, string|null $align = null ][, bool $bold = false ]) : mixed
Parameters
- $content : string|null
-
cell content
- $width : string|null = null
-
width (e.g. "20%")
- $align : string|null = null
-
cell alignment (default: left)
- $bold : bool = false
-
print in bold