Documentation

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
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
6.0.0

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
int

getColSpan()

Get the number of columns this cell spans

public getColSpan() : int
Return values
int

getNode()

Get the cell's DOM node

public getNode() : Child
Return values
Child

getRow()

Get the row this cell starts at

public getRow() : int
Return values
int

getRowSpan()

Get the number of rows this cell spans

public getRowSpan() : int
Return values
int

isHeader()

Determine if this cell belongs to a header row

public isHeader() : bool
Return values
bool

        
On this page

Search results