@@ -28,6 +28,7 @@ |
||
28 | 28 | /** |
29 | 29 | * Constructor. |
30 | 30 | * @param integer old page index |
31 | + * @param integer $oldPage |
|
31 | 32 | */ |
32 | 33 | public function __construct($oldPage) |
33 | 34 | { |
@@ -34,6 +34,8 @@ |
||
34 | 34 | /** |
35 | 35 | * Constructor. |
36 | 36 | * @param array the data to be iterated through |
37 | + * @param integer $startIndex |
|
38 | + * @param integer $count |
|
37 | 39 | */ |
38 | 40 | public function __construct(TMap $map,$startIndex,$count) |
39 | 41 | { |
@@ -143,6 +143,7 @@ discard block |
||
143 | 143 | /** |
144 | 144 | * This must be called internally or when instantiated. |
145 | 145 | * @param numeric sets the default priority of inserted items without a specified priority |
146 | + * @param integer $value |
|
146 | 147 | */ |
147 | 148 | protected function setDefaultPriority($value) |
148 | 149 | { |
@@ -160,6 +161,7 @@ discard block |
||
160 | 161 | /** |
161 | 162 | * This must be called internally or when instantiated. |
162 | 163 | * @param integer The precision of numeric priorities. |
164 | + * @param integer $value |
|
163 | 165 | */ |
164 | 166 | protected function setPrecision($value) |
165 | 167 | { |
@@ -169,7 +171,7 @@ discard block |
||
169 | 171 | /** |
170 | 172 | * Returns an iterator for traversing the items in the list. |
171 | 173 | * This method is required by the interface \IteratorAggregate. |
172 | - * @return Iterator an iterator for traversing the items in the list. |
|
174 | + * @return \ArrayIterator an iterator for traversing the items in the list. |
|
173 | 175 | */ |
174 | 176 | public function getIterator() |
175 | 177 | { |
@@ -596,6 +598,7 @@ discard block |
||
596 | 598 | * Combines the map elements which have a priority below the parameter value |
597 | 599 | * @param numeric the cut-off priority. All items of priority less than this are returned. |
598 | 600 | * @param boolean whether or not the input cut-off priority is inclusive. Default: false, not inclusive. |
601 | + * @param integer $priority |
|
599 | 602 | * @return array the array of priorities keys with values of arrays of items that are below a specified priority. |
600 | 603 | * The priorities are sorted so important priorities, lower numerics, are first. |
601 | 604 | */ |
@@ -616,6 +619,7 @@ discard block |
||
616 | 619 | * Combines the map elements which have a priority above the parameter value |
617 | 620 | * @param numeric the cut-off priority. All items of priority greater than this are returned. |
618 | 621 | * @param boolean whether or not the input cut-off priority is inclusive. Default: true, inclusive. |
622 | + * @param integer $priority |
|
619 | 623 | * @return array the array of priorities keys with values of arrays of items that are above a specified priority. |
620 | 624 | * The priorities are sorted so important priorities, lower numerics, are first. |
621 | 625 | */ |
@@ -118,6 +118,7 @@ discard block |
||
118 | 118 | |
119 | 119 | /** |
120 | 120 | * @param boolean whether this list is read-only or not |
121 | + * @param boolean $value |
|
121 | 122 | */ |
122 | 123 | protected function setReadOnly($value) |
123 | 124 | { |
@@ -135,6 +136,7 @@ discard block |
||
135 | 136 | /** |
136 | 137 | * This must be called internally or when instantiated. |
137 | 138 | * @param numeric sets the default priority of inserted items without a specified priority |
139 | + * @param integer $value |
|
138 | 140 | */ |
139 | 141 | protected function setDefaultPriority($value) |
140 | 142 | { |
@@ -152,6 +154,7 @@ discard block |
||
152 | 154 | /** |
153 | 155 | * This must be called internally or when instantiated. |
154 | 156 | * @param integer The precision of numeric priorities. |
157 | + * @param integer $value |
|
155 | 158 | */ |
156 | 159 | protected function setPrecision($value) |
157 | 160 | { |
@@ -161,7 +164,7 @@ discard block |
||
161 | 164 | /** |
162 | 165 | * Returns an iterator for traversing the items in the map. |
163 | 166 | * This method is required by the interface \IteratorAggregate. |
164 | - * @return Iterator an iterator for traversing the items in the map. |
|
167 | + * @return \ArrayIterator an iterator for traversing the items in the map. |
|
165 | 168 | */ |
166 | 169 | public function getIterator() |
167 | 170 | { |
@@ -342,7 +345,7 @@ discard block |
||
342 | 345 | * @param mixed key |
343 | 346 | * @param mixed value |
344 | 347 | * @param numeric|null priority, default: null, filled in with default priority |
345 | - * @return numeric priority at which the pair was added |
|
348 | + * @return string priority at which the pair was added |
|
346 | 349 | * @throws TInvalidOperationException if the map is read-only |
347 | 350 | */ |
348 | 351 | public function add($key,$value,$priority=null) |
@@ -149,7 +149,7 @@ |
||
149 | 149 | /** |
150 | 150 | * Returns an iterator for traversing the items in the queue. |
151 | 151 | * This method is required by the interface \IteratorAggregate. |
152 | - * @return Iterator an iterator for traversing the items in the queue. |
|
152 | + * @return \ArrayIterator an iterator for traversing the items in the queue. |
|
153 | 153 | */ |
154 | 154 | public function getIterator() |
155 | 155 | { |
@@ -148,7 +148,7 @@ |
||
148 | 148 | /** |
149 | 149 | * Returns an iterator for traversing the items in the stack. |
150 | 150 | * This method is required by the interface \IteratorAggregate. |
151 | - * @return Iterator an iterator for traversing the items in the stack. |
|
151 | + * @return \ArrayIterator an iterator for traversing the items in the stack. |
|
152 | 152 | */ |
153 | 153 | public function getIterator() |
154 | 154 | { |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | } |
166 | 166 | |
167 | 167 | /** |
168 | - * @return TDataGatewayCommand |
|
168 | + * @return \Prado\Data\DataGateway\TDataGatewayCommand |
|
169 | 169 | */ |
170 | 170 | protected function getCommandBuilder() |
171 | 171 | { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | } |
174 | 174 | |
175 | 175 | /** |
176 | - * @return TDataGatewayCommand |
|
176 | + * @return \Prado\Data\DataGateway\TDataGatewayCommand |
|
177 | 177 | */ |
178 | 178 | protected function getForeignCommandBuilder() |
179 | 179 | { |
@@ -210,6 +210,7 @@ discard block |
||
210 | 210 | * @param string active record class name. |
211 | 211 | * @param array row data |
212 | 212 | * @param array foreign key column names |
213 | + * @param string $type |
|
213 | 214 | * @return TActiveRecord |
214 | 215 | */ |
215 | 216 | protected function createFkObject($type,$row,$foreignKeys) |
@@ -343,6 +344,9 @@ discard block |
||
343 | 344 | return $this->getCommandBuilder()->onExecuteCommand($command, $command->execute()) > 0; |
344 | 345 | } |
345 | 346 | |
347 | + /** |
|
348 | + * @param TActiveRecord $obj |
|
349 | + */ |
|
346 | 350 | private function updateAssociationTable($obj,$fkObjects, $builder) |
347 | 351 | { |
348 | 352 | $source = $this->getSourceRecordValues($obj); |
@@ -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; |
@@ -168,6 +171,7 @@ discard block |
||
168 | 171 | * An instance of TActiveRecordHasOne, TActiveRecordBelongsTo, TActiveRecordHasMany, |
169 | 172 | * or TActiveRecordHasManyAssocation will be returned. |
170 | 173 | * @param TActiveRecordCriteria search criteria |
174 | + * @param \Prado\Data\DataGateway\TSqlCriteria $criteria |
|
171 | 175 | * @return TActiveRecordRelation record relationship handler instnace. |
172 | 176 | * @throws TActiveRecordException if property is not defined or missing. |
173 | 177 | */ |
@@ -196,7 +200,7 @@ discard block |
||
196 | 200 | } |
197 | 201 | |
198 | 202 | /** |
199 | - * @return TActiveRecordRelationCommand |
|
203 | + * @return boolean |
|
200 | 204 | */ |
201 | 205 | public function updateAssociatedRecords($updateBelongsTo=false) |
202 | 206 | { |
@@ -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; |