The Clico Column class is utilized by the Table and Row classes.

It souldn't need to be accessed directly. It it used to fill Rows.

package Default

 Methods

Constructor. Sets the `$text` property on instantiation.

__construct(String $text) 

Parameters

$text

String

Gets the height of the column (number of lines)

getHeight() : integer

Returns

integer

Gets a single line

getLine(integer $i) : \Webbtj\Clico\Text

Parameters

$i

integer

Returns

\Webbtj\Clico\Text

Returns all of the lines of text, undecorated

getLines() : Array

Returns

Array

Gets the undecorated text

getText() : string

Returns

string

Gets the Text class instance

getTextWriter() : \Webbtj\Clico\Text

Returns

\Webbtj\Clico\Text

Gets the width of the column in characters

getWidth() : integer

Returns

integer

Sets the `$text` property

setText(String $text) : void

Parameters

$text

String

Set the column width in characters

setWidth(integer $width) : void

Parameters

$width

integer

Add additional blank lines to the end of the column

verticalPad(integer $height) : void

Parameters

$height

integer

Split the `$text` property into substrings to fit within the set width

populateLines() : void

 Properties

 

$height

$height 

Default

1
 

$lines

$lines 

Default

array()
 

$text

$text 

Default

null
 

$textWriter

$textWriter 

Default

 

$width

$width 

Default

0