@@ -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 | { |
@@ -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; |
@@ -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. |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | } |
161 | 161 | |
162 | 162 | /** |
163 | - * @return TDataGatewayCommand |
|
163 | + * @return \Prado\Data\DataGateway\TDataGatewayCommand |
|
164 | 164 | */ |
165 | 165 | protected function getCommandBuilder() |
166 | 166 | { |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | } |
169 | 169 | |
170 | 170 | /** |
171 | - * @return TDataGatewayCommand |
|
171 | + * @return \Prado\Data\DataGateway\TDataGatewayCommand |
|
172 | 172 | */ |
173 | 173 | protected function getForeignCommandBuilder() |
174 | 174 | { |
@@ -227,6 +227,7 @@ discard block |
||
227 | 227 | * @param array $foreignKeys field names |
228 | 228 | * @param array $indexValues field values |
229 | 229 | * @param array $sourceKeys source table column names. |
230 | + * @return \Prado\Data\DataGateway\TDataGatewayCommand |
|
230 | 231 | */ |
231 | 232 | public function createCommand($criteria, $foreignKeys, $indexValues, $sourceKeys) |
232 | 233 | { |
@@ -344,6 +345,9 @@ discard block |
||
344 | 345 | return $this->getCommandBuilder()->onExecuteCommand($command, $command->execute()) > 0; |
345 | 346 | } |
346 | 347 | |
348 | + /** |
|
349 | + * @param TActiveRecord $obj |
|
350 | + */ |
|
347 | 351 | private function updateAssociationTable($obj, $fkObjects, $builder) |
348 | 352 | { |
349 | 353 | $source = $this->getSourceRecordValues($obj); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
107 | - * @return TActiveRecord current Active Record instance |
|
107 | + * @return \Prado\Data\ActiveRecord\TActiveRecord current Active Record instance |
|
108 | 108 | */ |
109 | 109 | protected function getCurrentRecord() |
110 | 110 | { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | |
134 | 134 | /** |
135 | 135 | * Instantiate the external edit renderer. |
136 | - * @param TActiveRecord $record record to be edited |
|
136 | + * @param \Prado\Data\ActiveRecord\TActiveRecord $record record to be edited |
|
137 | 137 | * @param string $classPath external edit renderer class name. |
138 | 138 | * @throws TConfigurationException raised when renderer is not an |
139 | 139 | * instance of IScaffoldEditRenderer. |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | |
262 | 262 | /** |
263 | 263 | * Create the default scaffold editor control factory. |
264 | - * @param TActiveRecord $record record instance. |
|
264 | + * @param \Prado\Data\ActiveRecord\TActiveRecord $record record instance. |
|
265 | 265 | * @return TScaffoldInputBase scaffold editor control factory. |
266 | 266 | */ |
267 | 267 | protected function getScaffoldInputBuilder($record) |