| @@ 79-87 (lines=9) @@ | ||
| 76 | /** |
|
| 77 | * Сортировка полей группы |
|
| 78 | */ |
|
| 79 | protected function sortFields() |
|
| 80 | {
|
|
| 81 | foreach( Yii::app()->request->getPost('sort') as $sortItem )
|
|
| 82 | {
|
|
| 83 | $field = BContactField::model()->findByPk($sortItem['id']); |
|
| 84 | $field->position = $sortItem['position']; |
|
| 85 | $field->save(); |
|
| 86 | } |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * Сортировка текстовых блоков |
|
| @@ 92-100 (lines=9) @@ | ||
| 89 | /** |
|
| 90 | * Сортировка текстовых блоков |
|
| 91 | */ |
|
| 92 | protected function sortTextBlocks() |
|
| 93 | {
|
|
| 94 | foreach( Yii::app()->request->getPost('sort') as $sortItem )
|
|
| 95 | {
|
|
| 96 | $textblock = BContactTextBlock::model()->findByPk($sortItem['id']); |
|
| 97 | $textblock->position = $sortItem['position']; |
|
| 98 | $textblock->save(); |
|
| 99 | } |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * @inheritdoc |
|