AbstractControllerMessage.php
215 if ($validateDesc === null || Validator::validate($value, $validateDesc, ['request' => $this])) {
220 ObjectFactory::getInstance('message')->getText("The value of '%0%' (%1%) is invalid.", [$name, $value]));
getBooleanValue($name, $default=false)
Definition: AbstractControllerMessage.php:231
clearErrors()
Definition: AbstractControllerMessage.php:309
ValidationException signals an exception in validation.
Definition: ValidationException.php:18
getHeaders()
Definition: AbstractControllerMessage.php:170
AbstractControllerMessage is the base class for request/response implementations.
Definition: AbstractControllerMessage.php:27
setFormat($format)
Definition: AbstractControllerMessage.php:127
Validator is is the single entry point for validation.
Definition: Validator.php:23
hasValue($name)
Definition: AbstractControllerMessage.php:264
hasErrors()
Definition: AbstractControllerMessage.php:316
__toString()
Get a string representation of the message.
Definition: AbstractControllerMessage.php:332
setSender($sender)
Definition: AbstractControllerMessage.php:85
StringUtil provides support for string manipulation.
Definition: StringUtil.php:18
clearValues()
Definition: AbstractControllerMessage.php:257
Formatter is the single entry point for request/response formatting.
Definition: Formatter.php:23
setHeader($name, $value)
Definition: AbstractControllerMessage.php:144
getValues()
Definition: AbstractControllerMessage.php:243
clearHeader($name)
Definition: AbstractControllerMessage.php:177
clearHeaders()
Definition: AbstractControllerMessage.php:184
ApplicationError is used to signal errors that occur while processing a request.
Definition: ApplicationError.php:41
setContext($context)
Definition: AbstractControllerMessage.php:99
setValues(array $values)
Definition: AbstractControllerMessage.php:205
getErrors()
Definition: AbstractControllerMessage.php:302
Messages are sent between Controllers and are used to transfer data between them.
Definition: ControllerMessage.php:23
static getInstance($name, $dynamicConfiguration=[])
Definition: ObjectFactory.php:47
static validate($value, $validateDesc, $context=null)
Validate the given value against the given validateType description.
Definition: Validator.php:35
addError(ApplicationError $error)
Definition: AbstractControllerMessage.php:288
setAction($action)
Definition: AbstractControllerMessage.php:113
getValue($name, $default=null, $validateDesc=null, $suppressException=false)
Definition: AbstractControllerMessage.php:212
setErrors(array $errors)
Definition: AbstractControllerMessage.php:295
getContext()
Definition: AbstractControllerMessage.php:106
getHeader($name, $default=null)
Definition: AbstractControllerMessage.php:158
getProperty($name)
Definition: AbstractControllerMessage.php:278
hasHeader($name)
Definition: AbstractControllerMessage.php:191
setHeaders(array $headers)
Definition: AbstractControllerMessage.php:151
ObjectFactory implements the service locator pattern by wrapping a Factory instance and providing sta...
Definition: ObjectFactory.php:24
setValue($name, $value)
Definition: AbstractControllerMessage.php:198
clearValue($name)
Definition: AbstractControllerMessage.php:250
getFormat()
Definition: AbstractControllerMessage.php:134
getSender()
Definition: AbstractControllerMessage.php:92
setProperty($name, $value)
Definition: AbstractControllerMessage.php:271