Input
class Input
An abstracted Input object gathered from an interface
An Input object describes the app and action to be run, as well as any input parameters or files, or basic authentication
Constants
| LoggerKey |
|
Properties
| private | $app | ||
| private | $action | ||
| private | $auth | ||
| private | $params | ||
| private | $files |
Methods
The app to be run
The app action to be run
The basic authentication to be used
The inner collection of parameters to be used
No description
No description
No description
No description
No description
Returns the array of input files
Determines whether or not the given key exists as an input file
Gets the file mapped to the parameter name
Same as GetFile() but returns null rather than throwing an exception
Constructs an input object using the data gathered from the interface, and sanitizes the app/action strings
Details
at line 36
string
GetApp()
The app to be run
at line 42
string
GetAction()
The app action to be run
at line 48
InputAuth|null
GetAuth()
The basic authentication to be used
at line 53
Input
SetLogger(BaseAppLog|null $logger)
Sets the optional param logger to the given BaseAppLog
at line 71
SafeParams
GetParams()
The inner collection of parameters to be used
at line 74
bool
HasParam(string $key)
No description
at line 78
Input
AddParam(string $key, $value)
No description
at line 82
GetParam(string $key, int $type, int $minlog = SafeParams::PARAMLOG_ONLYFULL, array|null $values = null, callable|null $valfunc = null)
No description
at line 86
GetOptParam(string $key, int $type, int $minlog = SafeParams::PARAMLOG_ONLYFULL, array|null $values = null, callable|null $valfunc = null)
No description
at line 90
GetNullParam(string $key, int $type, int $minlog = SafeParams::PARAMLOG_ONLYFULL, array|null $values = null, callable|null $valfunc = null)
No description
at line 94
GetOptNullParam(string $key, int $type, int $minlog = SafeParams::PARAMLOG_ONLYFULL, array|null $values = null, callable|null $valfunc = null)
No description
at line 101
array
GetFiles()
Returns the array of input files
at line 108
bool
HasFile(string $key)
Determines whether or not the given key exists as an input file
at line 117
Input
AddFile(string $key, InputStream $file)
Adds the given InputStream to the file array
at line 126
InputStream
GetFile(string $key)
Gets the file mapped to the parameter name
at line 137
InputStream|null
TryGetFile(string $key)
Same as GetFile() but returns null rather than throwing an exception
at line 144
__construct(string $app, string $action, SafeParams|null $params = null, array|null $files = null, InputAuth|null $auth = null)
Constructs an input object using the data gathered from the interface, and sanitizes the app/action strings