Property | Type | Description | |
---|---|---|---|
$_adapter | The data adapter | ||
$_cols | array | Columns | |
$_colsIndex | array | Columns' index | |
$_isDispatched | |||
$_options | array | Options | |
$_outputObject | object | Output object for processed data | |
$_params | Paramenters for the data fetching Get them from the request object for example | ||
$_rowHandler | function | Row handler, called for each row in datatable |
Method | Description | |
---|---|---|
dispatch ( $p_params = null, $p_cols = null, $p_options = null ) | should implement a switching method for data and metadata fetching | |
dispatchData ( array $p_params = null, array $p_cols = null ) | Get data and set the out object | |
dispatchMedatata ( array $p_cols = null, array $p_options = null ) | set output metadata | |
getAdapter ( ) : Adapter | Get the data adapter | |
getOptions ( ) : array | Get options | |
getOutputObject ( ) : object | Get output object | |
init ( ) | ||
setAdapter ( |
Set the data adapter | |
setCols ( $p_cols ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | Set columns | |
setOption ( string $p_key, $p_value ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | Set option | |
setOptions ( array $p_options ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | Set multiple options | |
setOutputObject ( object &$p_object ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | Set output object, for example the view object. | |
setParams ( $p_params ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | Set params | |
setRowHandler ( function $p_func ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | Set row handler |
abstract public dispatch ( $p_params = null, $p_cols = null, $p_options = null ) |
public dispatchData ( array $p_params = null, array $p_cols = null ) | ||
$p_params | array | |
$p_cols | array |
public dispatchMedatata ( array $p_cols = null, array $p_options = null ) | ||
$p_cols | array | |
$p_options | array |
public getAdapter ( ) : Adapter | ||
return | Adapter | $p_adapter |
public getOutputObject ( ) : object | ||
return | object | $p_object |
public setAdapter ( |
||
$p_adapter | ||
return | Newscoop\Controller\Action\Helper\Datatable\ADatatable |
public setCols ( $p_cols ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | ||
return | Newscoop\Controller\Action\Helper\Datatable\ADatatable |
public setOptions ( array $p_options ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | ||
$p_options | array | |
return | Newscoop\Controller\Action\Helper\Datatable\ADatatable |
public setOutputObject ( object &$p_object ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | ||
$p_object | object | |
return | Newscoop\Controller\Action\Helper\Datatable\ADatatable |
public setParams ( $p_params ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | ||
return | Newscoop\Controller\Action\Helper\Datatable\ADatatable |
public setRowHandler ( function $p_func ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | ||
$p_func | function | |
return | Newscoop\Controller\Action\Helper\Datatable\ADatatable |
protected AAdapter,Newscoop\Controller\Action\Helper\Datatable\Adapter $_adapter | ||
return |
protected object $_outputObject | ||
return | object |
protected $_params |