Methods summary
public
|
|
public
string
|
#
getJson( mixed $format = 'column' )
Get JSON representation of the data
Get JSON representation of the data
Returns
string
|
public
mixed
|
#
withdraw( closure $callback )
Returns whatever the callback function returns
Returns whatever the callback function returns
Parameters
- $callback
closure $callback
Returns
mixed
|
public
mechanicious\Tableman\Tableman
|
#
sortColumns( closure $callback )
Sort columns with a callback function
Sort columns with a callback function
Parameters
- $callback
closure $callback
Returns
Callback
function($previous, $current) {// -1, 0, 1}
Usage
|
public
mechanicious\Tableman\Tableman
|
#
reverse( )
Reverse the order of columns
Reverse the order of columns
Returns
|
public
mechanicious\Tableman\Tableman
|
#
reverseColumns( )
Reverse the order of columns, alias of Tableman::reverse
Reverse the order of columns, alias of Tableman::reverse
Returns
|
public
mechanicious\Tableman\Tableman
|
#
orderColumns( array $order = array() )
Put columns into a desired order
Put columns into a desired order
Returns
|
public
array
|
|
public
array
|
|
public
array
|
#
getColumnHeaders( )
Get current headers of columns
Get current headers of columns
Returns
array
|
public
boolean
|
#
columnExists( mixed $header )
Check if a column exists
Returns
boolean
|
public
boolean
|
#
columnHas( string $header, mixed $needle )
Check if a certain column has a certain value
Check if a certain column has a certain value
Parameters
- $header
string $header
- $needle
mixed $needle
Returns
boolean
|
public
|
|
public
mechanicious\Columnizer\Column
|
#
padData( mechanicious\Columnizer\Column $col, mixed $padValue = null )
Symmetrize data if the given column is asymmetric
Symmetrize data if the given column is asymmetric
Parameters
Returns
|
public
mechanicious\Tableman\Tableman
|
|
public
mechanicious\Tableman\Tableman
|
|
public
mechanicious\Tableman\Tableman
|
|
public
mechanicious\Tableman\Tableman
|
|
public
mechanicious\Tableman\Tableman
|
#
removeColumn( string $header )
Remove a column the header
Remove a column the header
Parameters
Returns
|
public
boolean
|
#
compareColumnContent( string $colA, string $colB )
Check if tho columns carry same content
Check if tho columns carry same content
Parameters
- $colA
string $a
- $colB
string $b
Returns
boolean
|
public
mechanicious\Tableman\Tableman
|
|
public
mechanicious\Tableman\Tableman
|
#
eachRowOf( closure $header, closure $callback )
Apply a callback on each row belonging to a specified column
Apply a callback on each row belonging to a specified column
Parameters
- $header
closure $callback
- $callback
Returns
Callback
function(&$ref, &$row, $rowIndex) {}
|
public
mechanicious\Tableman\Tableman
|
#
eachRow( closure $callback )
Apply a callback on each row
Apply a callback on each row
Parameters
- $callback
closure $callback
Returns
Callback
function(&$ref, &$row, $rowIndex) {}
|
public
mechanicious\Tableman\Tableman
|
#
eachCell( closure $callback )
Apply a callback on each cell
Apply a callback on each cell
Parameters
- $callback
closure $callback
Returns
Callback
function(&$ref, &$cell, &$row, $rowIndex) {}
|
public
mechanicious\Tableman\Tableman
|
#
eachColumn( closure $callback )
Apply a callback on each column
Apply a callback on each column
Parameters
- $callback
closure $callback
Returns
Callback
function(&$ref, &$column, $header) {}
|
public
mechanicious\Columnizer\Column;
|
#
getColumn( string $header )
Get a column by it's header
Get a column by it's header
Parameters
Returns
mechanicious\Columnizer\Column;
|
public
array
|
|
public
array
|
#
getRows( )
Get referenced-rows as an array
Get referenced-rows as an array
Returns
array
|
public
|
|
public
|
#
__call( mixed $name, mixed $args )
|