| @@ 1704-1720 (lines=17) @@ | ||
| 1701 | * @param int $parent |
|
| 1702 | * @return void |
|
| 1703 | */ |
|
| 1704 | public function handleGetChildren($parent) |
|
| 1705 | { |
|
| 1706 | $this->setDataSource( |
|
| 1707 | call_user_func($this->tree_view_children_callback, $parent) |
|
| 1708 | ); |
|
| 1709 | ||
| 1710 | if ($this->getPresenter()->isAjax()) { |
|
| 1711 | $this->getPresenter()->payload->_datagrid_url = $this->refresh_url; |
|
| 1712 | $this->getPresenter()->payload->_datagrid_tree = $parent; |
|
| 1713 | ||
| 1714 | $this->redrawControl('items'); |
|
| 1715 | ||
| 1716 | $this->onRedraw(); |
|
| 1717 | } else { |
|
| 1718 | $this->getPresenter()->redirect('this'); |
|
| 1719 | } |
|
| 1720 | } |
|
| 1721 | ||
| 1722 | ||
| 1723 | /** |
|
| @@ 1728-1741 (lines=14) @@ | ||
| 1725 | * @param mixed $id |
|
| 1726 | * @return void |
|
| 1727 | */ |
|
| 1728 | public function handleGetItemDetail($id) |
|
| 1729 | { |
|
| 1730 | $this->template->add('toggle_detail', $id); |
|
| 1731 | $this->redraw_item = [$this->items_detail->getPrimaryWhereColumn() => $id]; |
|
| 1732 | ||
| 1733 | if ($this->getPresenter()->isAjax()) { |
|
| 1734 | $this->getPresenter()->payload->_datagrid_toggle_detail = $id; |
|
| 1735 | $this->redrawControl('items'); |
|
| 1736 | ||
| 1737 | $this->onRedraw(); |
|
| 1738 | } else { |
|
| 1739 | $this->getPresenter()->redirect('this'); |
|
| 1740 | } |
|
| 1741 | } |
|
| 1742 | ||
| 1743 | ||
| 1744 | /** |
|