| @@ 279-287 (lines=9) @@ | ||
| 276 | /** |
|
| 277 | * Сортировка полей группы |
|
| 278 | */ |
|
| 279 | protected function sortFields() |
|
| 280 | {
|
|
| 281 | foreach( Yii::app()->request->getPost('sort') as $sortItem )
|
|
| 282 | {
|
|
| 283 | $field = BContactField::model()->findByPk($sortItem['id']); |
|
| 284 | $field->position = $sortItem['position']; |
|
| 285 | $field->save(); |
|
| 286 | } |
|
| 287 | } |
|
| 288 | ||
| 289 | /** |
|
| 290 | * Сортировка текстовых блоков |
|
| @@ 292-300 (lines=9) @@ | ||
| 289 | /** |
|
| 290 | * Сортировка текстовых блоков |
|
| 291 | */ |
|
| 292 | protected function sortTextBlocks() |
|
| 293 | {
|
|
| 294 | foreach( Yii::app()->request->getPost('sort') as $sortItem )
|
|
| 295 | {
|
|
| 296 | $textblock = BContactTextBlock::model()->findByPk($sortItem['id']); |
|
| 297 | $textblock->position = $sortItem['position']; |
|
| 298 | $textblock->save(); |
|
| 299 | } |
|
| 300 | } |
|
| 301 | ||
| 302 | /** |
|
| 303 | * @inheritdoc |
|