| @@ 1341-1357 (lines=17) @@ | ||
| 1338 | * @param int $parent |
|
| 1339 | * @return void |
|
| 1340 | */ |
|
| 1341 | public function handleGetChildren($parent) |
|
| 1342 | { |
|
| 1343 | $this->setDataSource( |
|
| 1344 | call_user_func($this->tree_view_children_callback, $parent) |
|
| 1345 | ); |
|
| 1346 | ||
| 1347 | if ($this->getPresenter()->isAjax()) { |
|
| 1348 | $this->getPresenter()->payload->_datagrid_url = $this->refresh_url; |
|
| 1349 | $this->getPresenter()->payload->_datagrid_tree = $parent; |
|
| 1350 | ||
| 1351 | $this->redrawControl('items'); |
|
| 1352 | ||
| 1353 | $this->onRedraw(); |
|
| 1354 | } else { |
|
| 1355 | $this->getPresenter()->redirect('this'); |
|
| 1356 | } |
|
| 1357 | } |
|
| 1358 | ||
| 1359 | ||
| 1360 | /** |
|
| @@ 1365-1378 (lines=14) @@ | ||
| 1362 | * @param mixed $id |
|
| 1363 | * @return void |
|
| 1364 | */ |
|
| 1365 | public function handleGetItemDetail($id) |
|
| 1366 | { |
|
| 1367 | $this->template->toggle_detail = $id; |
|
| 1368 | $this->redraw_item = [$this->items_detail->getPrimaryWhereColumn() => $id]; |
|
| 1369 | ||
| 1370 | if ($this->getPresenter()->isAjax()) { |
|
| 1371 | $this->getPresenter()->payload->_datagrid_toggle_detail = $id; |
|
| 1372 | $this->redrawControl('items'); |
|
| 1373 | ||
| 1374 | $this->onRedraw(); |
|
| 1375 | } else { |
|
| 1376 | $this->getPresenter()->redirect('this'); |
|
| 1377 | } |
|
| 1378 | } |
|
| 1379 | ||
| 1380 | ||
| 1381 | /** |
|