| @@ 1121-1135 (lines=15) @@ | ||
| 1118 | * @param int $parent |
|
| 1119 | * @return void |
|
| 1120 | */ |
|
| 1121 | public function handleGetChildren($parent) |
|
| 1122 | { |
|
| 1123 | $this->setDataSource( |
|
| 1124 | call_user_func($this->tree_view_children_callback, $parent) |
|
| 1125 | ); |
|
| 1126 | ||
| 1127 | if ($this->getPresenter()->isAjax()) { |
|
| 1128 | $this->getPresenter()->payload->_datagrid_url = $this->refresh_url; |
|
| 1129 | $this->getPresenter()->payload->_datagrid_tree = $parent; |
|
| 1130 | ||
| 1131 | $this->redrawControl('items'); |
|
| 1132 | } else { |
|
| 1133 | $this->getPresenter()->redirect('this'); |
|
| 1134 | } |
|
| 1135 | } |
|
| 1136 | ||
| 1137 | ||
| 1138 | /** |
|
| @@ 1143-1154 (lines=12) @@ | ||
| 1140 | * @param mixed $id |
|
| 1141 | * @return void |
|
| 1142 | */ |
|
| 1143 | public function handleGetItemDetail($id) |
|
| 1144 | { |
|
| 1145 | $this->template->toggle_detail = $id; |
|
| 1146 | $this->redraw_item = [$this->items_detail->getPrimaryWhereColumn() => $id]; |
|
| 1147 | ||
| 1148 | if ($this->getPresenter()->isAjax()) { |
|
| 1149 | $this->getPresenter()->payload->_datagrid_toggle_detail = $id; |
|
| 1150 | $this->redrawControl('items'); |
|
| 1151 | } else { |
|
| 1152 | $this->getPresenter()->redirect('this'); |
|
| 1153 | } |
|
| 1154 | } |
|
| 1155 | ||
| 1156 | ||
| 1157 | /** |
|