1 | <?php |
||
12 | class JsonDataTable extends DataTable { |
||
13 | protected $_modelClass="_jsonArrayModel"; |
||
14 | |||
15 | public function __construct($identifier, $model, $modelInstance=NULL) { |
||
18 | |||
19 | protected function _generateContent($table){ |
||
24 | |||
25 | protected function _addRowModel($table){ |
||
32 | |||
33 | /** |
||
34 | * {@inheritDoc} |
||
35 | * @see DataTable::_associatePaginationBehavior() |
||
36 | */ |
||
37 | protected function _associatePaginationBehavior(HtmlMenu $menu,JsUtils $js=NULL){ |
||
54 | |||
55 | /** |
||
56 | * Returns a new AjaxCall object, must be compiled using $jquery object |
||
57 | * @param string $url |
||
58 | * @param string $method |
||
59 | * @param string $params |
||
60 | * @param callable $jsCallback |
||
61 | * @return AjaxCall |
||
62 | */ |
||
63 | public function jsJsonArray($url, $method="get", $params="{}", $jsCallback=NULL,$parameters=[]){ |
||
67 | |||
68 | public function jsClear(){ |
||
71 | |||
72 | public function clearOn(BaseHtml $element,$event, $stopPropagation=false, $preventDefault=false){ |
||
75 | |||
76 | public function clearOnClick(BaseHtml $element,$stopPropagation=false, $preventDefault=false){ |
||
79 | |||
80 | public function jsonArrayOn(BaseHtml $element,$event,$url, $method="get", $params="{}", $jsCallback=NULL,$parameters=[]){ |
||
83 | |||
84 | public function jsonArrayOnClick(BaseHtml $element,$url, $method="get", $params="{}", $jsCallback=NULL,$parameters=[]){ |
||
87 | |||
88 | /** |
||
89 | * Paginates the DataTable element with a Semantic HtmlPaginationMenu component |
||
90 | * @param number $page the active page number |
||
91 | * @param number $total_rowcount the total number of items |
||
92 | * @param number $items_per_page The number of items per page |
||
93 | * @param number $pages_visibles The number of visible pages in the Pagination component |
||
94 | * @return DataTable |
||
95 | */ |
||
96 | public function paginate($page,$total_rowcount,$items_per_page=10,$pages_visibles=null){ |
||
99 | } |