1 | <?php |
||
27 | class Controller extends \yii\web\Controller |
||
28 | { |
||
29 | /** |
||
30 | * @var Cache|array|string the cache object or the application component ID of the cache object |
||
31 | */ |
||
32 | protected $_cache = 'cache'; |
||
33 | |||
34 | /** |
||
35 | * @var IndexPageUiOptions |
||
36 | */ |
||
37 | public $indexPageUiOptionsModel; |
||
38 | |||
39 | public function init() |
||
46 | |||
47 | public function behaviors() |
||
55 | |||
56 | public function actions() |
||
64 | |||
65 | public function setCache($cache) |
||
69 | |||
70 | public function getCache() |
||
78 | |||
79 | /** |
||
80 | * @var array internal actions |
||
81 | */ |
||
82 | protected $_internalActions; |
||
83 | |||
84 | /** |
||
85 | * @param string $submodel the submodel that will be added to the ClassName |
||
|
|||
86 | * @return string Main Model class name |
||
87 | */ |
||
88 | public static function modelClassName() |
||
98 | |||
99 | /** |
||
100 | * @param array $config config to be used to create the [[Model]] |
||
101 | * @return ActiveRecord |
||
102 | */ |
||
103 | public static function newModel($config = [], $submodel = '') |
||
109 | |||
110 | /** |
||
111 | * @param array $config config to be used to create the [[Model]] |
||
112 | * @return ActiveRecord|SearchModelTrait Search Model object |
||
113 | */ |
||
114 | public static function searchModel($config = []) |
||
118 | |||
119 | /** |
||
120 | * @return string main model's formName() |
||
121 | */ |
||
122 | public static function formName() |
||
126 | |||
127 | /** |
||
128 | * @return string search model's formName() |
||
129 | */ |
||
130 | public static function searchFormName() |
||
134 | |||
135 | /** |
||
136 | * @param string $separator |
||
137 | * @return string Main model's camel2id'ed formName() |
||
138 | */ |
||
139 | public static function modelId($separator = '-') |
||
143 | |||
144 | /** |
||
145 | * Returns the module ID based on the namespace of the controller. |
||
146 | * @return mixed |
||
147 | */ |
||
148 | public static function moduleId() |
||
152 | |||
153 | public static function controllerId() |
||
157 | |||
158 | /** |
||
159 | * @param int|array $condition scalar ID or array to be used for searching |
||
160 | * @param array $config config to be used to create the [[Model]] |
||
161 | * @throws NotFoundHttpException |
||
162 | * @return array|ActiveRecord|static|null |
||
163 | */ |
||
164 | public static function findModel($condition, $config = []) |
||
174 | |||
175 | public static function findModels($condition, $config = []) |
||
197 | |||
198 | public static function renderJson($data) |
||
204 | |||
205 | public static function renderJsonp($data) |
||
211 | |||
212 | public function actionIndex() |
||
216 | |||
217 | public function setInternalAction($id, $action) |
||
221 | |||
222 | public function hasInternalAction($id) |
||
226 | |||
227 | public function createAction($id) |
||
233 | |||
234 | /** |
||
235 | * Prepares array for building url to action based on given action id and parameters. |
||
236 | * |
||
237 | * @param string $action action id |
||
238 | * @param string|int|array $params ID of object to be action'ed or array of parameters |
||
239 | * @return array array suitable for Url::to |
||
240 | */ |
||
241 | public static function getActionUrl($action = 'index', $params = []) |
||
247 | |||
248 | /** |
||
249 | * Prepares array for building url to search with given filters. |
||
250 | */ |
||
251 | public static function getSearchUrl(array $params = []) |
||
255 | } |
||
256 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.