backend/controllers/PostTypeController.php 1 location
|
@@ 174-181 (lines=8) @@
|
171 |
|
* The action depends on the value of the dropdown next to the button. |
172 |
|
* Only accept POST HTTP method. |
173 |
|
*/ |
174 |
|
public function actionBulkAction() |
175 |
|
{ |
176 |
|
if (Yii::$app->request->post('action') === 'deleted') { |
177 |
|
foreach (Yii::$app->request->post('ids', []) as $id) { |
178 |
|
$this->findModel($id)->delete(); |
179 |
|
} |
180 |
|
} |
181 |
|
} |
182 |
|
|
183 |
|
/** |
184 |
|
* Finds the PostType model based on its primary key value. |
backend/controllers/TaxonomyController.php 1 location
|
@@ 165-172 (lines=8) @@
|
162 |
|
* The action depends on the value of the dropdown next to the button. |
163 |
|
* Only accept POST HTTP method. |
164 |
|
*/ |
165 |
|
public function actionBulkAction() |
166 |
|
{ |
167 |
|
if (Yii::$app->request->post('action') == 'deleted') { |
168 |
|
foreach (Yii::$app->request->post('ids', []) as $id) { |
169 |
|
$this->findModel($id)->delete(); |
170 |
|
} |
171 |
|
} |
172 |
|
} |
173 |
|
|
174 |
|
/** |
175 |
|
* Updates an existing Term on 'view taxonomy' page. |
backend/controllers/TermController.php 1 location
|
@@ 137-144 (lines=8) @@
|
134 |
|
* The action depends on the value of the dropdown next to the button. |
135 |
|
* Only accept POST HTTP method. |
136 |
|
*/ |
137 |
|
public function actionBulkAction() |
138 |
|
{ |
139 |
|
if (Yii::$app->request->post('action') == 'deleted') { |
140 |
|
foreach (Yii::$app->request->post('ids', []) as $id) { |
141 |
|
$this->findModel($id)->delete(); |
142 |
|
} |
143 |
|
} |
144 |
|
} |
145 |
|
|
146 |
|
/** |
147 |
|
* Finds the Term model based on its primary key value. |