| @@ 1317-1333 (lines=17) @@ | ||
| 1314 | * @param int $parent |
|
| 1315 | * @return void |
|
| 1316 | */ |
|
| 1317 | public function handleGetChildren($parent) |
|
| 1318 | { |
|
| 1319 | $this->setDataSource( |
|
| 1320 | call_user_func($this->tree_view_children_callback, $parent) |
|
| 1321 | ); |
|
| 1322 | ||
| 1323 | if ($this->getPresenter()->isAjax()) { |
|
| 1324 | $this->getPresenter()->payload->_datagrid_url = $this->refresh_url; |
|
| 1325 | $this->getPresenter()->payload->_datagrid_tree = $parent; |
|
| 1326 | ||
| 1327 | $this->redrawControl('items'); |
|
| 1328 | ||
| 1329 | $this->onRedraw(); |
|
| 1330 | } else { |
|
| 1331 | $this->getPresenter()->redirect('this'); |
|
| 1332 | } |
|
| 1333 | } |
|
| 1334 | ||
| 1335 | ||
| 1336 | /** |
|
| @@ 1341-1354 (lines=14) @@ | ||
| 1338 | * @param mixed $id |
|
| 1339 | * @return void |
|
| 1340 | */ |
|
| 1341 | public function handleGetItemDetail($id) |
|
| 1342 | { |
|
| 1343 | $this->template->toggle_detail = $id; |
|
| 1344 | $this->redraw_item = [$this->items_detail->getPrimaryWhereColumn() => $id]; |
|
| 1345 | ||
| 1346 | if ($this->getPresenter()->isAjax()) { |
|
| 1347 | $this->getPresenter()->payload->_datagrid_toggle_detail = $id; |
|
| 1348 | $this->redrawControl('items'); |
|
| 1349 | ||
| 1350 | $this->onRedraw(); |
|
| 1351 | } else { |
|
| 1352 | $this->getPresenter()->redirect('this'); |
|
| 1353 | } |
|
| 1354 | } |
|
| 1355 | ||
| 1356 | ||
| 1357 | /** |
|