@@ -470,7 +470,7 @@ discard block |
||
| 470 | 470 | * @param string $pagePath requested page path |
| 471 | 471 | * @throws THttpException if requested page path is invalid |
| 472 | 472 | * @throws TConfigurationException if the page class cannot be found |
| 473 | - * @return TPage the requested page instance |
|
| 473 | + * @return \Prado\TComponent the requested page instance |
|
| 474 | 474 | */ |
| 475 | 475 | protected function createPage($pagePath) |
| 476 | 476 | { |
@@ -517,7 +517,7 @@ discard block |
||
| 517 | 517 | |
| 518 | 518 | /** |
| 519 | 519 | * Executes a page. |
| 520 | - * @param TPage $page the page instance to be run |
|
| 520 | + * @param \Prado\TComponent $page the page instance to be run |
|
| 521 | 521 | * @param array $properties list of initial page properties |
| 522 | 522 | */ |
| 523 | 523 | protected function runPage($page, $properties) |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | /** |
| 336 | - * @param array $appName application id |
|
| 336 | + * @param string $appName application id |
|
| 337 | 337 | * @return string |
| 338 | 338 | */ |
| 339 | 339 | protected function renderConfigFile($appName) |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | |
| 591 | 591 | /** |
| 592 | 592 | * @param string $app_dir application directory |
| 593 | - * @return string|false |
|
| 593 | + * @return string |
|
| 594 | 594 | */ |
| 595 | 595 | protected function getActiveRecordConfig($app_dir) |
| 596 | 596 | { |
@@ -633,7 +633,7 @@ discard block |
||
| 633 | 633 | * @param string $config database configuration |
| 634 | 634 | * @param string $tablename table name |
| 635 | 635 | * @param string $output output file name |
| 636 | - * @return bool |
|
| 636 | + * @return false|null |
|
| 637 | 637 | */ |
| 638 | 638 | protected function generateActiveRecord($config, $tablename, $output) |
| 639 | 639 | { |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | * @param mixed $value the value to be cached |
| 147 | 147 | * @param int $expire the number of seconds in which the cached value will expire. 0 means never expire. |
| 148 | 148 | * @param ICacheDependency $dependency dependency of the cached item. If the dependency changes, the item is labeled invalid. |
| 149 | - * @return bool true if the value is successfully stored into cache, false otherwise |
|
| 149 | + * @return null|boolean true if the value is successfully stored into cache, false otherwise |
|
| 150 | 150 | */ |
| 151 | 151 | public function set($id, $value, $expire = 0, $dependency = null) |
| 152 | 152 | { |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | * Deletes the value with the specified key from cache |
| 284 | 284 | * This method is required by the interface \ArrayAccess. |
| 285 | 285 | * @param string $id the key of the value to be deleted |
| 286 | - * @return bool if no error happens during deletion |
|
| 286 | + * @return boolean|null if no error happens during deletion |
|
| 287 | 287 | */ |
| 288 | 288 | public function offsetUnset($id) |
| 289 | 289 | { |
@@ -468,7 +468,7 @@ discard block |
||
| 468 | 468 | * Execute the select key statement, used to obtain last insert ID. |
| 469 | 469 | * @param IDbConnection $connection database connection |
| 470 | 470 | * @param mixed $parameter insert statement parameter |
| 471 | - * @param TSqlMapSelectKey $selectKey select key statement |
|
| 471 | + * @param \Prado\Data\SqlMap\Configuration\TSqlMapSelectKey $selectKey select key statement |
|
| 472 | 472 | * @return string last insert ID. |
| 473 | 473 | */ |
| 474 | 474 | protected function executeSelectKey($connection, $parameter, $selectKey) |
@@ -595,7 +595,7 @@ discard block |
||
| 595 | 595 | /** |
| 596 | 596 | * Apply the result to a TList or an array. |
| 597 | 597 | * @param array $row a result set row retrieved from the database |
| 598 | - * @param object $resultObject result object, array or list |
|
| 598 | + * @param \ArrayAccess $resultObject result object, array or list |
|
| 599 | 599 | * @return object result filled with data. |
| 600 | 600 | */ |
| 601 | 601 | protected function fillResultArrayList($row, $resultObject) |
@@ -640,7 +640,7 @@ discard block |
||
| 640 | 640 | * Fills the result object according to result mappings. |
| 641 | 641 | * @param string $resultMapName result map name. |
| 642 | 642 | * @param array $row a result set row retrieved from the database |
| 643 | - * @param null|mixed $parentGroup |
|
| 643 | + * @param null|string $parentGroup |
|
| 644 | 644 | * @param null|&object $resultObject result object to fill, will create new instances if required. |
| 645 | 645 | * @return object result object filled with data. |
| 646 | 646 | */ |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * raised in {@link TApplication}. |
| 119 | 119 | * The method mainly uses appropriate template to display the error/exception. |
| 120 | 120 | * It terminates the application immediately after the error is displayed. |
| 121 | - * @param mixed $sender sender of the event |
|
| 121 | + * @param null|\Prado\TApplication $sender sender of the event |
|
| 122 | 122 | * @param mixed $param event parameter (if the event is raised by TApplication, it refers to the exception instance) |
| 123 | 123 | */ |
| 124 | 124 | public function handleError($sender, $param) |
@@ -244,6 +244,9 @@ discard block |
||
| 244 | 244 | } |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | + /** |
|
| 248 | + * @return string |
|
| 249 | + */ |
|
| 247 | 250 | protected function hidePrivatePathParts($value) |
| 248 | 251 | { |
| 249 | 252 | static $aRpl; |
@@ -401,6 +404,9 @@ discard block |
||
| 401 | 404 | return $result; |
| 402 | 405 | } |
| 403 | 406 | |
| 407 | + /** |
|
| 408 | + * @return string |
|
| 409 | + */ |
|
| 404 | 410 | private function getExactTraceAsString($exception) |
| 405 | 411 | { |
| 406 | 412 | if ($exception instanceof TPhpFatalErrorException && |
@@ -427,6 +433,9 @@ discard block |
||
| 427 | 433 | return $this->hidePrivatePathParts($exception->getTraceAsString()); |
| 428 | 434 | } |
| 429 | 435 | |
| 436 | + /** |
|
| 437 | + * @param string $pattern |
|
| 438 | + */ |
|
| 430 | 439 | private function getPropertyAccessTrace($trace, $pattern) |
| 431 | 440 | { |
| 432 | 441 | $result = null; |
@@ -457,6 +466,9 @@ discard block |
||
| 457 | 466 | return $source; |
| 458 | 467 | } |
| 459 | 468 | |
| 469 | + /** |
|
| 470 | + * @param string $message |
|
| 471 | + */ |
|
| 460 | 472 | private function addLink($message) |
| 461 | 473 | { |
| 462 | 474 | if (null !== ($class = $this->getErrorClassNameSpace($message))) { |
@@ -402,6 +402,9 @@ |
||
| 402 | 402 | return [$variant, $file]; |
| 403 | 403 | } |
| 404 | 404 | |
| 405 | + /** |
|
| 406 | + * @param string $catalogue |
|
| 407 | + */ |
|
| 405 | 408 | protected function getTemplate($catalogue) |
| 406 | 409 | { |
| 407 | 410 | $date = @date('Y-m-d\TH:i:s\Z'); |
@@ -497,6 +497,9 @@ |
||
| 497 | 497 | return [$variant, $file]; |
| 498 | 498 | } |
| 499 | 499 | |
| 500 | + /** |
|
| 501 | + * @param string $catalogue |
|
| 502 | + */ |
|
| 500 | 503 | protected function getTemplate($catalogue) |
| 501 | 504 | { |
| 502 | 505 | $date = @date('c'); |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | 119 | * @param string $token |
| 120 | - * @return string hash |
|
| 120 | + * @return integer hash |
|
| 121 | 121 | */ |
| 122 | 122 | private function generateTokenHash($token) |
| 123 | 123 | { |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | - * @return TControl|null control to be validated. Null if no control is found. |
|
| 112 | + * @return \Prado\Web\UI\TControl|null control to be validated. Null if no control is found. |
|
| 113 | 113 | */ |
| 114 | 114 | public function getValidationTarget() |
| 115 | 115 | { |