@@ -19,6 +19,9 @@ discard block |
||
19 | 19 | |
20 | 20 | class Migrator extends \yii\console\controllers\MigrateController |
21 | 21 | { |
22 | + /** |
|
23 | + * @param string $id |
|
24 | + */ |
|
22 | 25 | public function __construct($id, $module, $config = []) |
23 | 26 | { |
24 | 27 | parent::__construct($id, $module, $config); // TODO: Change the autogenerated stub |
@@ -64,7 +67,7 @@ discard block |
||
64 | 67 | |
65 | 68 | /** |
66 | 69 | * Lists all TaxonomyDef models. |
67 | - * @return mixed |
|
70 | + * @return string |
|
68 | 71 | * @throws InvalidConfigException |
69 | 72 | */ |
70 | 73 | public function actionIndex() |
@@ -84,7 +87,7 @@ discard block |
||
84 | 87 | /** |
85 | 88 | * Displays a single TaxonomyDef model. |
86 | 89 | * @param integer $id |
87 | - * @return mixed |
|
90 | + * @return string |
|
88 | 91 | */ |
89 | 92 | public function actionView($id) |
90 | 93 | { |
@@ -157,7 +160,7 @@ discard block |
||
157 | 160 | * Deletes an existing TaxonomyDef model. |
158 | 161 | * If deletion is successful, the browser will be redirected to the 'index' page. |
159 | 162 | * @param integer $id |
160 | - * @return mixed |
|
163 | + * @return \yii\web\Response |
|
161 | 164 | */ |
162 | 165 | public function actionDelete($id) |
163 | 166 | { |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use nkostadinov\taxonomy\models\TaxonomyDefSearch; |
9 | 9 | use yii\base\InvalidConfigException; |
10 | 10 | use yii\data\ActiveDataProvider; |
11 | -use yii\helpers\Url; |
|
12 | 11 | use yii\web\Controller; |
13 | 12 | use yii\web\NotFoundHttpException; |
14 | 13 | use yii\filters\VerbFilter; |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace nkostadinov\taxonomy\models; |
4 | 4 | |
5 | -use Yii; |
|
6 | 5 | use yii\base\Model; |
7 | 6 | use yii\data\ActiveDataProvider; |
8 | 7 | use nkostadinov\taxonomy\models\TaxonomyDef; |
@@ -173,7 +173,7 @@ |
||
173 | 173 | |
174 | 174 | /** |
175 | 175 | * @param integer $termId |
176 | - * @return array An array of TaxonomyTerms |
|
176 | + * @return \yii\db\BaseActiveRecord[] An array of TaxonomyTerms |
|
177 | 177 | */ |
178 | 178 | public function getChildren($termId) |
179 | 179 | { |
@@ -2,11 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace nkostadinov\taxonomy\behaviors; |
4 | 4 | |
5 | -use Yii; |
|
5 | +use Yii; |
|
6 | 6 | use yii\base\Behavior; |
7 | -use yii\base\Event; |
|
8 | -use yii\db\ActiveRecord; |
|
9 | -use yii\db\AfterSaveEvent; |
|
10 | 7 | |
11 | 8 | /** |
12 | 9 | * @author Nikolay Traykov |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace nkostadinov\taxonomy\models; |
4 | 4 | |
5 | -use Yii; |
|
6 | - |
|
7 | 5 | /** |
8 | 6 | * This is the model class for table "taxonomy". |
9 | 7 | * |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace nkostadinov\taxonomy\models; |
4 | 4 | |
5 | -use Yii; |
|
6 | - |
|
7 | 5 | /** |
8 | 6 | * This is the model class for table "taxonomy_terms". |
9 | 7 | * |
@@ -13,12 +13,9 @@ |
||
13 | 13 | use nkostadinov\taxonomy\components\terms\PropertyTerm; |
14 | 14 | use nkostadinov\taxonomy\components\terms\TagTerm; |
15 | 15 | use nkostadinov\taxonomy\models\TaxonomyDef; |
16 | -use nkostadinov\taxonomy\models\TaxonomyTerms; |
|
17 | 16 | use yii\base\Component; |
18 | 17 | use yii\base\InvalidConfigException; |
19 | 18 | use yii\db\Connection; |
20 | -use yii\db\Migration; |
|
21 | -use yii\db\Schema; |
|
22 | 19 | use yii\log\Logger; |
23 | 20 | |
24 | 21 | class Taxonomy extends Component |