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