- final public function setViewer($viewer) — Set the current viewer.
- final public function getViewer() — Get the current viewer.
- final public function getExists($request, $key) — Test if a value is present in a request.
- final public function getValue($request, $key) — Read a value from a request.
- final public function getDefaultValue() — Get the default value for this parameter type.
- final public function getTypeName() — Get a short name for this type, like `string` or `list<phid>`.
- final public function getFormatDescriptions() — Get a list of human-readable descriptions of acceptable formats for this
type.
- final public function getExamples() — Get a list of human-readable examples of how to format this type as an
HTTP GET parameter.
- final protected function getExistsWithType($type, $request, $key) — Call another type's existence check.
- final protected function getValueWithType($type, $request, $key) — Call another type's value parser.
- final public static function getAllTypes() — Get a list of all available parameter types.
| PhabricatorUser | $viewer | Current viewer. |
| PhabricatorUser | Current viewer. |
| AphrontRequest | $request | The incoming request. |
| string | $key | The key to examine. |
| bool | True if a readable value is present in the request. |
| AphrontRequest | $request | The incoming request. |
| string | $key | The key to examine. |
| wild | Value, or default if value is not present. |
| wild | Default value for this type. |
| list<string> | Human-readable list of acceptable formats. |
| list<string> | Human-readable list of format examples. |
| AphrontHTTPParameterType | $type | The other type. |
| AphrontRequest | $request | Incoming request. |
| string | $key | Key to examine. |
| bool | True if the parameter exists. |
| AphrontHTTPParameterType | $type | The other type. |
| AphrontRequest | $request | Incoming request. |
| string | $key | Key to examine. |
| list<AphrontHTTPParameterType> | List of all available types. |
| AphrontRequest | $request | The incoming request. |
| string | $key | The key to examine. |
| bool | True if a readable value is present in the request. |
| AphrontRequest | $request | The incoming request. |
| string | $key | The key to examine. |
| list<string> | Human-readable list of acceptable formats. |
| list<string> | Human-readable list of format examples. |
Copyright © LEAD Solutions B.V.