@@ -35,6 +35,9 @@ discard block |
||
35 | 35 | private $_relation; //data from an entry of TActiveRecord::$RELATION |
36 | 36 | private $_fkeys; |
37 | 37 | |
38 | + /** |
|
39 | + * @param TActiveRecord $record |
|
40 | + */ |
|
38 | 41 | public function __construct($record, $property = null, $relation = null) |
39 | 42 | { |
40 | 43 | $this->_record = $record; |
@@ -200,8 +203,8 @@ discard block |
||
200 | 203 | } |
201 | 204 | |
202 | 205 | /** |
203 | - * @param mixed $updateBelongsTo |
|
204 | - * @return TActiveRecordRelationCommand |
|
206 | + * @param boolean $updateBelongsTo |
|
207 | + * @return boolean |
|
205 | 208 | */ |
206 | 209 | public function updateAssociatedRecords($updateBelongsTo = false) |
207 | 210 | { |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | } |
195 | 195 | |
196 | 196 | /** |
197 | - * @return bool true if the parameter index are string base, false otherwise. |
|
197 | + * @return boolean|null true if the parameter index are string base, false otherwise. |
|
198 | 198 | */ |
199 | 199 | public function getIsNamedParameters() |
200 | 200 | { |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | } |
213 | 213 | |
214 | 214 | /** |
215 | - * @param mixed $value ordering clause. |
|
215 | + * @param string $value ordering clause. |
|
216 | 216 | */ |
217 | 217 | public function setOrdersBy($value) |
218 | 218 | { |
@@ -205,7 +205,6 @@ discard block |
||
205 | 205 | |
206 | 206 | /** |
207 | 207 | * Load the ICU culture data for the specific culture identifier. |
208 | - * @param string $culture the culture identifier. |
|
209 | 208 | * @param mixed $key |
210 | 209 | */ |
211 | 210 | protected function loadCultureData($key) |
@@ -258,7 +257,6 @@ discard block |
||
258 | 257 | * Search the array for a specific value using a path separated using |
259 | 258 | * slash "/" separated path. e.g to find $info['hello']['world'], |
260 | 259 | * the path "hello/world" will return the corresponding value. |
261 | - * @param array $info the array for search |
|
262 | 260 | * @param string $path slash "/" separated array path. |
263 | 261 | * @param mixed $resource |
264 | 262 | * @return mixed the value array using the path |
@@ -402,7 +400,6 @@ discard block |
||
402 | 400 | * Simplify a single element array into its own value. |
403 | 401 | * E.g. <code>array(0 => array('hello'), 1 => 'world');</code> |
404 | 402 | * becomes <code>array(0 => 'hello', 1 => 'world');</code> |
405 | - * @param array $array with single elements arrays |
|
406 | 403 | * @param mixed $obj |
407 | 404 | * @return array simplified array. |
408 | 405 | */ |
@@ -478,7 +475,7 @@ discard block |
||
478 | 475 | |
479 | 476 | /** |
480 | 477 | * Get a list of timezones in the language of the localized version. |
481 | - * @return array list of localized timezones. |
|
478 | + * @return string[] list of localized timezones. |
|
482 | 479 | */ |
483 | 480 | public function getTimeZones() |
484 | 481 | { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * Creates the DB connection. |
63 | 63 | * @param string $connectionID the module ID for TDataSourceConfig |
64 | 64 | * @throws TConfigurationException if module ID is invalid or empty |
65 | - * @return TDbConnection the created DB connection |
|
65 | + * @return \Prado\Data\TDbConnection the created DB connection |
|
66 | 66 | */ |
67 | 67 | protected function createDbConnection($connectionID) |
68 | 68 | { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | /** |
141 | 141 | * Get all the variants of a particular catalogue. |
142 | 142 | * @param string $catalogue catalogue name |
143 | - * @return array list of all variants for this catalogue. |
|
143 | + * @return string[] list of all variants for this catalogue. |
|
144 | 144 | */ |
145 | 145 | protected function getCatalogueList($catalogue) |
146 | 146 | { |
@@ -108,7 +108,7 @@ |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | /** |
111 | - * @return null|TControl control to be validated. Null if no control is found. |
|
111 | + * @return \Prado\Web\UI\TControl|null control to be validated. Null if no control is found. |
|
112 | 112 | */ |
113 | 113 | public function getValidationTarget() |
114 | 114 | { |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * Initializes the array with an array or an iterable object. |
88 | 88 | * @param null|array|Iterator|map|TPriorityMap $data the intial data. Default is null, meaning no initialization. |
89 | 89 | * @param bool $readOnly whether the list is read-only |
90 | - * @param numeric $defaultPriority the default priority of items without specified priorities. |
|
90 | + * @param integer $defaultPriority the default priority of items without specified priorities. |
|
91 | 91 | * @param int $precision the precision of the numeric priorities |
92 | 92 | * @throws TInvalidDataTypeException If data is not null and neither an array nor an iterator. |
93 | 93 | */ |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | |
112 | 112 | /** |
113 | 113 | * This must be called internally or when instantiated. |
114 | - * @param numeric $value sets the default priority of inserted items without a specified priority |
|
114 | + * @param integer $value sets the default priority of inserted items without a specified priority |
|
115 | 115 | */ |
116 | 116 | protected function setDefaultPriority($value) |
117 | 117 | { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * Returns an iterator for traversing the items in the map. |
140 | 140 | * This method is required by the interface \IteratorAggregate. |
141 | - * @return Iterator an iterator for traversing the items in the map. |
|
141 | + * @return \ArrayIterator an iterator for traversing the items in the map. |
|
142 | 142 | */ |
143 | 143 | public function getIterator() |
144 | 144 | { |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | /** |
225 | 225 | * Returns the item with the specified key. If a priority is specified, only items |
226 | 226 | * within that specific priority will be selected |
227 | - * @param mixed $key the key |
|
227 | + * @param string $key the key |
|
228 | 228 | * @param mixed $priority the priority. null is the default priority, false is any priority, |
229 | 229 | * and numeric is a specific priority. default: false, any priority. |
230 | 230 | * @return mixed the element at the offset, null if no element is found at the offset |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | * @param mixed $value |
324 | 324 | * @param null|numeric $priority default: null, filled in with default priority |
325 | 325 | * @throws TInvalidOperationException if the map is read-only |
326 | - * @return numeric priority at which the pair was added |
|
326 | + * @return string priority at which the pair was added |
|
327 | 327 | */ |
328 | 328 | public function add($key, $value, $priority = null) |
329 | 329 | { |