Reading Values from a Request
- 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.
Information About the 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.
Parsing Utilities
- 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.
Implementation
- protected function getParameterExists($request, $key) — Test if a parameter exists in a request.
- abstract protected function getParameterValue($request, $key) — Parse a value from a request.
- abstract protected function getParameterTypeName() — Return a simple type name string, like "string" or "list<phid>".
- abstract protected function getParameterFormatDescriptions() — Return a human-readable list of format descriptions.
- abstract protected function getParameterExamples() — Return a human-readable list of examples.
- protected function getParameterDefault() — Return the default value for this parameter type.