@@ -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 | { |
@@ -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 | { |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | |
211 | 211 | /** |
212 | 212 | * Gets the CultureInfo that for this culture string |
213 | - * @param mixed $culture |
|
213 | + * @param string $culture |
|
214 | 214 | * @return CultureInfo invariant culture info is "en". |
215 | 215 | */ |
216 | 216 | public static function getInstance($culture) |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | |
252 | 252 | /** |
253 | 253 | * Load the ICU culture data for the specific culture identifier. |
254 | - * @param string $culture the culture identifier. |
|
254 | + * @param string $cultureName the culture identifier. |
|
255 | 255 | */ |
256 | 256 | protected function loadCultureData($cultureName) |
257 | 257 | { |
@@ -295,6 +295,7 @@ discard block |
||
295 | 295 | * currency for "en_AU", you need to use findInfo("Currencies,true);. |
296 | 296 | * @param string $path the data you want to find. |
297 | 297 | * @param bool $merge merge the data from its parents. |
298 | + * @param string $key |
|
298 | 299 | * @return mixed the specific ICU data. |
299 | 300 | */ |
300 | 301 | public function findInfo($path='/', $merge=false, $key = null) |
@@ -556,7 +557,6 @@ discard block |
||
556 | 557 | * Simplify a single element array into its own value. |
557 | 558 | * E.g. <code>array(0 => array('hello'), 1 => 'world');</code> |
558 | 559 | * becomes <code>array(0 => 'hello', 1 => 'world');</code> |
559 | - * @param array $array with single elements arrays |
|
560 | 560 | * @return array simplified array. |
561 | 561 | */ |
562 | 562 | protected function simplify($obj) |
@@ -628,7 +628,7 @@ discard block |
||
628 | 628 | |
629 | 629 | /** |
630 | 630 | * Get a list of timezones in the language of the localized version. |
631 | - * @return array list of localized timezones. |
|
631 | + * @return string[] list of localized timezones. |
|
632 | 632 | */ |
633 | 633 | public function getTimeZones() |
634 | 634 | { |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | |
158 | 158 | /** |
159 | 159 | * Returns the DateTimeFormatInfo associated with the specified culture. |
160 | - * @param null|CultureInfo|string $culture the culture that gets the DateTimeFormat property. |
|
160 | + * @param string $culture the culture that gets the DateTimeFormat property. |
|
161 | 161 | * @return DateTimeFormatInfo DateTimeFormatInfo for the specified |
162 | 162 | * culture. |
163 | 163 | */ |
@@ -174,6 +174,9 @@ discard block |
||
174 | 174 | } |
175 | 175 | } |
176 | 176 | |
177 | + /** |
|
178 | + * @param string $path |
|
179 | + */ |
|
177 | 180 | public function getInfoByPath($path) |
178 | 181 | { |
179 | 182 | static $basePath = null; |