Row.php
- Package
- Default
\Webbtj\Clico\Row
Package: Default



Returns





The Clico Row class is utilized by the Table class.
It souldn't need to be accessed directly. It it used to fill Tables.
Properties
Methods


__construct(Array $data = null) : void
Constructor. Can optionally set the values of the columns
Parameters
Name | Type | Description |
---|---|---|
$data | Array |


addColumn(\Webbtj\Clico\Column $column) : void
Adds a column to the Row
Parameters
Name | Type | Description |
---|---|---|
$column | \Webbtj\Clico\Column |


distributeColumns(integer $maxWidth, integer $numCols) : void
Sets the widths of each column to fit within `$maxWidth`
Parameters
Name | Type | Description |
---|---|---|
$maxWidth | integer | |
$numCols | integer |


getHeaderLineCharacter() : \Webbtj\Clico\Text
Get the character (decorated) used to separate the header row from the body
Returns
Type | Description |
---|---|
\Webbtj\Clico\Text |


getLineCharacter() : \Webbtj\Clico\Text
Get the character (decorated) used to separate this row from other.
This will return either the headerLineCharacter
or the rowLineCharacter
Type | Description |
---|---|
\Webbtj\Clico\Text |


getPipeCharacter() : \Webbtj\Clico\Text
Get the character (decorated) used to separate columns
Returns
Type | Description |
---|---|
\Webbtj\Clico\Text |


getRowLineCharacter() : \Webbtj\Clico\Text
Get the character (decorated) used to separate body rows
Returns
Type | Description |
---|---|
\Webbtj\Clico\Text |


setHeaderLineCharacter(\Webbtj\Clico\Text $line) : void
Set the (decorated) character used to separate the header row from the body
Parameters
Name | Type | Description |
---|---|---|
$line | \Webbtj\Clico\Text |


setPipeCharacter(\Webbtj\Clico\Text $pipe) : void
Set the (decorated) character used to separate columns
Parameters
Name | Type | Description |
---|---|---|
$pipe | \Webbtj\Clico\Text |


setRowLineCharacter(\Webbtj\Clico\Text $line) : void
Set the (decorated) charater used to separate body rows
Parameters
Name | Type | Description |
---|---|---|
$line | \Webbtj\Clico\Text |