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

mixed
validateSaveValueRequest(Controller $controller, Request $request, 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

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

Parameters

Controller $controller
Request $request
bool $includeFieldNotPresentErrors

Return Value

mixed

validateCurrentAttributeValue(Controller $controller, AttributeValueInterface $value)

Parameters

Controller $controller
AttributeValueInterface $value

__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