@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Alpha\Util\Config\ConfigProvider; |
| 7 | 7 | use Alpha\Util\Http\Request; |
| 8 | 8 | use Alpha\Util\Http\Response; |
| 9 | -use Alpha\Util\Http\Session\SessionProviderFactory; |
|
| 10 | 9 | use Alpha\View\View; |
| 11 | 10 | use Alpha\Controller\Front\FrontController; |
| 12 | 11 | |
@@ -60,37 +60,36 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * Handles GET HTTP requests. |
| 62 | 62 | * |
| 63 | - * @param \Alpha\Util\Http\Request $request |
|
| 64 | 63 | * |
| 65 | 64 | * @since Alpha\Util\Http\Response |
| 66 | 65 | * @since 1.0 |
| 66 | + * @return \Alpha\Util\Http\Response|null |
|
| 67 | 67 | */ |
| 68 | 68 | public function doGET($params); |
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | 71 | * Handles POST HTTP requests. |
| 72 | 72 | * |
| 73 | - * @param \Alpha\Util\Http\Request $request |
|
| 74 | 73 | * |
| 75 | 74 | * @since Alpha\Util\Http\Response |
| 76 | 75 | * @since 1.0 |
| 76 | + * @return \Alpha\Util\Http\Response|null |
|
| 77 | 77 | */ |
| 78 | 78 | public function doPOST($params); |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * Handles PUT HTTP requests. |
| 82 | 82 | * |
| 83 | - * @param \Alpha\Util\Http\Request $request |
|
| 84 | 83 | * |
| 85 | 84 | * @since Alpha\Util\Http\Response |
| 86 | 85 | * @since 1.0 |
| 86 | + * @return \Alpha\Util\Http\Response |
|
| 87 | 87 | */ |
| 88 | 88 | public function doPUT($params); |
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | 91 | * Handles PATCH HTTP requests. |
| 92 | 92 | * |
| 93 | - * @param \Alpha\Util\Http\Request $request |
|
| 94 | 93 | * |
| 95 | 94 | * @since Alpha\Util\Http\Response |
| 96 | 95 | * @since 1.0 |
@@ -100,30 +99,30 @@ discard block |
||
| 100 | 99 | /** |
| 101 | 100 | * Handles DELETE HTTP requests. |
| 102 | 101 | * |
| 103 | - * @param \Alpha\Util\Http\Request $request |
|
| 104 | 102 | * |
| 105 | 103 | * @since Alpha\Util\Http\Response |
| 106 | 104 | * @since 1.0 |
| 105 | + * @return \Alpha\Util\Http\Response |
|
| 107 | 106 | */ |
| 108 | 107 | public function doDELETE($params); |
| 109 | 108 | |
| 110 | 109 | /** |
| 111 | 110 | * Handles OPTIONS HTTP requests. |
| 112 | 111 | * |
| 113 | - * @param \Alpha\Util\Http\Request $request |
|
| 114 | 112 | * |
| 115 | 113 | * @since Alpha\Util\Http\Response |
| 116 | 114 | * @since 1.0 |
| 115 | + * @return \Alpha\Util\Http\Response |
|
| 117 | 116 | */ |
| 118 | 117 | public function doOPTIONS($params); |
| 119 | 118 | |
| 120 | 119 | /** |
| 121 | 120 | * Handles TRACE HTTP requests. |
| 122 | 121 | * |
| 123 | - * @param \Alpha\Util\Http\Request $request |
|
| 124 | 122 | * |
| 125 | 123 | * @since Alpha\Util\Http\Response |
| 126 | 124 | * @since 2.0.2 |
| 125 | + * @return \Alpha\Util\Http\Response |
|
| 127 | 126 | */ |
| 128 | 127 | public function doTRACE($params); |
| 129 | 128 | } |
@@ -454,7 +454,7 @@ |
||
| 454 | 454 | * Custom version of the check rights method that only checks for a session for the config admin username/password, |
| 455 | 455 | * when the system database is not set-up. |
| 456 | 456 | * |
| 457 | - * @return bool |
|
| 457 | + * @return boolean|null |
|
| 458 | 458 | * |
| 459 | 459 | * @since 1.0 |
| 460 | 460 | */ |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | * A static method that attempts to return a ActiveRecordProviderInterface instance |
| 68 | 68 | * based on the name of the provider class supplied. |
| 69 | 69 | * |
| 70 | - * @param $providerName The fully-qualified class name of the provider class. |
|
| 70 | + * @param string $providerName The fully-qualified class name of the provider class. |
|
| 71 | 71 | * @param $BO The (optional) active record instance to pass to the persistance provider for mapping. |
| 72 | 72 | * |
| 73 | 73 | * @throws \Alpha\Exception\IllegalArguementException |
@@ -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 | |
@@ -100,7 +101,7 @@ discard block |
||
| 100 | 101 | /** |
| 101 | 102 | * Populates the record object from the database table by the given attribute value. |
| 102 | 103 | * |
| 103 | - * @param string $atribute The name of the attribute to load the record by. |
|
| 104 | + * @param string $attribute The name of the attribute to load the record by. |
|
| 104 | 105 | * @param string $value The value of the attribute to load the record by. |
| 105 | 106 | * @param bool $ignoreClassType Default is false, set to true if you want to load from overloaded tables and ignore the class type |
| 106 | 107 | * @param array $loadAttributes The attributes to load from the database to this object (leave blank to load all attributes) |
@@ -131,14 +132,14 @@ discard block |
||
| 131 | 132 | /** |
| 132 | 133 | * Loads all of the objects of this class by the specified attribute into an array which is returned. |
| 133 | 134 | * |
| 134 | - * @param string $atribute The attribute to load the objects by. |
|
| 135 | + * @param string $attribute The attribute to load the objects by. |
|
| 135 | 136 | * @param string $value The value of the attribute to load the objects by. |
| 136 | 137 | * @param int $start The start of the SQL LIMIT clause, useful for pagination. |
| 137 | 138 | * @param int $limit The amount (limit) of objects to load, useful for pagination. |
| 138 | 139 | * @param string $orderBy The name of the field to sort the objects by. |
| 139 | 140 | * @param string $order The order to sort the objects by. |
| 140 | 141 | * @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. |
|
| 142 | + * @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 | 143 | * |
| 143 | 144 | * @return array An array containing objects of this type of business object. |
| 144 | 145 | * |
@@ -152,14 +153,14 @@ discard block |
||
| 152 | 153 | /** |
| 153 | 154 | * Loads all of the record objects of this class by the specified attributes into an array which is returned. |
| 154 | 155 | * |
| 155 | - * @param array $atributes The attributes to load the records by. |
|
| 156 | + * @param array $attributes The attributes to load the records by. |
|
| 156 | 157 | * @param array $values The values of the attributes to load the records by. |
| 157 | 158 | * @param int $start The start of the SQL LIMIT clause, useful for pagination. |
| 158 | 159 | * @param int $limit The amount (limit) of records to load, useful for pagination. |
| 159 | 160 | * @param string $orderBy The name of the field to sort the records by. |
| 160 | 161 | * @param string $order The order to sort the records by. |
| 161 | 162 | * @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. |
|
| 163 | + * @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 | 164 | * |
| 164 | 165 | * @return array An array containing objects of this type of record object. |
| 165 | 166 | * |
@@ -228,6 +229,7 @@ discard block |
||
| 228 | 229 | * |
| 229 | 230 | * @throws \Alpha\Exception\IllegalArguementException |
| 230 | 231 | * @throws \Alpha\Exception\FailedSaveException |
| 232 | + * @return void |
|
| 231 | 233 | */ |
| 232 | 234 | public function saveAttribute($attribute, $value); |
| 233 | 235 | |
@@ -237,6 +239,7 @@ discard block |
||
| 237 | 239 | * @since 1.2 |
| 238 | 240 | * |
| 239 | 241 | * @throws \Alpha\Exception\FailedSaveException |
| 242 | + * @return void |
|
| 240 | 243 | */ |
| 241 | 244 | public function saveHistory(); |
| 242 | 245 | |
@@ -246,6 +249,7 @@ discard block |
||
| 246 | 249 | * @since 1.1 |
| 247 | 250 | * |
| 248 | 251 | * @throws \Alpha\Exception\FailedDeleteException |
| 252 | + * @return void |
|
| 249 | 253 | */ |
| 250 | 254 | public function delete(); |
| 251 | 255 | |
@@ -266,6 +270,7 @@ discard block |
||
| 266 | 270 | * @since 1.1 |
| 267 | 271 | * |
| 268 | 272 | * @throws \Alpha\Exception\AlphaException |
| 273 | + * @return void |
|
| 269 | 274 | */ |
| 270 | 275 | public function makeTable(); |
| 271 | 276 | |
@@ -275,6 +280,7 @@ discard block |
||
| 275 | 280 | * @since 1.2 |
| 276 | 281 | * |
| 277 | 282 | * @throws \AlphaException |
| 283 | + * @return void |
|
| 278 | 284 | */ |
| 279 | 285 | public function makeHistoryTable(); |
| 280 | 286 | |
@@ -284,6 +290,7 @@ discard block |
||
| 284 | 290 | * @since 1.1 |
| 285 | 291 | * |
| 286 | 292 | * @throws \Alpha\Exception\AlphaException |
| 293 | + * @return void |
|
| 287 | 294 | */ |
| 288 | 295 | public function rebuildTable(); |
| 289 | 296 | |
@@ -295,6 +302,7 @@ discard block |
||
| 295 | 302 | * @param string $tableName Optional table name, leave blank for the defined table for this class to be dropped |
| 296 | 303 | * |
| 297 | 304 | * @throws \Alpha\Exception\AlphaException |
| 305 | + * @return void |
|
| 298 | 306 | */ |
| 299 | 307 | public function dropTable($tableName = null); |
| 300 | 308 | |
@@ -307,6 +315,7 @@ discard block |
||
| 307 | 315 | * @since 1.1 |
| 308 | 316 | * |
| 309 | 317 | * @throws \Alpha\Exception\AlphaException |
| 318 | + * @return void |
|
| 310 | 319 | */ |
| 311 | 320 | public function addProperty($propName); |
| 312 | 321 | |
@@ -324,7 +333,7 @@ discard block |
||
| 324 | 333 | /** |
| 325 | 334 | * Gets the count from the database for the amount of objects of this class. |
| 326 | 335 | * |
| 327 | - * @param array $atributes The attributes to count the objects by (optional). |
|
| 336 | + * @param array $attributes The attributes to count the objects by (optional). |
|
| 328 | 337 | * @param array $values The values of the attributes to count the objects by (optional). |
| 329 | 338 | * |
| 330 | 339 | * @return int |
@@ -353,6 +362,7 @@ discard block |
||
| 353 | 362 | * @since 1.1 |
| 354 | 363 | * |
| 355 | 364 | * @throws \Alpha\Exception\AlphaException |
| 365 | + * @return void |
|
| 356 | 366 | */ |
| 357 | 367 | public function setEnumOptions(); |
| 358 | 368 | |
@@ -426,12 +436,12 @@ discard block |
||
| 426 | 436 | * @param string $attributeName The name of the attribute to apply the index on. |
| 427 | 437 | * @param string $relatedClass The fully-qualified name of the related class. |
| 428 | 438 | * @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 | 439 | * @param string $indexName The optional name for the index, will calculate if not provided. |
| 431 | 440 | * |
| 432 | 441 | * @since 1.1 |
| 433 | 442 | * |
| 434 | 443 | * @throws \Alpha\Exception\FailedIndexCreateException |
| 444 | + * @return void |
|
| 435 | 445 | */ |
| 436 | 446 | public function createForeignIndex($attributeName, $relatedClass, $relatedClassAttribute, $indexName = null); |
| 437 | 447 | |
@@ -445,6 +455,7 @@ discard block |
||
| 445 | 455 | * @since 1.1 |
| 446 | 456 | * |
| 447 | 457 | * @throws \Alpha\Exception\FailedIndexCreateException |
| 458 | + * @return void |
|
| 448 | 459 | */ |
| 449 | 460 | public function createUniqueIndex($attribute1Name, $attribute2Name = '', $attribute3Name = ''); |
| 450 | 461 | |
@@ -454,6 +465,7 @@ discard block |
||
| 454 | 465 | * @since 1.1 |
| 455 | 466 | * |
| 456 | 467 | * @throws \Alpha\Exception\AlphaException |
| 468 | + * @return void |
|
| 457 | 469 | */ |
| 458 | 470 | public function reload(); |
| 459 | 471 | |
@@ -489,6 +501,7 @@ discard block |
||
| 489 | 501 | * @since 1.1 |
| 490 | 502 | * |
| 491 | 503 | * @throws \Alpha\Exception\AlphaException |
| 504 | + * @return void |
|
| 492 | 505 | */ |
| 493 | 506 | public static function begin(); |
| 494 | 507 | |
@@ -498,6 +511,7 @@ discard block |
||
| 498 | 511 | * @since 1.1 |
| 499 | 512 | * |
| 500 | 513 | * @throws \Alpha\Exception\FailedSaveException |
| 514 | + * @return void |
|
| 501 | 515 | */ |
| 502 | 516 | public static function commit(); |
| 503 | 517 | |
@@ -507,6 +521,7 @@ discard block |
||
| 507 | 521 | * @since 1.1 |
| 508 | 522 | * |
| 509 | 523 | * @throws \Alpha\Exception\AlphaException |
| 524 | + * @return void |
|
| 510 | 525 | */ |
| 511 | 526 | public static function rollback(); |
| 512 | 527 | |
@@ -516,6 +531,7 @@ discard block |
||
| 516 | 531 | * @param \Alpha\Model\ActiveRecord $BO |
| 517 | 532 | * |
| 518 | 533 | * @since 1.1 |
| 534 | + * @return void |
|
| 519 | 535 | */ |
| 520 | 536 | public function setBO($BO); |
| 521 | 537 | |
@@ -548,6 +564,7 @@ discard block |
||
| 548 | 564 | * @throws \Alpha\Exception\AlphaException |
| 549 | 565 | * |
| 550 | 566 | * @since 2.0 |
| 567 | + * @return void |
|
| 551 | 568 | */ |
| 552 | 569 | public static function createDatabase(); |
| 553 | 570 | |
@@ -557,6 +574,7 @@ discard block |
||
| 557 | 574 | * @throws \Alpha\Exception\AlphaException |
| 558 | 575 | * |
| 559 | 576 | * @since 2.0 |
| 577 | + * @return void |
|
| 560 | 578 | */ |
| 561 | 579 | public static function dropDatabase(); |
| 562 | 580 | } |
@@ -262,7 +262,6 @@ discard block |
||
| 262 | 262 | /** |
| 263 | 263 | * Get the name of the business object class that this class is related to. |
| 264 | 264 | * |
| 265 | - * @param string $RC |
|
| 266 | 265 | * |
| 267 | 266 | * @return string |
| 268 | 267 | * |
@@ -512,7 +511,7 @@ discard block |
||
| 512 | 511 | /** |
| 513 | 512 | * Getter for the Relation value. |
| 514 | 513 | * |
| 515 | - * @return mixed |
|
| 514 | + * @return string |
|
| 516 | 515 | * |
| 517 | 516 | * @since 1.0 |
| 518 | 517 | */ |
@@ -754,7 +753,7 @@ discard block |
||
| 754 | 753 | * Set the taggedClass property to the name of the tagged class when building relations |
| 755 | 754 | * to the TagObject BO. |
| 756 | 755 | * |
| 757 | - * @param $taggedClass |
|
| 756 | + * @param string $taggedClass |
|
| 758 | 757 | * |
| 759 | 758 | * @since 1.0 |
| 760 | 759 | */ |
@@ -222,6 +222,7 @@ discard block |
||
| 222 | 222 | * (non-PHPdoc) |
| 223 | 223 | * |
| 224 | 224 | * @see Alpha\Model\ActiveRecord::loadAllByAttribute() |
| 225 | + * @param string $attribute |
|
| 225 | 226 | */ |
| 226 | 227 | public function loadAllByAttribute($attribute, $value, $start = 0, $limit = 0, $orderBy = 'OID', $order = 'ASC', $ignoreClassType = false, $constructorArgs = array()) |
| 227 | 228 | { |
@@ -312,7 +313,7 @@ discard block |
||
| 312 | 313 | /** |
| 313 | 314 | * Returns an array of the OIDs of the related objects. |
| 314 | 315 | * |
| 315 | - * @return array |
|
| 316 | + * @return integer[] |
|
| 316 | 317 | * |
| 317 | 318 | * @since 1.0 |
| 318 | 319 | */ |
@@ -325,7 +326,7 @@ discard block |
||
| 325 | 326 | * Used to set the OIDs of the related objects. Pass a two-item array of OIDs, the first |
| 326 | 327 | * one being the left object OID, the second being the right. |
| 327 | 328 | * |
| 328 | - * @param array $OIDs |
|
| 329 | + * @param string[] $OIDs |
|
| 329 | 330 | * |
| 330 | 331 | * @since 1.0 |
| 331 | 332 | * |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * A static method that attempts to return a CacheProviderInterface 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 | * |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * A static method that attempts to return a HighlightProviderInterface instance |
| 64 | 64 | * based on the name of the provider class supplied. |
| 65 | 65 | * |
| 66 | - * @param $providerName The fully-qualified class name of the provider class, should implement Alpha\Util\Code\Highlight\HighlightProviderInterface |
|
| 66 | + * @param string $providerName The fully-qualified class name of the provider class, should implement Alpha\Util\Code\Highlight\HighlightProviderInterface |
|
| 67 | 67 | * |
| 68 | 68 | * @throws \Alpha\Exception\IllegalArguementException |
| 69 | 69 | * |