1 | <?php |
||
17 | class JsonDataTable extends DataTable { |
||
18 | protected $_modelClass="_jsonArrayModel"; |
||
19 | protected $_rowModelCallback; |
||
20 | |||
21 | public function __construct($identifier, $model, $modelInstance=NULL) { |
||
25 | |||
26 | protected function _generateContent($table){ |
||
30 | |||
31 | protected function _addRowModel($table){ |
||
36 | |||
37 | protected function _createRow($table,$rowClass){ |
||
47 | |||
48 | /** |
||
49 | * {@inheritDoc} |
||
50 | * @see DataTable::_associatePaginationBehavior() |
||
51 | */ |
||
52 | protected function _associatePaginationBehavior(HtmlMenu $menu,JsUtils $js=NULL){ |
||
69 | |||
70 | /** |
||
71 | * Returns a new AjaxCall object, must be compiled using $jquery object |
||
72 | * @param string $url |
||
73 | * @param string $method |
||
74 | * @param string $params |
||
75 | * @param string $jsCallback |
||
76 | * @return AjaxCall |
||
77 | */ |
||
78 | public function jsJsonArray($url, $method="get", $params="{}", $jsCallback=NULL,$parameters=[]){ |
||
82 | |||
83 | public function jsClear(){ |
||
86 | |||
87 | public function clearOn(BaseHtml $element,$event, $stopPropagation=false, $preventDefault=false){ |
||
90 | |||
91 | public function clearOnClick(BaseHtml $element,$stopPropagation=false, $preventDefault=false){ |
||
94 | |||
95 | public function jsonArrayOn(BaseHtml $element,$event,$url, $method="get", $params="{}", $jsCallback=NULL,$parameters=[]){ |
||
98 | |||
99 | public function jsonArrayOnClick(BaseHtml $element,$url, $method="get", $params="{}", $jsCallback=NULL,$parameters=[]){ |
||
102 | |||
103 | /** |
||
104 | * Paginates the DataTable element with a Semantic HtmlPaginationMenu component |
||
105 | * @param number $page the active page number |
||
106 | * @param number $total_rowcount the total number of items |
||
107 | * @param number $items_per_page The number of items per page |
||
108 | * @param number $pages_visibles The number of visible pages in the Pagination component |
||
109 | * @return DataTable |
||
110 | */ |
||
111 | public function paginate($page,$total_rowcount,$items_per_page=10,$pages_visibles=null){ |
||
114 | |||
115 | public function setRowModelCallback($_rowModelCallback) { |
||
119 | |||
120 | } |