@@ -6,7 +6,6 @@ |
||
6 | 6 | use Ice\Core\Model_Account; |
7 | 7 | use Ice\Core\Security as Core_Security; |
8 | 8 | use Ice\Model\Account; |
9 | -use Ice\Widget\Account_Password_Login_ChangePassword; |
|
10 | 9 | |
11 | 10 | class Security_Password_Login_ChangePassword_Submit extends Security |
12 | 11 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Ice\Action\Render; |
6 | 6 | use Ice\Core\Action; |
7 | -use Ice\Core\Debuger; |
|
8 | 7 | use Ice\Core\Request; |
9 | 8 | use Ice\Core\Resource; |
10 | 9 | use Ice\Core\Route; |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace Ice\Widget; |
3 | 3 | |
4 | 4 | use Ice\Action\Security_LoginEmailPassword_ChangePassword_Submit; |
5 | -use Ice\Core\Model; |
|
6 | 5 | use Ice\Core\Widget_Security; |
7 | 6 | use Ice\DataProvider\Request; |
8 | 7 |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | /** |
67 | 67 | * Return default config for class |
68 | 68 | * |
69 | - * @param $key |
|
69 | + * @param string $key |
|
70 | 70 | * @return Config |
71 | 71 | * |
72 | 72 | * @author dp <[email protected]> |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
83 | - * @param $key |
|
83 | + * @param string $key |
|
84 | 84 | * @return Config |
85 | 85 | */ |
86 | 86 | public function getConfig($key) |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * Get config object by type or key |
160 | 160 | * |
161 | 161 | * @param mixed $class |
162 | - * @param null $postfix |
|
162 | + * @param null|string $postfix |
|
163 | 163 | * @param bool $isRequired |
164 | 164 | * @param integer $ttl |
165 | 165 | * @param array $selfConfig |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | /** |
240 | 240 | * Return default key |
241 | 241 | * |
242 | - * @return Core |
|
242 | + * @return string |
|
243 | 243 | * |
244 | 244 | * @author dp <[email protected]> |
245 | 245 | * |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | /** |
334 | 334 | * Save config |
335 | 335 | * |
336 | - * @param null $path |
|
336 | + * @param string $path |
|
337 | 337 | * @return Config |
338 | 338 | * @author dp <[email protected]> |
339 | 339 | * |
@@ -13,7 +13,6 @@ |
||
13 | 13 | use Ice\DataProvider\Repository; |
14 | 14 | use Ice\Exception\Config_Error; |
15 | 15 | use Ice\Exception\Config_Param_NotFound; |
16 | -use Ice\Exception\Error; |
|
17 | 16 | use Ice\Exception\FileNotFound; |
18 | 17 | use Ice\Helper\Config as Helper_Config; |
19 | 18 | use Ice\Helper\File; |
@@ -124,7 +124,7 @@ |
||
124 | 124 | * @param \Exception $exception |
125 | 125 | * @param $output |
126 | 126 | * |
127 | - * @param $class |
|
127 | + * @param string $class |
|
128 | 128 | * @throws \Exception |
129 | 129 | * @author dp <[email protected]> |
130 | 130 | * |
@@ -390,6 +390,10 @@ discard block |
||
390 | 390 | self::$log = []; |
391 | 391 | } |
392 | 392 | |
393 | + /** |
|
394 | + * @param string $value |
|
395 | + * @param string $label |
|
396 | + */ |
|
393 | 397 | public static function log($value, $label = null, $type = 'LOG', $options = []) |
394 | 398 | { |
395 | 399 | $value = str_replace(["\n", "\t"], ' ', $value); |
@@ -522,6 +526,9 @@ discard block |
||
522 | 526 | } |
523 | 527 | } |
524 | 528 | |
529 | + /** |
|
530 | + * @param string $type |
|
531 | + */ |
|
525 | 532 | private function getFbType($type) |
526 | 533 | { |
527 | 534 | switch ($type) { |
@@ -559,8 +566,8 @@ discard block |
||
559 | 566 | * Warning |
560 | 567 | * |
561 | 568 | * @param $message |
562 | - * @param $file |
|
563 | - * @param $line |
|
569 | + * @param string $file |
|
570 | + * @param integer $line |
|
564 | 571 | * @param \Exception $e |
565 | 572 | * @param null $errcontext |
566 | 573 | * @param int $errno |
@@ -580,8 +587,8 @@ discard block |
||
580 | 587 | * Fatal - throw ice exception |
581 | 588 | * |
582 | 589 | * @param $message |
583 | - * @param $file |
|
584 | - * @param $line |
|
590 | + * @param string $file |
|
591 | + * @param integer $line |
|
585 | 592 | * @param \Exception $e |
586 | 593 | * @param null $errcontext |
587 | 594 | * @param int $errno |
@@ -10,7 +10,6 @@ |
||
10 | 10 | namespace Ice\Core; |
11 | 11 | |
12 | 12 | use Ice\Core; |
13 | -use Ice\Helper\String; |
|
14 | 13 | |
15 | 14 | /** |
16 | 15 | * Class DataSource |
@@ -272,6 +272,10 @@ discard block |
||
272 | 272 | return $this; |
273 | 273 | } |
274 | 274 | |
275 | + /** |
|
276 | + * @param string $model |
|
277 | + * @param boolean $isAffected |
|
278 | + */ |
|
275 | 279 | private function setModelValue($model, $isAffected) |
276 | 280 | { |
277 | 281 | if (!($model instanceof Model)) { |
@@ -323,7 +327,7 @@ discard block |
||
323 | 327 | /** |
324 | 328 | * Gets full model field name if send short name (for example: '/name' for model User -> user_name) |
325 | 329 | * |
326 | - * @param $fieldName |
|
330 | + * @param string|null $fieldName |
|
327 | 331 | * @return string |
328 | 332 | * |
329 | 333 | * @author dp <[email protected]> |
@@ -347,7 +351,7 @@ discard block |
||
347 | 351 | } |
348 | 352 | |
349 | 353 | /** |
350 | - * @param $fieldName |
|
354 | + * @param string $fieldName |
|
351 | 355 | * @param $fieldValue |
352 | 356 | * @return array |
353 | 357 | * |
@@ -425,7 +429,7 @@ discard block |
||
425 | 429 | } |
426 | 430 | |
427 | 431 | /** |
428 | - * @param $fieldName |
|
432 | + * @param string $fieldName |
|
429 | 433 | * @param $fieldValue |
430 | 434 | * @return array |
431 | 435 | * |
@@ -459,6 +463,9 @@ discard block |
||
459 | 463 | return $this->setValue($jsonFieldName, Json::encode($this->json[$fieldName])); |
460 | 464 | } |
461 | 465 | |
466 | + /** |
|
467 | + * @param string $fieldName |
|
468 | + */ |
|
462 | 469 | private function setSpatialValue($fieldName, $fieldValue) |
463 | 470 | { |
464 | 471 | $geoFieldName = $fieldName . '__geo'; |
@@ -480,6 +487,9 @@ discard block |
||
480 | 487 | return $this->setValue($geoFieldName, $fieldValue); |
481 | 488 | } |
482 | 489 | |
490 | + /** |
|
491 | + * @param string $fieldName |
|
492 | + */ |
|
483 | 493 | private function setFkValue($fieldName, $fieldValue) |
484 | 494 | { |
485 | 495 | $fkFieldName = $fieldName . '__fk'; |
@@ -1146,7 +1156,7 @@ discard block |
||
1146 | 1156 | |
1147 | 1157 | /** |
1148 | 1158 | * @param Model $modelClass |
1149 | - * @param $dataSourceKey |
|
1159 | + * @param string|null $dataSourceKey |
|
1150 | 1160 | */ |
1151 | 1161 | private function update($modelClass, $dataSourceKey) |
1152 | 1162 | { |
@@ -1203,8 +1213,8 @@ discard block |
||
1203 | 1213 | |
1204 | 1214 | /** |
1205 | 1215 | * @param Model $modelClass |
1206 | - * @param $isSmart |
|
1207 | - * @param $dataSourceKey |
|
1216 | + * @param boolean $isSmart |
|
1217 | + * @param string|null $dataSourceKey |
|
1208 | 1218 | */ |
1209 | 1219 | private function insert($modelClass, $isSmart, $dataSourceKey) |
1210 | 1220 | { |
@@ -1247,7 +1257,7 @@ discard block |
||
1247 | 1257 | /** |
1248 | 1258 | * Execute select from data source |
1249 | 1259 | * |
1250 | - * @param $fieldNames |
|
1260 | + * @param string $fieldNames |
|
1251 | 1261 | * @param string|null $dataSourceKey |
1252 | 1262 | * @param int $ttl |
1253 | 1263 | * @return Model|null |
@@ -1459,6 +1469,9 @@ discard block |
||
1459 | 1469 | : Query::getBuilder($selfModelClass)->pk($this->getPk()); |
1460 | 1470 | } |
1461 | 1471 | |
1472 | + /** |
|
1473 | + * @param string $fieldNames |
|
1474 | + */ |
|
1462 | 1475 | public function fetchOne($modelClass, $fieldNames, $lazy = false) |
1463 | 1476 | { |
1464 | 1477 | $modelClass = Model::getClass($modelClass); |
@@ -15,8 +15,6 @@ |
||
15 | 15 | use Ice\Helper\Model as Helper_Model; |
16 | 16 | use Ice\Helper\Object; |
17 | 17 | use Ice\Helper\Spatial; |
18 | -use Ice\Widget\Model_Form; |
|
19 | -use Ice\Widget\Model_Table; |
|
20 | 18 | |
21 | 19 | /** |
22 | 20 | * Class Model |
@@ -172,6 +172,9 @@ |
||
172 | 172 | ->send(); |
173 | 173 | } |
174 | 174 | |
175 | + /** |
|
176 | + * @param string $expired |
|
177 | + */ |
|
175 | 178 | public function prolongate($expired) |
176 | 179 | { |
177 | 180 | // TODO: Implement prolongate() method. |
@@ -2,16 +2,13 @@ |
||
2 | 2 | |
3 | 3 | use Ice\Core\Config; |
4 | 4 | use Ice\Core\DataSource; |
5 | -use Ice\Core\Debuger; |
|
6 | 5 | use Ice\Core\Model; |
7 | 6 | use Ice\Core\Model\Security_User; |
8 | 7 | use Ice\Core\Model_Account; |
9 | 8 | use Ice\Core\Request; |
10 | 9 | use Ice\Core\Router; |
11 | 10 | use Ice\Core\Security; |
12 | -use Ice\Exception\Security_Account_Login; |
|
13 | 11 | use Ice\Exception\Security_Account_Verify; |
14 | -use Ice\Helper\Date; |
|
15 | 12 | use Ice\Helper\String; |
16 | 13 | use Ice\Message\Mail; |
17 | 14 | use Ice\Model\Account; |
@@ -256,11 +256,11 @@ discard block |
||
256 | 256 | * ]; |
257 | 257 | * ``` |
258 | 258 | * |
259 | - * @param $sqlLogical |
|
259 | + * @param string $sqlLogical |
|
260 | 260 | * @param $fieldNameValues |
261 | 261 | * @param $sqlComparison |
262 | 262 | * @param array|string $modelTableData Key -> modelClass, value -> tableAlias |
263 | - * @param $isUse |
|
263 | + * @param boolean $isUse |
|
264 | 264 | * @return QueryBuilder |
265 | 265 | * @author dp <[email protected]> |
266 | 266 | * |
@@ -390,8 +390,8 @@ discard block |
||
390 | 390 | * |
391 | 391 | * @param Model $modelClass |
392 | 392 | * @param $fieldNames |
393 | - * @param $isValidate |
|
394 | - * @param $isInvalidate boolean |
|
393 | + * @param boolean $isValidate |
|
394 | + * @param boolean $isInvalidate boolean |
|
395 | 395 | * |
396 | 396 | * @author dp <[email protected]> |
397 | 397 | * |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | /** |
418 | 418 | * Set in query part where expression 'IS NULL' |
419 | 419 | * |
420 | - * @param $fieldName |
|
420 | + * @param string $fieldName |
|
421 | 421 | * @param array $modelTableData |
422 | 422 | * @param string $sqlLogical |
423 | 423 | * @param bool $isUse |
@@ -618,8 +618,8 @@ discard block |
||
618 | 618 | /** |
619 | 619 | * Set in query part where expression '> ?' |
620 | 620 | * |
621 | - * @param $fieldName |
|
622 | - * @param $fieldValue |
|
621 | + * @param string $fieldName |
|
622 | + * @param string $fieldValue |
|
623 | 623 | * @param array $modelTableData |
624 | 624 | * @param string $sqlLogical |
625 | 625 | * @param bool $isUse |
@@ -705,7 +705,7 @@ discard block |
||
705 | 705 | * Set in query part where expression '<> ?' |
706 | 706 | * |
707 | 707 | * @param $fieldName |
708 | - * @param $fieldValue |
|
708 | + * @param string $fieldValue |
|
709 | 709 | * @param array $modelTableData |
710 | 710 | * @param string $sqlLogical |
711 | 711 | * @param bool $isUse |
@@ -754,7 +754,7 @@ discard block |
||
754 | 754 | /** |
755 | 755 | * Set in query part where expression '== 1' is boolean true(1) |
756 | 756 | * |
757 | - * @param $fieldName |
|
757 | + * @param string $fieldName |
|
758 | 758 | * @param array $modelTableData |
759 | 759 | * @param string $sqlLogical |
760 | 760 | * @return QueryBuilder |
@@ -796,8 +796,8 @@ discard block |
||
796 | 796 | /** |
797 | 797 | * Set in query part where expression 'like ?' |
798 | 798 | * |
799 | - * @param $fieldName |
|
800 | - * @param $fieldValue |
|
799 | + * @param string $fieldName |
|
800 | + * @param string $fieldValue |
|
801 | 801 | * @param array $modelTableData |
802 | 802 | * @param string $sqlLogical |
803 | 803 | * @param bool $isUse |
@@ -940,7 +940,7 @@ discard block |
||
940 | 940 | /** |
941 | 941 | * Return table alias for model class for query |
942 | 942 | * |
943 | - * @return Model |
|
943 | + * @return null|string |
|
944 | 944 | * |
945 | 945 | * @author dp <[email protected]> |
946 | 946 | * |
@@ -1324,7 +1324,7 @@ discard block |
||
1324 | 1324 | * |
1325 | 1325 | * @param array $rows Key-value array |
1326 | 1326 | * @param $part |
1327 | - * @param $dataSourceKey |
|
1327 | + * @param string|null $dataSourceKey |
|
1328 | 1328 | * @return Query |
1329 | 1329 | * |
1330 | 1330 | * @author dp <[email protected]> |
@@ -1837,6 +1837,10 @@ discard block |
||
1837 | 1837 | return $this->addTrigger('afterSelect', $trigger, $params, $modelClass, $isUse); |
1838 | 1838 | } |
1839 | 1839 | |
1840 | + /** |
|
1841 | + * @param string $type |
|
1842 | + * @param boolean $isUse |
|
1843 | + */ |
|
1840 | 1844 | private function addTrigger($type, $trigger, $params, $modelClass, $isUse) |
1841 | 1845 | { |
1842 | 1846 | if (!$isUse) { |
@@ -1888,7 +1892,7 @@ discard block |
||
1888 | 1892 | } |
1889 | 1893 | |
1890 | 1894 | /** |
1891 | - * @param Widget[]|mixed $widgets |
|
1895 | + * @param string $widgets |
|
1892 | 1896 | * @param bool $applyWidgetQueryBuilderParts |
1893 | 1897 | * @return QueryBuilder |
1894 | 1898 | */ |
@@ -1956,7 +1960,7 @@ discard block |
||
1956 | 1960 | * Set query part limit |
1957 | 1961 | * |
1958 | 1962 | * @param $limit |
1959 | - * @param int|null $offset |
|
1963 | + * @param integer $offset |
|
1960 | 1964 | * @return QueryBuilder |
1961 | 1965 | * |
1962 | 1966 | * @author dp <[email protected]> |