Commit e2a6acaf by Alexander Makarov

Fixes #4005: added phpdoc to search model Gii template

parent b4b44067
...@@ -35,6 +35,9 @@ use <?= ltrim($generator->modelClass, '\\') . (isset($modelAlias) ? " as $modelA ...@@ -35,6 +35,9 @@ use <?= ltrim($generator->modelClass, '\\') . (isset($modelAlias) ? " as $modelA
class <?= $searchModelClass ?> extends <?= isset($modelAlias) ? $modelAlias : $modelClass ?> class <?= $searchModelClass ?> extends <?= isset($modelAlias) ? $modelAlias : $modelClass ?>
{ {
/**
* @inheritdoc
*/
public function rules() public function rules()
{ {
return [ return [
...@@ -42,12 +45,19 @@ class <?= $searchModelClass ?> extends <?= isset($modelAlias) ? $modelAlias : $m ...@@ -42,12 +45,19 @@ class <?= $searchModelClass ?> extends <?= isset($modelAlias) ? $modelAlias : $m
]; ];
} }
/**
* @inheritdoc
*/
public function scenarios() public function scenarios()
{ {
// bypass scenarios() implementation in the parent class // bypass scenarios() implementation in the parent class
return Model::scenarios(); return Model::scenarios();
} }
/**
* Creates data provider instance with search query applied
* @return ActiveDataProvider
*/
public function search($params) public function search($params)
{ {
$query = <?= isset($modelAlias) ? $modelAlias : $modelClass ?>::find(); $query = <?= isset($modelAlias) ? $modelAlias : $modelClass ?>::find();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment