Alannah Kearney
|
9f5c5c7d4d
|
Made getCollection(), getInput(), find(), and validate() in AbstractInputHandler final. Removed categorising input by type. Abstracted most of validate() into it's own protected method called validateInput(). Removed $skipValidation argument from bind() and relaced with $flags. Added FLAG_BIND_SKIP_VALIDATION, FLAG_VALIDATION_SKIP_REQUIRED, FLAG_VALIDATION_SKIP_CUSTOM, and FLAG_VALIDATION_SKIP_UNRECOGNISED flags. Added check in validate() to look for unrecognised options and arguments.
|
2019-06-01 22:31:59 +10:00 |
|
Alannah Kearney
|
419a4a9f79
|
Code tidy
|
2019-05-27 00:22:25 +10:00 |
|
Alannah Kearney
|
695b4ac75a
|
Updated validation logic for inputs that have a validator, no default, and are not set. Using InputValidationFailedException exception when validation fails
|
2019-05-25 11:59:29 +10:00 |
|
Alannah Kearney
|
96bf279a70
|
AbstractInputHandler::find() returns NULL if it cannot find any input with the supplied name. It is easier to test for NULL than it is to catch an exception.
|
2019-05-24 18:04:00 +10:00 |
|
Alannah Kearney
|
9e27b52991
|
Updated to work with more than just Argument and Option input types. Makes use of InputTypeFactory to allow addition of new types as needed. Added InputTypeFactory to help with loading input type classes
|
2019-05-24 17:17:24 +10:00 |
|
Alannah Kearney
|
0620d00f08
|
Initial commit
|
2019-05-20 15:08:41 +10:00 |
|