tasks/system/InputTask.php
\InputTask
Package: phing\tasks\system
Reads input from the InputHandler.
- Parent(s)
- \Task < \ProjectComponent
- See
- \Project::getInputHandler()
- Author
- Hans Lellelid
(Phing) - Author
- Ulrich Schmidt
(Ant) - Author
- Stefan Bodewig
(Ant) - Version
- $Revision: 526 $
Properties
Methods

setMessage(
\message $message
)
:
voidSets the Message which gets displayed to the user during the build run.
Parameters
| Name | Type | Description |
|---|---|---|
| $message | \message | The message to be displayed. |

setPromptChar(
string $c
)
:
voidSet the character/string to use for the prompt.
Parameters
| Name | Type | Description |
|---|---|---|
| $c | string |

setPropertyName(
string $name
)
:
voidDefines the name of a property to be set from input.
Parameters
| Name | Type | Description |
|---|---|---|
| $name | string | Name for the property to be set from input |

setValidargs(
\validargs $validargs
)
:
voidDefines valid input parameters as comma separated strings. If set, input task will reject any input not defined as accepted and requires the user to reenter it. Validargs are case sensitive. If you want 'a' and 'A' to be accepted you need to define both values as accepted arguments.
Parameters
| Name | Type | Description |
|---|---|---|
| $validargs | \validargs | A comma separated String defining valid input args. |