@@ -145,6 +145,7 @@ |
||
| 145 | 145 | /** |
| 146 | 146 | * Получает отзывы по конкретной инстанции модели |
| 147 | 147 | * @var $models \app\modules\review\models\Review[] |
| 148 | + * @param integer $formId |
|
| 148 | 149 | * @return array |
| 149 | 150 | */ |
| 150 | 151 | public static function getForObjectModel($object_model_id, $object_id, $formId, $sort = SORT_ASC) |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\review\models; |
| 4 | 4 | |
| 5 | -use app\models\Object; |
|
| 6 | -use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
| 7 | 5 | use Yii; |
| 6 | +use app\models\Object; |
|
| 8 | 7 | use app\models\Submission; |
| 9 | -use yii\caching\TagDependency; |
|
| 10 | 8 | use app\properties\HasProperties; |
| 9 | +use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
| 10 | +use yii\caching\TagDependency; |
|
| 11 | 11 | use yii\db\ActiveQuery; |
| 12 | 12 | use yii\db\ActiveRecord; |
| 13 | 13 | |
@@ -4,15 +4,15 @@ |
||
| 4 | 4 | * @var app\backgroundtasks\models\Task $searchModel |
| 5 | 5 | * @var \app\modules\review\models\Review|\app\properties\HasProperties $review |
| 6 | 6 | */ |
| 7 | +use app\backend\widgets\BackendWidget; |
|
| 8 | +use app\components\Helper; |
|
| 9 | +use app\models\Form; |
|
| 7 | 10 | use app\models\Object; |
| 8 | 11 | use app\models\PropertyGroup; |
| 9 | -use app\models\Form; |
|
| 10 | -use kartik\form\ActiveForm; |
|
| 11 | -use app\backend\widgets\BackendWidget; |
|
| 12 | 12 | use app\modules\review\models\Review; |
| 13 | -use yii\helpers\Html; |
|
| 13 | +use kartik\form\ActiveForm; |
|
| 14 | 14 | use kartik\icons\Icon; |
| 15 | -use app\components\Helper; |
|
| 15 | +use yii\helpers\Html; |
|
| 16 | 16 | |
| 17 | 17 | $this->title = Yii::t('app', 'Review show'); |
| 18 | 18 | $this->params['breadcrumbs'] = [ |
@@ -6,11 +6,10 @@ |
||
| 6 | 6 | * @var app\backgroundtasks\models\Task $searchModel |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | +use app\modules\review\models\Review; |
|
| 9 | 10 | use kartik\dynagrid\DynaGrid; |
| 10 | 11 | use kartik\helpers\Html; |
| 11 | 12 | use yii\helpers\Url; |
| 12 | -use kartik\grid\GridView; |
|
| 13 | -use app\modules\review\models\Review; |
|
| 14 | 13 | |
| 15 | 14 | $this->title = Yii::t('app', 'Reviews'); |
| 16 | 15 | $this->params['breadcrumbs'][] = $this->title; |
@@ -4,14 +4,14 @@ |
||
| 4 | 4 | * @var app\backgroundtasks\models\Task $searchModel |
| 5 | 5 | * @var $review \app\modules\review\models\Review |
| 6 | 6 | */ |
| 7 | -use kartik\helpers\Html; |
|
| 7 | +use app\models\Form; |
|
| 8 | 8 | use app\models\Object; |
| 9 | -use app\models\PropertyGroup; |
|
| 10 | 9 | use app\models\Property; |
| 11 | -use app\models\Form; |
|
| 10 | +use app\models\PropertyGroup; |
|
| 11 | +use app\modules\review\models\Review; |
|
| 12 | +use kartik\helpers\Html; |
|
| 12 | 13 | use kartik\icons\Icon; |
| 13 | 14 | use yii\widgets\ActiveForm; |
| 14 | -use app\modules\review\models\Review; |
|
| 15 | 15 | |
| 16 | 16 | $this->title = Yii::t('app', 'Review show'); |
| 17 | 17 | $this->params['breadcrumbs'] = [ |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\review\widgets\rating; |
| 4 | 4 | |
| 5 | -use app\modules\review\models\RatingItem; |
|
| 6 | 5 | use Yii; |
| 6 | +use app\modules\review\models\RatingItem; |
|
| 7 | 7 | use yii\base\Widget; |
| 8 | 8 | |
| 9 | 9 | class RatingWidget extends Widget |
@@ -2,15 +2,15 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\review\widgets; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\components\ObjectRule; |
| 6 | 7 | use app\models\Form; |
| 8 | +use app\models\Object; |
|
| 9 | +use app\models\PropertyGroup; |
|
| 7 | 10 | use app\modules\review\models\Review; |
| 8 | 11 | use yii\base\InvalidParamException; |
| 9 | 12 | use yii\base\Widget; |
| 10 | 13 | use yii\data\ArrayDataProvider; |
| 11 | -use Yii; |
|
| 12 | -use app\models\Object; |
|
| 13 | -use app\models\PropertyGroup; |
|
| 14 | 14 | use yii\db\ActiveRecord; |
| 15 | 15 | |
| 16 | 16 | class ReviewsWidget extends Widget |
@@ -12,9 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | /** @var \yii\data\ArrayDataProvider $reviews */ |
| 14 | 14 | |
| 15 | -use yii\widgets\ActiveForm; |
|
| 16 | -use yii\helpers\Html; |
|
| 17 | 15 | use app\models\Property; |
| 16 | +use yii\helpers\Html; |
|
| 17 | +use yii\widgets\ActiveForm; |
|
| 18 | 18 | |
| 19 | 19 | $allowRate = !empty($ratingGroupName); |
| 20 | 20 | |
@@ -2,23 +2,23 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\seo\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backend\components\BackendController; |
| 6 | -use app\modules\shop\models\Category; |
|
| 7 | -use app\modules\shop\models\OrderTransaction; |
|
| 8 | -use app\modules\shop\models\Product; |
|
| 9 | 7 | use app\modules\seo\models\Config; |
| 10 | 8 | use app\modules\seo\models\Counter; |
| 11 | 9 | use app\modules\seo\models\Meta; |
| 12 | 10 | use app\modules\seo\models\Redirect; |
| 13 | 11 | use app\modules\seo\models\Robots; |
| 14 | -use devgroup\ace\AceHelper; |
|
| 12 | +use app\modules\shop\models\Category; |
|
| 13 | +use app\modules\shop\models\OrderTransaction; |
|
| 14 | +use app\modules\shop\models\Product; |
|
| 15 | 15 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 16 | +use devgroup\ace\AceHelper; |
|
| 16 | 17 | use yii\base\Event; |
| 17 | 18 | use yii\filters\AccessControl; |
| 18 | 19 | use yii\helpers\Json; |
| 19 | -use yii\web\NotFoundHttpException; |
|
| 20 | 20 | use yii\helpers\Url; |
| 21 | -use Yii; |
|
| 21 | +use yii\web\NotFoundHttpException; |
|
| 22 | 22 | |
| 23 | 23 | class ManageController extends BackendController |
| 24 | 24 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\seo\models; |
| 4 | 4 | |
| 5 | -use app\models\Object; |
|
| 6 | 5 | use Yii; |
| 6 | +use app\models\Object; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * This is the model class for table "{{%open_graph_object}}". |