| @@ 1195-1211 (lines=17) @@ | ||
| 1192 | * @param int $parent |
|
| 1193 | * @return void |
|
| 1194 | */ |
|
| 1195 | public function handleGetChildren($parent) |
|
| 1196 | { |
|
| 1197 | $this->setDataSource( |
|
| 1198 | call_user_func($this->tree_view_children_callback, $parent) |
|
| 1199 | ); |
|
| 1200 | ||
| 1201 | if ($this->getPresenter()->isAjax()) { |
|
| 1202 | $this->getPresenter()->payload->_datagrid_url = $this->refresh_url; |
|
| 1203 | $this->getPresenter()->payload->_datagrid_tree = $parent; |
|
| 1204 | ||
| 1205 | $this->redrawControl('items'); |
|
| 1206 | ||
| 1207 | $this->onRedraw(); |
|
| 1208 | } else { |
|
| 1209 | $this->getPresenter()->redirect('this'); |
|
| 1210 | } |
|
| 1211 | } |
|
| 1212 | ||
| 1213 | ||
| 1214 | /** |
|
| @@ 1219-1232 (lines=14) @@ | ||
| 1216 | * @param mixed $id |
|
| 1217 | * @return void |
|
| 1218 | */ |
|
| 1219 | public function handleGetItemDetail($id) |
|
| 1220 | { |
|
| 1221 | $this->template->toggle_detail = $id; |
|
| 1222 | $this->redraw_item = [$this->items_detail->getPrimaryWhereColumn() => $id]; |
|
| 1223 | ||
| 1224 | if ($this->getPresenter()->isAjax()) { |
|
| 1225 | $this->getPresenter()->payload->_datagrid_toggle_detail = $id; |
|
| 1226 | $this->redrawControl('items'); |
|
| 1227 | ||
| 1228 | $this->onRedraw(); |
|
| 1229 | } else { |
|
| 1230 | $this->getPresenter()->redirect('this'); |
|
| 1231 | } |
|
| 1232 | } |
|
| 1233 | ||
| 1234 | ||
| 1235 | /** |
|