Grid
in package
Pdf HTML table grid class
Walks a
).
TagsTable of ContentsProperties
Methods
Properties$columnCountTotal column count across the whole table
protected
int
$columnCount
= 0
$rowCountTotal row count
protected
int
$rowCount
= 0
$rowsRows, keyed by zero-based row index: ['cells' => Cell[], 'isHeader' => bool]
protected
array<string|int, mixed>
$rows
= []
Methodsbuild()Build a grid from a <table> DOM node
public
static build(Child $tableNode) : Grid
Parameters
Return valuesGridgetColumnCount()Get the total column count
public
getColumnCount() : int
Return valuesintgetRowCount()Get the total row count
public
getRowCount() : int
Return valuesintgetRows()Get the rows
public
getRows() : array<string|int, mixed>
Return valuesarray<string|int, mixed>collectRowNodes()Collect every <tr> node in document order, alongside whether it's inside a <thead>
protected
static collectRowNodes(Child $tableNode) : array<string|int, mixed>
Parameters
Return valuesarray<string|int, mixed>parse()Parse the <table> DOM node into the grid
protected
parse(Child $tableNode) : void
Parameters
Search results |
|---|