Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
ArrayToTextTable Class Reference

Public Member Functions

 ArrayToTextTable ($rows)
 
 showHeaders ($bool)
 
 setMaxWidth ($maxWidth)
 
 setMaxHeight ($maxHeight)
 
 render ($return=false)
 

Detailed Description

Member Function Documentation

ArrayToTextTable (   $rows)

Prepare array into textual format

Parameters
array$rowsThe input array
bool$headShow heading
int$maxWidthMax Column Height (returns)
int$maxHeightMax Row Width (chars)

Definition at line 1621 of file matrixsqlclient.php.

render (   $return = false)

Prints the data to a text table

Parameters
bool$returnSet to 'true' to return text rather than printing
Returns
mixed

Definition at line 1672 of file matrixsqlclient.php.

setMaxHeight (   $maxHeight)

Set the maximum height (number of lines) per row before truncating

Parameters
int$maxHeight

Definition at line 1661 of file matrixsqlclient.php.

setMaxWidth (   $maxWidth)

Set the maximum width (number of characters) per column before truncating

Parameters
int$maxWidth

Definition at line 1651 of file matrixsqlclient.php.

showHeaders (   $bool)

Show the headers using the key values of the array for the titles

Parameters
bool$bool

Definition at line 1641 of file matrixsqlclient.php.


The documentation for this class was generated from the following file: