@@ -114,6 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | /** |
116 | 116 | * @param boolean whether this list is read-only or not |
117 | + * @param boolean $value |
|
117 | 118 | */ |
118 | 119 | protected function setReadOnly($value) |
119 | 120 | { |
@@ -131,6 +132,7 @@ discard block |
||
131 | 132 | /** |
132 | 133 | * This must be called internally or when instantiated. |
133 | 134 | * @param numeric sets the default priority of inserted items without a specified priority |
135 | + * @param integer $value |
|
134 | 136 | */ |
135 | 137 | protected function setDefaultPriority($value) |
136 | 138 | { |
@@ -148,6 +150,7 @@ discard block |
||
148 | 150 | /** |
149 | 151 | * This must be called internally or when instantiated. |
150 | 152 | * @param integer The precision of numeric priorities. |
153 | + * @param integer $value |
|
151 | 154 | */ |
152 | 155 | protected function setPrecision($value) |
153 | 156 | { |
@@ -270,6 +273,8 @@ discard block |
||
270 | 273 | * This method is exactly the same as {@link offsetGet}. |
271 | 274 | * @param mixed the key |
272 | 275 | * @param numeric|null the priority. default: null, filled in with the default priority numeric. |
276 | + * @param string $key |
|
277 | + * @param integer $priority |
|
273 | 278 | * @return numeric old priority of the item |
274 | 279 | */ |
275 | 280 | public function setPriorityAt($key,$priority=null) |
@@ -338,7 +343,7 @@ discard block |
||
338 | 343 | * @param mixed key |
339 | 344 | * @param mixed value |
340 | 345 | * @param numeric|null priority, default: null, filled in with default priority |
341 | - * @return numeric priority at which the pair was added |
|
346 | + * @return string priority at which the pair was added |
|
342 | 347 | * @throws TInvalidOperationException if the map is read-only |
343 | 348 | */ |
344 | 349 | public function add($key,$value,$priority=null) |
@@ -467,6 +472,7 @@ discard block |
||
467 | 472 | * Combines the map elements which have a priority below the parameter value |
468 | 473 | * @param numeric the cut-off priority. All items of priority less than this are returned. |
469 | 474 | * @param boolean whether or not the input cut-off priority is inclusive. Default: false, not inclusive. |
475 | + * @param integer $priority |
|
470 | 476 | * @return array the array of priorities keys with values of arrays of items that are below a specified priority. |
471 | 477 | * The priorities are sorted so important priorities, lower numerics, are first. |
472 | 478 | */ |
@@ -487,6 +493,7 @@ discard block |
||
487 | 493 | * Combines the map elements which have a priority above the parameter value |
488 | 494 | * @param numeric the cut-off priority. All items of priority greater than this are returned. |
489 | 495 | * @param boolean whether or not the input cut-off priority is inclusive. Default: true, inclusive. |
496 | + * @param integer $priority |
|
490 | 497 | * @return array the array of priorities keys with values of arrays of items that are above a specified priority. |
491 | 498 | * The priorities are sorted so important priorities, lower numerics, are first. |
492 | 499 | */ |
@@ -49,6 +49,7 @@ discard block |
||
49 | 49 | * Constructor. |
50 | 50 | * Initializes the queue with an array or an iterable object. |
51 | 51 | * @param array|Iterator the intial data. Default is null, meaning no initialization. |
52 | + * @param integer[] $data |
|
52 | 53 | * @throws TInvalidDataTypeException If data is not null and neither an array nor an iterator. |
53 | 54 | */ |
54 | 55 | public function __construct($data=null) |
@@ -97,6 +98,7 @@ discard block |
||
97 | 98 | |
98 | 99 | /** |
99 | 100 | * @param mixed the item |
101 | + * @param integer $item |
|
100 | 102 | * @return boolean whether the queue contains the item |
101 | 103 | */ |
102 | 104 | public function contains($item) |
@@ -137,6 +139,7 @@ discard block |
||
137 | 139 | /** |
138 | 140 | * Adds an object to the end of the queue. |
139 | 141 | * @param mixed the item to be appended into the queue |
142 | + * @param integer $item |
|
140 | 143 | */ |
141 | 144 | public function enqueue($item) |
142 | 145 | { |
@@ -46,6 +46,7 @@ |
||
46 | 46 | * Constructor. |
47 | 47 | * Initializes the stack with an array or an iterable object. |
48 | 48 | * @param array|Iterator the initial data. Default is null, meaning no initialization. |
49 | + * @param integer[] $data |
|
49 | 50 | * @throws TInvalidDataTypeException If data is not null and neither an array nor an iterator. |
50 | 51 | */ |
51 | 52 | public function __construct($data=null) |
@@ -208,6 +208,7 @@ discard block |
||
208 | 208 | * @param string active record class name. |
209 | 209 | * @param array row data |
210 | 210 | * @param array foreign key column names |
211 | + * @param string $type |
|
211 | 212 | * @return TActiveRecord |
212 | 213 | */ |
213 | 214 | protected function createFkObject($type,$row,$foreignKeys) |
@@ -227,6 +228,7 @@ discard block |
||
227 | 228 | * @param TTableInfo association table info |
228 | 229 | * @param array field names |
229 | 230 | * @param array field values |
231 | + * @param TActiveRecordCriteria $criteria |
|
230 | 232 | */ |
231 | 233 | public function createCommand($criteria, $foreignKeys,$indexValues,$sourceKeys) |
232 | 234 | { |
@@ -341,6 +343,10 @@ discard block |
||
341 | 343 | return $this->getCommandBuilder()->onExecuteCommand($command, $command->execute()) > 0; |
342 | 344 | } |
343 | 345 | |
346 | + /** |
|
347 | + * @param TActiveRecord $obj |
|
348 | + * @param TDbCommandBuilder $builder |
|
349 | + */ |
|
344 | 350 | private function updateAssociationTable($obj,$fkObjects, $builder) |
345 | 351 | { |
346 | 352 | $source = $this->getSourceRecordValues($obj); |
@@ -92,6 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | /** |
94 | 94 | * Fetch results for current relationship. |
95 | + * @param TActiveRecord $obj |
|
95 | 96 | * @return boolean always true. |
96 | 97 | */ |
97 | 98 | public function fetchResultsInto($obj) |
@@ -104,7 +105,6 @@ discard block |
||
104 | 105 | * Returns foreign keys in $fromRecord with source column names as key |
105 | 106 | * and foreign column names in the corresponding $matchesRecord as value. |
106 | 107 | * The method returns the first matching foreign key between these 2 records. |
107 | - * @param TActiveRecord $fromRecord |
|
108 | 108 | * @param TActiveRecord $matchesRecord |
109 | 109 | * @return array foreign keys with source column names as key and foreign column names as value. |
110 | 110 | */ |
@@ -212,6 +212,7 @@ discard block |
||
212 | 212 | * @param array source property names |
213 | 213 | * @param array foreign objects |
214 | 214 | * @param array foreign object field names. |
215 | + * @param TActiveRecord[] $fkObjects |
|
215 | 216 | */ |
216 | 217 | protected function populateResult(&$results,$properties,&$fkObjects,$fields) |
217 | 218 | { |
@@ -30,6 +30,9 @@ discard block |
||
30 | 30 | private $_relation; //data from an entry of TActiveRecord::$RELATION |
31 | 31 | private $_fkeys; |
32 | 32 | |
33 | + /** |
|
34 | + * @param TActiveRecord $record |
|
35 | + */ |
|
33 | 36 | public function __construct($record, $property=null, $relation=null) |
34 | 37 | { |
35 | 38 | $this->_record=$record; |
@@ -163,6 +166,7 @@ discard block |
||
163 | 166 | * An instance of TActiveRecordHasOne, TActiveRecordBelongsTo, TActiveRecordHasMany, |
164 | 167 | * or TActiveRecordHasManyAssocation will be returned. |
165 | 168 | * @param TActiveRecordCriteria search criteria |
169 | + * @param TSqlCriteria $criteria |
|
166 | 170 | * @return TActiveRecordRelation record relationship handler instnace. |
167 | 171 | * @throws TActiveRecordException if property is not defined or missing. |
168 | 172 | */ |
@@ -195,7 +199,7 @@ discard block |
||
195 | 199 | } |
196 | 200 | |
197 | 201 | /** |
198 | - * @return TActiveRecordRelationCommand |
|
202 | + * @return boolean |
|
199 | 203 | */ |
200 | 204 | public function updateAssociatedRecords($updateBelongsTo=false) |
201 | 205 | { |
@@ -46,6 +46,10 @@ discard block |
||
46 | 46 | } |
47 | 47 | } |
48 | 48 | |
49 | + /** |
|
50 | + * @param TScaffoldEditView $parent |
|
51 | + * @param TActiveRecord $record |
|
52 | + */ |
|
49 | 53 | public function createScaffoldInput($parent, $item, $column, $record) |
50 | 54 | { |
51 | 55 | $this->_parent=$parent; |
@@ -62,6 +66,11 @@ discard block |
||
62 | 66 | $label->setForControl(self::DEFAULT_ID); |
63 | 67 | } |
64 | 68 | |
69 | + /** |
|
70 | + * @param TScaffoldEditView $parent |
|
71 | + * @param TDbTableColumn $column |
|
72 | + * @param TActiveRecord $record |
|
73 | + */ |
|
65 | 74 | public function loadScaffoldInput($parent, $item, $column, $record) |
66 | 75 | { |
67 | 76 | $this->_parent=$parent; |
@@ -47,6 +47,9 @@ |
||
47 | 47 | return $control; |
48 | 48 | } |
49 | 49 | |
50 | + /** |
|
51 | + * @return string |
|
52 | + */ |
|
50 | 53 | protected function getDefaultControlValue($container,$column, $record) |
51 | 54 | { |
52 | 55 | $control = $container->findControl(self::DEFAULT_ID); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | private $_record; |
37 | 37 | |
38 | 38 | /** |
39 | - * @return TDbMetaData table/view information |
|
39 | + * @return TDbTableInfo table/view information |
|
40 | 40 | */ |
41 | 41 | protected function getTableInfo() |
42 | 42 | { |
@@ -84,6 +84,7 @@ discard block |
||
84 | 84 | /** |
85 | 85 | * Name of the Active Record class to be viewed or scaffolded. |
86 | 86 | * @param string Active Record class name. |
87 | + * @param string $value |
|
87 | 88 | */ |
88 | 89 | public function setRecordClass($value) |
89 | 90 | { |
@@ -183,6 +184,7 @@ discard block |
||
183 | 184 | |
184 | 185 | /** |
185 | 186 | * @param boolean enable default stylesheet, default is true. |
187 | + * @param boolean $value |
|
186 | 188 | */ |
187 | 189 | public function setEnableDefaultStyle($value) |
188 | 190 | { |