@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * A static method that attempts to return a SearchProviderInterface instance |
| 64 | 64 | * based on the name of the provider class supplied. |
| 65 | 65 | * |
| 66 | - * @param $providerName The class name of the provider class, should be fully-qualified. |
|
| 66 | + * @param string $providerName The class name of the provider class, should be fully-qualified. |
|
| 67 | 67 | * |
| 68 | 68 | * @throws \Alpha\Exception\IllegalArguementException; |
| 69 | 69 | * |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * A static method that attempts to return a SessionProviderInterface instance |
| 64 | 64 | * based on the name of the provider class supplied. |
| 65 | 65 | * |
| 66 | - * @param $providerName The class name of the provider class (fully qualified). |
|
| 66 | + * @param string $providerName The class name of the provider class (fully qualified). |
|
| 67 | 67 | * |
| 68 | 68 | * @throws \Alpha\Exception\IllegalArguementException |
| 69 | 69 | * |
@@ -1162,7 +1162,7 @@ discard block |
||
| 1162 | 1162 | * to be overridden in case you want to do something different with the ID of your objects outside |
| 1163 | 1163 | * of the standard 11 digit OID sequence used internally in Alpha. |
| 1164 | 1164 | * |
| 1165 | - * @return int 11 digit zero-padded OID value. |
|
| 1165 | + * @return string 11 digit zero-padded OID value. |
|
| 1166 | 1166 | * |
| 1167 | 1167 | * @since 1.0 |
| 1168 | 1168 | */ |
@@ -1179,7 +1179,7 @@ discard block |
||
| 1179 | 1179 | * Gets the OID for the object in zero-padded format (same as getID()). This version is final so cannot |
| 1180 | 1180 | * be overridden. |
| 1181 | 1181 | * |
| 1182 | - * @return int 11 digit zero-padded OID value. |
|
| 1182 | + * @return string 11 digit zero-padded OID value. |
|
| 1183 | 1183 | * |
| 1184 | 1184 | * @since 1.0 |
| 1185 | 1185 | */ |
@@ -2176,7 +2176,7 @@ discard block |
||
| 2176 | 2176 | /** |
| 2177 | 2177 | * Starts a new database transaction. |
| 2178 | 2178 | * |
| 2179 | - * @param $BO The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed. |
|
| 2179 | + * @param ActiveRecord $BO The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed. |
|
| 2180 | 2180 | * |
| 2181 | 2181 | * @since 1.0 |
| 2182 | 2182 | * |
@@ -2209,7 +2209,7 @@ discard block |
||
| 2209 | 2209 | /** |
| 2210 | 2210 | * Commits the current database transaction. |
| 2211 | 2211 | * |
| 2212 | - * @param $BO The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed. |
|
| 2212 | + * @param ActiveRecord $BO The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed. |
|
| 2213 | 2213 | * |
| 2214 | 2214 | * @since 1.0 |
| 2215 | 2215 | * |
@@ -2242,7 +2242,7 @@ discard block |
||
| 2242 | 2242 | /** |
| 2243 | 2243 | * Aborts the current database transaction. |
| 2244 | 2244 | * |
| 2245 | - * @param $BO The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed. |
|
| 2245 | + * @param ActiveRecord $BO The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed. |
|
| 2246 | 2246 | * |
| 2247 | 2247 | * @since 1.0 |
| 2248 | 2248 | * |
@@ -2413,7 +2413,7 @@ discard block |
||
| 2413 | 2413 | /** |
| 2414 | 2414 | * Check to see if an attribute exists on the BO. |
| 2415 | 2415 | * |
| 2416 | - * @param $attribute The attribute name. |
|
| 2416 | + * @param string $attribute The attribute name. |
|
| 2417 | 2417 | * |
| 2418 | 2418 | * @return bool |
| 2419 | 2419 | * |
@@ -230,7 +230,7 @@ |
||
| 230 | 230 | /** |
| 231 | 231 | * Getter for the name. |
| 232 | 232 | * |
| 233 | - * @return string |
|
| 233 | + * @return SmallText |
|
| 234 | 234 | * |
| 235 | 235 | * @since 1.0 |
| 236 | 236 | */ |
@@ -60,6 +60,7 @@ discard block |
||
| 60 | 60 | * Disconnects the current database connection if one exists (self::$connection is set). |
| 61 | 61 | * |
| 62 | 62 | * @since 1.1 |
| 63 | + * @return void |
|
| 63 | 64 | */ |
| 64 | 65 | public static function disconnect(); |
| 65 | 66 | |
@@ -81,6 +82,7 @@ discard block |
||
| 81 | 82 | * @since 1.1 |
| 82 | 83 | * |
| 83 | 84 | * @throws \Alpha\Exception\RecordFoundException |
| 85 | + * @return void |
|
| 84 | 86 | */ |
| 85 | 87 | public function load($OID, $version = 0); |
| 86 | 88 | |
@@ -100,7 +102,7 @@ discard block |
||
| 100 | 102 | /** |
| 101 | 103 | * Populates the record object from the database table by the given attribute value. |
| 102 | 104 | * |
| 103 | - * @param string $atribute The name of the attribute to load the record by. |
|
| 105 | + * @param string $attribute The name of the attribute to load the record by. |
|
| 104 | 106 | * @param string $value The value of the attribute to load the record by. |
| 105 | 107 | * @param bool $ignoreClassType Default is false, set to true if you want to load from overloaded tables and ignore the class type |
| 106 | 108 | * @param array $loadAttributes The attributes to load from the database to this object (leave blank to load all attributes) |
@@ -108,6 +110,7 @@ discard block |
||
| 108 | 110 | * @since 1.1 |
| 109 | 111 | * |
| 110 | 112 | * @throws \Alpha\Exception\RecordFoundException |
| 113 | + * @return void |
|
| 111 | 114 | */ |
| 112 | 115 | public function loadByAttribute($attribute, $value, $ignoreClassType = false, $loadAttributes = array()); |
| 113 | 116 | |
@@ -131,14 +134,14 @@ discard block |
||
| 131 | 134 | /** |
| 132 | 135 | * Loads all of the objects of this class by the specified attribute into an array which is returned. |
| 133 | 136 | * |
| 134 | - * @param string $atribute The attribute to load the objects by. |
|
| 137 | + * @param string $attribute The attribute to load the objects by. |
|
| 135 | 138 | * @param string $value The value of the attribute to load the objects by. |
| 136 | 139 | * @param int $start The start of the SQL LIMIT clause, useful for pagination. |
| 137 | 140 | * @param int $limit The amount (limit) of objects to load, useful for pagination. |
| 138 | 141 | * @param string $orderBy The name of the field to sort the objects by. |
| 139 | 142 | * @param string $order The order to sort the objects by. |
| 140 | 143 | * @param bool $ignoreClassType Default is false, set to true if you want to load from overloaded tables and ignore the class type. |
| 141 | - * @param array $constructorArgs An optional array of contructor arguements to pass to the BOs that will be generated and returned. Supports a maximum of 5 arguements. |
|
| 144 | + * @param string[] $constructorArgs An optional array of contructor arguements to pass to the BOs that will be generated and returned. Supports a maximum of 5 arguements. |
|
| 142 | 145 | * |
| 143 | 146 | * @return array An array containing objects of this type of business object. |
| 144 | 147 | * |
@@ -152,14 +155,14 @@ discard block |
||
| 152 | 155 | /** |
| 153 | 156 | * Loads all of the record objects of this class by the specified attributes into an array which is returned. |
| 154 | 157 | * |
| 155 | - * @param array $atributes The attributes to load the records by. |
|
| 158 | + * @param array $attributes The attributes to load the records by. |
|
| 156 | 159 | * @param array $values The values of the attributes to load the records by. |
| 157 | 160 | * @param int $start The start of the SQL LIMIT clause, useful for pagination. |
| 158 | 161 | * @param int $limit The amount (limit) of records to load, useful for pagination. |
| 159 | 162 | * @param string $orderBy The name of the field to sort the records by. |
| 160 | 163 | * @param string $order The order to sort the records by. |
| 161 | 164 | * @param bool $ignoreClassType Default is false, set to true if you want to load from overloaded tables and ignore the class type |
| 162 | - * @param array $constructorArgs An optional array of contructor arguements to pass to the BOs that will be generated and returned. Supports a maximum of 5 arguements. |
|
| 165 | + * @param string[] $constructorArgs An optional array of contructor arguements to pass to the BOs that will be generated and returned. Supports a maximum of 5 arguements. |
|
| 163 | 166 | * |
| 164 | 167 | * @return array An array containing objects of this type of record object. |
| 165 | 168 | * |
@@ -228,6 +231,7 @@ discard block |
||
| 228 | 231 | * |
| 229 | 232 | * @throws \Alpha\Exception\IllegalArguementException |
| 230 | 233 | * @throws \Alpha\Exception\FailedSaveException |
| 234 | + * @return void |
|
| 231 | 235 | */ |
| 232 | 236 | public function saveAttribute($attribute, $value); |
| 233 | 237 | |
@@ -237,6 +241,7 @@ discard block |
||
| 237 | 241 | * @since 1.2 |
| 238 | 242 | * |
| 239 | 243 | * @throws \Alpha\Exception\FailedSaveException |
| 244 | + * @return void |
|
| 240 | 245 | */ |
| 241 | 246 | public function saveHistory(); |
| 242 | 247 | |
@@ -246,6 +251,7 @@ discard block |
||
| 246 | 251 | * @since 1.1 |
| 247 | 252 | * |
| 248 | 253 | * @throws \Alpha\Exception\FailedDeleteException |
| 254 | + * @return void |
|
| 249 | 255 | */ |
| 250 | 256 | public function delete(); |
| 251 | 257 | |
@@ -266,6 +272,7 @@ discard block |
||
| 266 | 272 | * @since 1.1 |
| 267 | 273 | * |
| 268 | 274 | * @throws \Alpha\Exception\AlphaException |
| 275 | + * @return void |
|
| 269 | 276 | */ |
| 270 | 277 | public function makeTable(); |
| 271 | 278 | |
@@ -275,6 +282,7 @@ discard block |
||
| 275 | 282 | * @since 1.2 |
| 276 | 283 | * |
| 277 | 284 | * @throws \AlphaException |
| 285 | + * @return void |
|
| 278 | 286 | */ |
| 279 | 287 | public function makeHistoryTable(); |
| 280 | 288 | |
@@ -284,6 +292,7 @@ discard block |
||
| 284 | 292 | * @since 1.1 |
| 285 | 293 | * |
| 286 | 294 | * @throws \Alpha\Exception\AlphaException |
| 295 | + * @return void |
|
| 287 | 296 | */ |
| 288 | 297 | public function rebuildTable(); |
| 289 | 298 | |
@@ -295,6 +304,7 @@ discard block |
||
| 295 | 304 | * @param string $tableName Optional table name, leave blank for the defined table for this class to be dropped |
| 296 | 305 | * |
| 297 | 306 | * @throws \Alpha\Exception\AlphaException |
| 307 | + * @return void |
|
| 298 | 308 | */ |
| 299 | 309 | public function dropTable($tableName = null); |
| 300 | 310 | |
@@ -307,6 +317,7 @@ discard block |
||
| 307 | 317 | * @since 1.1 |
| 308 | 318 | * |
| 309 | 319 | * @throws \Alpha\Exception\AlphaException |
| 320 | + * @return void |
|
| 310 | 321 | */ |
| 311 | 322 | public function addProperty($propName); |
| 312 | 323 | |
@@ -324,7 +335,7 @@ discard block |
||
| 324 | 335 | /** |
| 325 | 336 | * Gets the count from the database for the amount of objects of this class. |
| 326 | 337 | * |
| 327 | - * @param array $atributes The attributes to count the objects by (optional). |
|
| 338 | + * @param array $attributes The attributes to count the objects by (optional). |
|
| 328 | 339 | * @param array $values The values of the attributes to count the objects by (optional). |
| 329 | 340 | * |
| 330 | 341 | * @return int |
@@ -353,6 +364,7 @@ discard block |
||
| 353 | 364 | * @since 1.1 |
| 354 | 365 | * |
| 355 | 366 | * @throws \Alpha\Exception\AlphaException |
| 367 | + * @return void |
|
| 356 | 368 | */ |
| 357 | 369 | public function setEnumOptions(); |
| 358 | 370 | |
@@ -426,12 +438,12 @@ discard block |
||
| 426 | 438 | * @param string $attributeName The name of the attribute to apply the index on. |
| 427 | 439 | * @param string $relatedClass The fully-qualified name of the related class. |
| 428 | 440 | * @param string $relatedClassAttribute The name of the field to relate to on the related class. |
| 429 | - * @param bool $allowNullValues For foreign key indexes that don't allow null values, set this to false (default is true). |
|
| 430 | 441 | * @param string $indexName The optional name for the index, will calculate if not provided. |
| 431 | 442 | * |
| 432 | 443 | * @since 1.1 |
| 433 | 444 | * |
| 434 | 445 | * @throws \Alpha\Exception\FailedIndexCreateException |
| 446 | + * @return void |
|
| 435 | 447 | */ |
| 436 | 448 | public function createForeignIndex($attributeName, $relatedClass, $relatedClassAttribute, $indexName = null); |
| 437 | 449 | |
@@ -445,6 +457,7 @@ discard block |
||
| 445 | 457 | * @since 1.1 |
| 446 | 458 | * |
| 447 | 459 | * @throws \Alpha\Exception\FailedIndexCreateException |
| 460 | + * @return void |
|
| 448 | 461 | */ |
| 449 | 462 | public function createUniqueIndex($attribute1Name, $attribute2Name = '', $attribute3Name = ''); |
| 450 | 463 | |
@@ -454,6 +467,7 @@ discard block |
||
| 454 | 467 | * @since 1.1 |
| 455 | 468 | * |
| 456 | 469 | * @throws \Alpha\Exception\AlphaException |
| 470 | + * @return void |
|
| 457 | 471 | */ |
| 458 | 472 | public function reload(); |
| 459 | 473 | |
@@ -489,6 +503,7 @@ discard block |
||
| 489 | 503 | * @since 1.1 |
| 490 | 504 | * |
| 491 | 505 | * @throws \Alpha\Exception\AlphaException |
| 506 | + * @return void |
|
| 492 | 507 | */ |
| 493 | 508 | public static function begin(); |
| 494 | 509 | |
@@ -498,6 +513,7 @@ discard block |
||
| 498 | 513 | * @since 1.1 |
| 499 | 514 | * |
| 500 | 515 | * @throws \Alpha\Exception\FailedSaveException |
| 516 | + * @return void |
|
| 501 | 517 | */ |
| 502 | 518 | public static function commit(); |
| 503 | 519 | |
@@ -507,6 +523,7 @@ discard block |
||
| 507 | 523 | * @since 1.1 |
| 508 | 524 | * |
| 509 | 525 | * @throws \Alpha\Exception\AlphaException |
| 526 | + * @return void |
|
| 510 | 527 | */ |
| 511 | 528 | public static function rollback(); |
| 512 | 529 | |
@@ -516,6 +533,7 @@ discard block |
||
| 516 | 533 | * @param \Alpha\Model\ActiveRecord $BO |
| 517 | 534 | * |
| 518 | 535 | * @since 1.1 |
| 536 | + * @return void |
|
| 519 | 537 | */ |
| 520 | 538 | public function setBO($BO); |
| 521 | 539 | |
@@ -548,6 +566,7 @@ discard block |
||
| 548 | 566 | * @throws \Alpha\Exception\AlphaException |
| 549 | 567 | * |
| 550 | 568 | * @since 2.0 |
| 569 | + * @return void |
|
| 551 | 570 | */ |
| 552 | 571 | public static function createDatabase(); |
| 553 | 572 | |
@@ -557,6 +576,7 @@ discard block |
||
| 557 | 576 | * @throws \Alpha\Exception\AlphaException |
| 558 | 577 | * |
| 559 | 578 | * @since 2.0 |
| 579 | + * @return void |
|
| 560 | 580 | */ |
| 561 | 581 | public static function dropDatabase(); |
| 562 | 582 | } |