43 if(
"open" === $authType) {
53 $usage = parent::getUsage();
54 $usage = str_replace(
'--app=',
'--app=' . $this->action->parent->name .
' : ',
$usage);
55 $usage = str_replace(
'--action=',
'--action=' . $this->action->name .
' : ',
$usage);
66 $value = parent::getArgumentValue($key, null);
68 if (isset($_FILES[$key])) {
82 public static function isFile($argVal, $argName, $apiUsage)
85 if (!is_array($argVal) || !isset($argVal[
"name"]) || !isset($argVal[
"tmp_name"])) {
86 $err = sprintf(
"Value type isn't authorized for argument, must be a file description array");
__construct(Action &$action)
addOptionalParameter($argName, $argDefinition, $restriction=null, $default=null)
static isFile($argVal, $argName, $apiUsage)
Verify arguments for action function.
addHiddenParameter($argName, $argDefinition)
getArgumentValue($key, $defaultValue= '')
if($file) if($subject==""&&$file) if($subject=="") $err
addRequiredParameter($argName, $argDefinition, $restriction=null)
Verify arguments for wsh programs.