프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_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 |
메소드 | 설명 | |
---|---|---|
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 setAdapter ( |
||
$p_adapter | ||
리턴 | Newscoop\Controller\Action\Helper\Datatable\ADatatable |
public setCols ( $p_cols ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | ||
리턴 | Newscoop\Controller\Action\Helper\Datatable\ADatatable |
public setOptions ( array $p_options ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | ||
$p_options | array | |
리턴 | Newscoop\Controller\Action\Helper\Datatable\ADatatable |
public setOutputObject ( object &$p_object ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | ||
$p_object | object | |
리턴 | Newscoop\Controller\Action\Helper\Datatable\ADatatable |
public setParams ( $p_params ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | ||
리턴 | Newscoop\Controller\Action\Helper\Datatable\ADatatable |
public setRowHandler ( function $p_func ) : Newscoop\Controller\Action\Helper\Datatable\ADatatable | ||
$p_func | function | |
리턴 | Newscoop\Controller\Action\Helper\Datatable\ADatatable |
protected AAdapter,Newscoop\Controller\Action\Helper\Datatable\Adapter $_adapter | ||
리턴 |
protected object $_outputObject | ||
리턴 | object |
protected $_params |