Cell
in package
Pdf HTML table cell class
A value object describing one table cell's grid position/span and the DOM node its content/attributes come from.
Tags
Table of Contents
Properties
- $col : int
- Zero-based column index this cell starts at
- $colSpan : int
- Number of columns this cell spans
- $isHeader : bool
- Whether this cell belongs to a header row
- $node : Child
- The <td>/<th> DOM node
- $row : int
- Zero-based row index this cell starts at
- $rowSpan : int
- Number of rows this cell spans
Methods
- __construct() : mixed
- Constructor
- getCol() : int
- Get the column this cell starts at
- getColSpan() : int
- Get the number of columns this cell spans
- getNode() : Child
- Get the cell's DOM node
- getRow() : int
- Get the row this cell starts at
- getRowSpan() : int
- Get the number of rows this cell spans
- isHeader() : bool
- Determine if this cell belongs to a header row
Properties
$col
Zero-based column index this cell starts at
protected
int
$col
$colSpan
Number of columns this cell spans
protected
int
$colSpan
$isHeader
Whether this cell belongs to a header row
protected
bool
$isHeader
$node
The <td>/<th> DOM node
protected
Child
$node
$row
Zero-based row index this cell starts at
protected
int
$row
$rowSpan
Number of rows this cell spans
protected
int
$rowSpan
Methods
__construct()
Constructor
public
__construct(Child $node, int $row, int $col[, int $rowSpan = 1 ][, int $colSpan = 1 ][, bool $isHeader = false ]) : mixed
Instantiate a table cell.
Parameters
- $node : Child
- $row : int
- $col : int
- $rowSpan : int = 1
- $colSpan : int = 1
- $isHeader : bool = false
getCol()
Get the column this cell starts at
public
getCol() : int
Return values
intgetColSpan()
Get the number of columns this cell spans
public
getColSpan() : int
Return values
intgetNode()
Get the cell's DOM node
public
getNode() : Child
Return values
ChildgetRow()
Get the row this cell starts at
public
getRow() : int
Return values
intgetRowSpan()
Get the number of rows this cell spans
public
getRowSpan() : int
Return values
intisHeader()
Determine if this cell belongs to a header row
public
isHeader() : bool