class StandardValidator implements ValidatorInterface (View source)

Properties

protected $application

Methods

validateAddKeyRequest(CategoryInterface $category, Type $type, Request $request)

No description

validateUpdateKeyRequest(CategoryInterface $category, Key $key, Request $request)

No description

validateSaveValueRequest(Controller $controller, Request $request, bool $includeFieldNotPresentErrors = true)

No description

parseResponse(Key $key, Response $response, mixed $validateResponse, bool $includeFieldNotPresentErrors)

No description

validateCurrentAttributeValue(Controller $controller, AttributeValueInterface $value, bool $includeFieldNotPresentErrors = true)

No description

__construct(Application $application)

No description

validate(CategoryInterface $category, Controller $controller, Request $request, Key $key = null)

No description

Details

ResponseInterface validateAddKeyRequest(CategoryInterface $category, Type $type, Request $request)

Parameters

CategoryInterface $category
Type $type
Request $request

Return Value

ResponseInterface

ResponseInterface validateUpdateKeyRequest(CategoryInterface $category, Key $key, Request $request)

Parameters

CategoryInterface $category
Key $key
Request $request

Return Value

ResponseInterface

ResponseInterface validateSaveValueRequest(Controller $controller, Request $request, bool $includeFieldNotPresentErrors = true)

Parameters

Controller $controller
Request $request
bool $includeFieldNotPresentErrors

Return Value

ResponseInterface

protected Response parseResponse(Key $key, Response $response, mixed $validateResponse, bool $includeFieldNotPresentErrors)

Parameters

Key $key
Response $response
mixed $validateResponse
bool $includeFieldNotPresentErrors

Return Value

Response $response

ResponseInterface validateCurrentAttributeValue(Controller $controller, AttributeValueInterface $value, bool $includeFieldNotPresentErrors = true)

Parameters

Controller $controller
AttributeValueInterface $value
bool $includeFieldNotPresentErrors

Return Value

ResponseInterface

__construct(Application $application)

Parameters

Application $application

protected validate(CategoryInterface $category, Controller $controller, Request $request, Key $key = null)

Parameters

CategoryInterface $category
Controller $controller
Request $request
Key $key