application/backend/controllers/BackendMenuController.php 1 location
|
@@ 153-164 (lines=12) @@
|
| 150 |
|
return $this->redirect(Url::to(['index', 'parent_id' => $model->parent_id])); |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
public function actionRemoveAll($parent_id) |
| 154 |
|
{ |
| 155 |
|
$items = Yii::$app->request->post('items', []); |
| 156 |
|
if (!empty($items)) { |
| 157 |
|
$items = BackendMenu::find()->where(['in', 'id', $items])->all(); |
| 158 |
|
foreach ($items as $item) { |
| 159 |
|
$item->delete(); |
| 160 |
|
} |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
return $this->redirect(['index', 'parent_id' => $parent_id]); |
| 164 |
|
} |
| 165 |
|
|
| 166 |
|
|
| 167 |
|
public function actionAjaxToggle($status) |
application/backend/controllers/NavigationController.php 1 location
|
@@ 175-186 (lines=12) @@
|
| 172 |
|
); |
| 173 |
|
} |
| 174 |
|
|
| 175 |
|
public function actionRemoveAll($parent_id) |
| 176 |
|
{ |
| 177 |
|
$items = Yii::$app->request->post('items', []); |
| 178 |
|
if (!empty($items)) { |
| 179 |
|
$items = Navigation::find()->where(['in', 'id', $items])->all(); |
| 180 |
|
foreach ($items as $item) { |
| 181 |
|
$item->delete(); |
| 182 |
|
} |
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
return $this->redirect(['index', 'parent_id' => $parent_id]); |
| 186 |
|
} |
| 187 |
|
} |
| 188 |
|
|
application/backend/controllers/PropertiesController.php 1 location
|
@@ 470-480 (lines=11) @@
|
| 467 |
|
); |
| 468 |
|
} |
| 469 |
|
|
| 470 |
|
public function actionRemoveAllProperties($group_id) |
| 471 |
|
{ |
| 472 |
|
$items = Yii::$app->request->post('items', []); |
| 473 |
|
if (!empty($items)) { |
| 474 |
|
$items = Property::find()->where(['in', 'id', $items])->all(); |
| 475 |
|
foreach ($items as $item) { |
| 476 |
|
$item->delete(); |
| 477 |
|
} |
| 478 |
|
} |
| 479 |
|
return $this->redirect(['group', 'id' => $group_id]); |
| 480 |
|
} |
| 481 |
|
|
| 482 |
|
public function actionDeleteGroup($id) |
| 483 |
|
{ |
application/modules/shop/controllers/BackendProductController.php 1 location
|
@@ 637-649 (lines=13) @@
|
| 634 |
|
* @return \yii\web\Response |
| 635 |
|
* @throws \Exception |
| 636 |
|
*/ |
| 637 |
|
public function actionRemoveAll($parent_id) |
| 638 |
|
{ |
| 639 |
|
$items = Yii::$app->request->post('items', []); |
| 640 |
|
if (!empty($items)) { |
| 641 |
|
$product = Yii::$container->get(Product::class); |
| 642 |
|
$items = $product::find()->where(['in', 'id', $items])->all(); |
| 643 |
|
foreach ($items as $item) { |
| 644 |
|
$item->delete(); |
| 645 |
|
} |
| 646 |
|
} |
| 647 |
|
|
| 648 |
|
return $this->redirect(['index', 'parent_id' => $parent_id]); |
| 649 |
|
} |
| 650 |
|
|
| 651 |
|
/** |
| 652 |
|
* @param $tableName |
application/modules/page/backend/PageController.php 1 location
|
@@ 231-242 (lines=12) @@
|
| 228 |
|
); |
| 229 |
|
} |
| 230 |
|
|
| 231 |
|
public function actionRemoveAll($parent_id) |
| 232 |
|
{ |
| 233 |
|
$items = Yii::$app->request->post('items', []); |
| 234 |
|
if (!empty($items)) { |
| 235 |
|
$items = Page::find()->where(['in', 'id', $items])->all(); |
| 236 |
|
foreach ($items as $item) { |
| 237 |
|
$item->delete(); |
| 238 |
|
} |
| 239 |
|
} |
| 240 |
|
|
| 241 |
|
return $this->redirect(['index', 'parent_id' => $parent_id]); |
| 242 |
|
} |
| 243 |
|
|
| 244 |
|
/* |
| 245 |
|
* |