| @@ -63,6 +63,7 @@ discard block | ||
| 63 | 63 | |
| 64 | 64 | /** | 
| 65 | 65 | * @param mixed original data source | 
| 66 | + * @param Traversable $value | |
| 66 | 67 | */ | 
| 67 | 68 | public function setDataSource($value) | 
| 68 | 69 |  	{ | 
| @@ -88,6 +89,7 @@ discard block | ||
| 88 | 89 | |
| 89 | 90 | /** | 
| 90 | 91 | * @param integer number of items in each page | 
| 92 | + * @param integer $value | |
| 91 | 93 | */ | 
| 92 | 94 | public function setPageSize($value) | 
| 93 | 95 |  	{ | 
| @@ -107,6 +109,7 @@ discard block | ||
| 107 | 109 | |
| 108 | 110 | /** | 
| 109 | 111 | * @param integer current page index | 
| 112 | + * @param integer $value | |
| 110 | 113 | */ | 
| 111 | 114 | public function setCurrentPageIndex($value) | 
| 112 | 115 |  	{ | 
| @@ -125,6 +128,7 @@ discard block | ||
| 125 | 128 | |
| 126 | 129 | /** | 
| 127 | 130 | * @param boolean whether to allow paging | 
| 131 | + * @param boolean $value | |
| 128 | 132 | */ | 
| 129 | 133 | public function setAllowPaging($value) | 
| 130 | 134 |  	{ | 
| @@ -141,6 +145,7 @@ discard block | ||
| 141 | 145 | |
| 142 | 146 | /** | 
| 143 | 147 | * @param boolean whether to allow custom paging | 
| 148 | + * @param boolean $value | |
| 144 | 149 | */ | 
| 145 | 150 | public function setAllowCustomPaging($value) | 
| 146 | 151 |  	{ | 
| @@ -157,6 +162,7 @@ discard block | ||
| 157 | 162 | |
| 158 | 163 | /** | 
| 159 | 164 | * @param integer user-assigned number of items in data source | 
| 165 | + * @param integer $value | |
| 160 | 166 | */ | 
| 161 | 167 | public function setVirtualItemCount($value) | 
| 162 | 168 |  	{ | 
| @@ -290,6 +296,8 @@ discard block | ||
| 290 | 296 | * @param TList the data to be iterated through | 
| 291 | 297 | * @param integer start index | 
| 292 | 298 | * @param integer number of items to be iterated through | 
| 299 | + * @param integer $startIndex | |
| 300 | + * @param integer $count | |
| 293 | 301 | */ | 
| 294 | 302 | public function __construct(TList $list,$startIndex,$count) | 
| 295 | 303 |  	{ | 
| @@ -374,6 +382,8 @@ discard block | ||
| 374 | 382 | /** | 
| 375 | 383 | * Constructor. | 
| 376 | 384 | * @param array the data to be iterated through | 
| 385 | + * @param integer $startIndex | |
| 386 | + * @param integer $count | |
| 377 | 387 | */ | 
| 378 | 388 | public function __construct(TMap $map,$startIndex,$count) | 
| 379 | 389 |  	{ | 
| @@ -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); | 
| @@ -90,10 +90,10 @@ | ||
| 90 | 90 | private $_association_columns=array(); | 
| 91 | 91 | |
| 92 | 92 | /** | 
| 93 | - * Get the foreign key index values from the results and make calls to the | |
| 94 | - * database to find the corresponding foreign objects using association table. | |
| 95 | - * @param array original results. | |
| 96 | - */ | |
| 93 | + * Get the foreign key index values from the results and make calls to the | |
| 94 | + * database to find the corresponding foreign objects using association table. | |
| 95 | + * @param array original results. | |
| 96 | + */ | |
| 97 | 97 | protected function collectForeignObjects(&$results) | 
| 98 | 98 |  	{ | 
| 99 | 99 | list($sourceKeys, $foreignKeys) = $this->getRelationForeignKeys(); | 
| @@ -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 |  	{ | 
| @@ -129,6 +129,8 @@ discard block | ||
| 129 | 129 | * Instantiate the external edit renderer. | 
| 130 | 130 | * @param TActiveRecord record to be edited | 
| 131 | 131 | * @param string external edit renderer class name. | 
| 132 | + * @param TActiveRecord $record | |
| 133 | + * @param string $classPath | |
| 132 | 134 | * @throws TConfigurationException raised when renderer is not an | 
| 133 | 135 | * instance of IScaffoldEditRenderer. | 
| 134 | 136 | */ | 
| @@ -260,6 +262,7 @@ discard block | ||
| 260 | 262 | /** | 
| 261 | 263 | * Create the default scaffold editor control factory. | 
| 262 | 264 | * @param TActiveRecord record instance. | 
| 265 | + * @param TActiveRecord $record | |
| 263 | 266 | * @return TScaffoldInputBase scaffold editor control factory. | 
| 264 | 267 | */ | 
| 265 | 268 | protected function getScaffoldInputBuilder($record) | 
| @@ -300,6 +303,7 @@ discard block | ||
| 300 | 303 | /** | 
| 301 | 304 | * This method should update the record with the user input data. | 
| 302 | 305 | * @param TActiveRecord record to be saved. | 
| 306 | + * @param TActiveRecord $record | |
| 303 | 307 | */ | 
| 304 | 308 | public function updateRecord($record); | 
| 305 | 309 | } | 
| @@ -121,6 +121,7 @@ | ||
| 121 | 121 | |
| 122 | 122 | /** | 
| 123 | 123 | * @param string search condition, the SQL string after the WHERE clause. | 
| 124 | + * @param string|null $value | |
| 124 | 125 | */ | 
| 125 | 126 | public function setSearchCondition($value) | 
| 126 | 127 |  	{ |