@@ -76,7 +76,7 @@ |
||
76 | 76 | |
77 | 77 | /** |
78 | 78 | * Creates a control used for repetition (used as a template). |
79 | - * @return TControl the control to be repeated |
|
79 | + * @return TActiveRadioButtonItem the control to be repeated |
|
80 | 80 | */ |
81 | 81 | protected function createRepeatedControl() |
82 | 82 | { |
@@ -69,7 +69,7 @@ |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * @return TListItemType item type. |
|
72 | + * @return string item type. |
|
73 | 73 | */ |
74 | 74 | public function getItemType() |
75 | 75 | { |
@@ -19,7 +19,6 @@ |
||
19 | 19 | namespace Prado\I18N\core; |
20 | 20 | |
21 | 21 | use DOMDocument; |
22 | -use DOMXPath; |
|
23 | 22 | use Prado\Exceptions\TException; |
24 | 23 | use Prado\Exceptions\TIOException; |
25 | 24 |
@@ -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'); |
@@ -52,6 +52,10 @@ discard block |
||
52 | 52 | } |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param \Prado\Data\ActiveRecord\Scaffold\TScaffoldEditView $parent |
|
57 | + * @param \Prado\Data\ActiveRecord\TActiveRecord $record |
|
58 | + */ |
|
55 | 59 | public function createScaffoldInput($parent, $item, $column, $record) |
56 | 60 | { |
57 | 61 | $this->_parent = $parent; |
@@ -68,6 +72,10 @@ discard block |
||
68 | 72 | $label->setForControl(self::DEFAULT_ID); |
69 | 73 | } |
70 | 74 | |
75 | + /** |
|
76 | + * @param \Prado\Data\ActiveRecord\Scaffold\TScaffoldEditView $parent |
|
77 | + * @param \Prado\Data\ActiveRecord\TActiveRecord $record |
|
78 | + */ |
|
71 | 79 | public function loadScaffoldInput($parent, $item, $column, $record) |
72 | 80 | { |
73 | 81 | $this->_parent = $parent; |
@@ -56,6 +56,9 @@ discard block |
||
56 | 56 | $this->reflect(); |
57 | 57 | } |
58 | 58 | |
59 | + /** |
|
60 | + * @param \ReflectionMethod $method |
|
61 | + */ |
|
59 | 62 | private function isPropertyMethod($method) |
60 | 63 | { |
61 | 64 | $methodName = $method->getName(); |
@@ -64,6 +67,9 @@ discard block |
||
64 | 67 | && isset($methodName[3]); |
65 | 68 | } |
66 | 69 | |
70 | + /** |
|
71 | + * @param \ReflectionMethod $method |
|
72 | + */ |
|
67 | 73 | private function isEventMethod($method) |
68 | 74 | { |
69 | 75 | $methodName = $method->getName(); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | /** |
104 | 104 | * Returns the item with the specified key. |
105 | 105 | * This overrides the parent implementation by converting the key to lower case first if CaseSensitive is false. |
106 | - * @param mixed $key the key |
|
106 | + * @param string $key the key |
|
107 | 107 | * @return mixed the element at the offset, null if no element is found at the offset |
108 | 108 | */ |
109 | 109 | public function itemAt($key) |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | /** |
116 | 116 | * Adds an item into the map. |
117 | 117 | * This overrides the parent implementation by converting the key to lower case first if CaseSensitive is false. |
118 | - * @param mixed $key |
|
118 | + * @param string $key |
|
119 | 119 | * @param mixed $value |
120 | 120 | */ |
121 | 121 | public function add($key, $value) |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | /** |
127 | 127 | * Removes an item from the map by its key. |
128 | 128 | * This overrides the parent implementation by converting the key to lower case first if CaseSensitive is false. |
129 | - * @param mixed $key the key of the item to be removed |
|
129 | + * @param string $key the key of the item to be removed |
|
130 | 130 | * @return mixed the removed value, null if no such key exists. |
131 | 131 | */ |
132 | 132 | public function remove($key) |
@@ -68,7 +68,7 @@ |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
71 | - * @param mixed $value original data source |
|
71 | + * @param \Traversable $value original data source |
|
72 | 72 | */ |
73 | 73 | public function setDataSource($value) |
74 | 74 | { |
@@ -289,7 +289,7 @@ |
||
289 | 289 | } |
290 | 290 | |
291 | 291 | /** |
292 | - * @return Iterator iterator |
|
292 | + * @return \ArrayIterator iterator |
|
293 | 293 | */ |
294 | 294 | public function getIterator() |
295 | 295 | { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * Initializes the list with an array or an iterable object. |
85 | 85 | * @param null|array|Iterator $data the intial data. Default is null, meaning no initial data. |
86 | 86 | * @param bool $readOnly whether the list is read-only |
87 | - * @param numeric $defaultPriority the default priority of items without specified priorities. |
|
87 | + * @param integer $defaultPriority the default priority of items without specified priorities. |
|
88 | 88 | * @param int $precision the precision of the numeric priorities |
89 | 89 | * @throws TInvalidDataTypeException If data is not null and is neither an array nor an iterator. |
90 | 90 | */ |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | |
147 | 147 | /** |
148 | 148 | * This must be called internally or when instantiated. |
149 | - * @param numeric $value sets the default priority of inserted items without a specified priority |
|
149 | + * @param integer $value sets the default priority of inserted items without a specified priority |
|
150 | 150 | */ |
151 | 151 | protected function setDefaultPriority($value) |
152 | 152 | { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | /** |
174 | 174 | * Returns an iterator for traversing the items in the list. |
175 | 175 | * This method is required by the interface \IteratorAggregate. |
176 | - * @return Iterator an iterator for traversing the items in the list. |
|
176 | + * @return \ArrayIterator an iterator for traversing the items in the list. |
|
177 | 177 | */ |
178 | 178 | public function getIterator() |
179 | 179 | { |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | /** |
387 | 387 | * Removes an item from the priority list. |
388 | 388 | * The list will search for the item. The first matching item found will be removed from the list. |
389 | - * @param mixed $item item the item to be removed. |
|
389 | + * @param callable $item item the item to be removed. |
|
390 | 390 | * @param null|bool|float $priority priority of item to remove. without this parameter it defaults to false. |
391 | 391 | * A value of false means any priority. null will be filled in with the default priority. |
392 | 392 | * @throws TInvalidDataValueException If the item does not exist |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | |
631 | 631 | /** |
632 | 632 | * Combines the map elements which have a priority below the parameter value |
633 | - * @param numeric $priority the cut-off priority. All items of priority less than this are returned. |
|
633 | + * @param integer $priority the cut-off priority. All items of priority less than this are returned. |
|
634 | 634 | * @param bool $inclusive whether or not the input cut-off priority is inclusive. Default: false, not inclusive. |
635 | 635 | * @return array the array of priorities keys with values of arrays of items that are below a specified priority. |
636 | 636 | * The priorities are sorted so important priorities, lower numerics, are first. |
@@ -650,7 +650,7 @@ discard block |
||
650 | 650 | |
651 | 651 | /** |
652 | 652 | * Combines the map elements which have a priority above the parameter value |
653 | - * @param numeric $priority the cut-off priority. All items of priority greater than this are returned. |
|
653 | + * @param integer $priority the cut-off priority. All items of priority greater than this are returned. |
|
654 | 654 | * @param bool $inclusive whether or not the input cut-off priority is inclusive. Default: true, inclusive. |
655 | 655 | * @return array the array of priorities keys with values of arrays of items that are above a specified priority. |
656 | 656 | * The priorities are sorted so important priorities, lower numerics, are first. |