@@ -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 | { |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | } |
287 | 287 | |
288 | 288 | /** |
289 | - * @param ITemplate $value the template for repeater items |
|
289 | + * @param \Prado\Web\UI\TTemplate $value the template for repeater items |
|
290 | 290 | * @throws TInvalidDataTypeException if the input is not an {@link ITemplate} or not null. |
291 | 291 | */ |
292 | 292 | public function setItemTemplate($value) |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | * This method invokes {@link createItem} to create a new repeater item. |
464 | 464 | * @param int $itemIndex zero-based item index. |
465 | 465 | * @param TListItemType $itemType item type |
466 | - * @return TControl the created item, null if item is not created |
|
466 | + * @return \Prado\TComponent|null the created item, null if item is not created |
|
467 | 467 | */ |
468 | 468 | private function createItemInternal($itemIndex, $itemType) |
469 | 469 | { |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | * @param int $itemIndex zero-based item index. |
484 | 484 | * @param TListItemType $itemType item type |
485 | 485 | * @param mixed $dataItem data to be associated with the item |
486 | - * @return TControl the created item, null if item is not created |
|
486 | + * @return \Prado\TComponent|null the created item, null if item is not created |
|
487 | 487 | */ |
488 | 488 | private function createItemWithDataInternal($itemIndex, $itemType, $dataItem) |
489 | 489 | { |
@@ -506,7 +506,7 @@ discard block |
||
506 | 506 | * Creates a repeater item instance based on the item type and index. |
507 | 507 | * @param int $itemIndex zero-based item index |
508 | 508 | * @param TListItemType $itemType item type |
509 | - * @return TControl created repeater item |
|
509 | + * @return null|\Prado\TComponent created repeater item |
|
510 | 510 | */ |
511 | 511 | protected function createItem($itemIndex, $itemType) |
512 | 512 | { |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | * Loads date from drop down list data. |
484 | 484 | * @param string $key the key that can be used to retrieve data from the input data collection |
485 | 485 | * @param array $values the input data collection |
486 | - * @return array the date selected |
|
486 | + * @return string the date selected |
|
487 | 487 | */ |
488 | 488 | protected function getDateFromPostData($key, $values) |
489 | 489 | { |
@@ -595,7 +595,7 @@ discard block |
||
595 | 595 | } |
596 | 596 | |
597 | 597 | /** |
598 | - * @return DateTimeFormatInfo date time format information for the current culture. |
|
598 | + * @return CultureInfo date time format information for the current culture. |
|
599 | 599 | */ |
600 | 600 | protected function getLocalizedCalendarInfo() |
601 | 601 | { |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | /** |
648 | 648 | * Renders the calendar drop down list depending on the DateFormat pattern. |
649 | 649 | * @param THtmlWriter $writer the Html writer to render the drop down lists. |
650 | - * @param array $date the current selected date |
|
650 | + * @param \DateTime $date the current selected date |
|
651 | 651 | */ |
652 | 652 | protected function renderCalendarSelections($writer, $date) |
653 | 653 | { |
@@ -755,7 +755,7 @@ discard block |
||
755 | 755 | * Returns the localized month names that depends on the month format pattern. |
756 | 756 | * "MMMM" will return the month names, "MM" or "MMM" return abbr. month names |
757 | 757 | * and "M" return month digits. |
758 | - * @param DateTimeFormatInfo $info localized date format information. |
|
758 | + * @param CultureInfo $info localized date format information. |
|
759 | 759 | * @return array localized month names. |
760 | 760 | */ |
761 | 761 | protected function getLocalizedMonthNames($info) |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | /** |
329 | 329 | * Gets the current Db connection, the connection object is obtained from |
330 | 330 | * the TActiveRecordManager if connection is currently null. |
331 | - * @return TDbConnection current db connection for this object. |
|
331 | + * @return \Prado\Data\TDbConnection current db connection for this object. |
|
332 | 332 | */ |
333 | 333 | public function getDbConnection() |
334 | 334 | { |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | * $finder->find($criteria); //the 2nd parameter for find() is ignored. |
582 | 582 | * </code> |
583 | 583 | * |
584 | - * @param string|TActiveRecordCriteria $criteria SQL condition or criteria object. |
|
584 | + * @param TSqlCriteria $criteria SQL condition or criteria object. |
|
585 | 585 | * @param mixed $parameters parameter values. |
586 | 586 | * @return TActiveRecord matching record object. Null if no result is found. |
587 | 587 | */ |
@@ -353,7 +353,7 @@ |
||
353 | 353 | * @param string $key the key identifying the value to be cached |
354 | 354 | * @param string $value the value to be cached |
355 | 355 | * @param int $expire the number of seconds in which the cached value will expire. 0 means never expire. |
356 | - * @return bool true if the value is successfully stored into cache, false otherwise |
|
356 | + * @return boolean|null true if the value is successfully stored into cache, false otherwise |
|
357 | 357 | */ |
358 | 358 | protected function addValue($key, $value, $expire) |
359 | 359 | { |