@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * Initializes the array with an array or an iterable object. |
| 97 | 97 | * @param null|array|Iterator|map|TPriorityMap $data the intial data. Default is null, meaning no initialization. |
| 98 | 98 | * @param bool $readOnly whether the list is read-only |
| 99 | - * @param numeric $defaultPriority the default priority of items without specified priorities. |
|
| 99 | + * @param integer $defaultPriority the default priority of items without specified priorities. |
|
| 100 | 100 | * @param int $precision the precision of the numeric priorities |
| 101 | 101 | * @throws TInvalidDataTypeException If data is not null and neither an array nor an iterator. |
| 102 | 102 | */ |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | |
| 137 | 137 | /** |
| 138 | 138 | * This must be called internally or when instantiated. |
| 139 | - * @param numeric $value sets the default priority of inserted items without a specified priority |
|
| 139 | + * @param integer $value sets the default priority of inserted items without a specified priority |
|
| 140 | 140 | */ |
| 141 | 141 | protected function setDefaultPriority($value) |
| 142 | 142 | { |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | /** |
| 164 | 164 | * Returns an iterator for traversing the items in the map. |
| 165 | 165 | * This method is required by the interface \IteratorAggregate. |
| 166 | - * @return Iterator an iterator for traversing the items in the map. |
|
| 166 | + * @return \ArrayIterator an iterator for traversing the items in the map. |
|
| 167 | 167 | */ |
| 168 | 168 | public function getIterator() |
| 169 | 169 | { |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | * @param mixed $value |
| 359 | 359 | * @param null|numeric $priority default: null, filled in with default priority |
| 360 | 360 | * @throws TInvalidOperationException if the map is read-only |
| 361 | - * @return numeric priority at which the pair was added |
|
| 361 | + * @return string priority at which the pair was added |
|
| 362 | 362 | */ |
| 363 | 363 | public function add($key, $value, $priority = null) |
| 364 | 364 | { |
@@ -30,6 +30,9 @@ discard block |
||
| 30 | 30 | private $_context; |
| 31 | 31 | private $_criteria; |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param \Prado\Data\ActiveRecord\TActiveRecordCriteria $criteria |
|
| 35 | + */ |
|
| 33 | 36 | public function __construct(TActiveRecordRelationContext $context, $criteria) |
| 34 | 37 | { |
| 35 | 38 | $this->_context = $context; |
@@ -95,7 +98,7 @@ discard block |
||
| 95 | 98 | |
| 96 | 99 | /** |
| 97 | 100 | * Fetch results for current relationship. |
| 98 | - * @param mixed $obj |
|
| 101 | + * @param TActiveRecord $obj |
|
| 99 | 102 | * @return bool always true. |
| 100 | 103 | */ |
| 101 | 104 | public function fetchResultsInto($obj) |
@@ -223,6 +226,7 @@ discard block |
||
| 223 | 226 | * @param array $properties source property names |
| 224 | 227 | * @param array &$fkObjects foreign objects |
| 225 | 228 | * @param array $fields foreign object field names. |
| 229 | + * @param TActiveRecord[] $fkObjects |
|
| 226 | 230 | */ |
| 227 | 231 | protected function populateResult(&$results, $properties, &$fkObjects, $fields) |
| 228 | 232 | { |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | - * @param TDbConnection $value database connection. |
|
| 49 | + * @param null|TDbConnection $value database connection. |
|
| 50 | 50 | */ |
| 51 | 51 | public function setDbConnection($value) |
| 52 | 52 | { |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | * array('col1' => 'NULL', '*') |
| 195 | 195 | * // SELECT `col1`, `col2`, `col3`, NULL AS `col1` FROM... |
| 196 | 196 | * </code> |
| 197 | - * @param mixed $data |
|
| 197 | + * @param string $data |
|
| 198 | 198 | * @return array of generated fields - use implode(', ', $selectfieldlist) to collapse field list for usage |
| 199 | 199 | * @since 3.1.7 |
| 200 | 200 | * @todo add support for table aliasing |
@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | /** |
| 421 | 421 | * Returns a list of insert field name and a list of binding names. |
| 422 | 422 | * @param object $values array or object to be inserted. |
| 423 | - * @return array tuple ($fields, $bindings) |
|
| 423 | + * @return string[] tuple ($fields, $bindings) |
|
| 424 | 424 | */ |
| 425 | 425 | protected function getInsertFieldBindings($values) |
| 426 | 426 | { |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | * @param string $culture The translation locale, e.g. "en_AU". |
| 110 | 110 | * @param int $lastmodified If the source is a file, this file's modified |
| 111 | 111 | * time is newer than the cache's modified time, no cache hit. |
| 112 | - * @return mixed bool FALSE if no cache hit. Otherwise, translation |
|
| 112 | + * @return false|string bool FALSE if no cache hit. Otherwise, translation |
|
| 113 | 113 | * table data for the specified section and locale. |
| 114 | 114 | */ |
| 115 | 115 | public function get($catalogue, $culture, $lastmodified = 0) |
@@ -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) |