@@ 2439-2455 (lines=17) @@ | ||
2436 | * @param int $parent |
|
2437 | * @return void |
|
2438 | */ |
|
2439 | public function handleGetChildren($parent) |
|
2440 | { |
|
2441 | $this->setDataSource( |
|
2442 | call_user_func($this->tree_view_children_callback, $parent) |
|
2443 | ); |
|
2444 | ||
2445 | if ($this->getPresenter()->isAjax()) { |
|
2446 | $this->getPresenter()->payload->_datagrid_url = $this->refresh_url; |
|
2447 | $this->getPresenter()->payload->_datagrid_tree = $parent; |
|
2448 | ||
2449 | $this->redrawControl('items'); |
|
2450 | ||
2451 | $this->onRedraw(); |
|
2452 | } else { |
|
2453 | $this->getPresenter()->redirect('this'); |
|
2454 | } |
|
2455 | } |
|
2456 | ||
2457 | ||
2458 | /** |
|
@@ 2541-2553 (lines=13) @@ | ||
2538 | /** |
|
2539 | * @return void |
|
2540 | */ |
|
2541 | public function reloadTheWholeGrid() |
|
2542 | { |
|
2543 | if ($this->getPresenter()->isAjax()) { |
|
2544 | $this->redrawControl('grid'); |
|
2545 | ||
2546 | $this->getPresenter()->payload->_datagrid_url = $this->refresh_url; |
|
2547 | $this->getPresenter()->payload->_datagrid_name = $this->getName(); |
|
2548 | ||
2549 | $this->onRedraw(); |
|
2550 | } else { |
|
2551 | $this->getPresenter()->redirect('this'); |
|
2552 | } |
|
2553 | } |
|
2554 | ||
2555 | ||
2556 | /** |