34 if (!$arguments instanceof \
TYPO3\CMS\Extbase\Mvc\Controller\
Arguments) {
35 throw new \InvalidArgumentException(
'Expected TYPO3\\CMS\\Extbase\\Mvc\\Controller\\Arguments, ' . gettype($arguments) .
' given.', 1241079561);
37 $this->errors = array();
39 foreach ($arguments->getArgumentNames() as $argumentName) {
54 return $object instanceof \TYPO3\CMS\Extbase\Mvc\Controller\Arguments;
70 if (!$arguments instanceof \
TYPO3\CMS\Extbase\Mvc\Controller\
Arguments) {
71 throw new \InvalidArgumentException(
'Expected TYPO3\\CMS\\Extbase\\Mvc\\Controller\\Arguments, ' . gettype($arguments) .
' given.', 1241079562);
73 $argument = $arguments[$argumentName];
74 $validatorConjunction = $argument->getValidator();
75 if ($validatorConjunction === NULL) {
78 $argumentValue = $argument->getValue();
79 if ($argumentValue === $argument->getDefaultValue() && $argument->isRequired() === FALSE) {
82 if ($validatorConjunction->isValid($argumentValue) === FALSE) {
98 if (!isset($this->errors[$argumentName])) {
99 $this->errors[$argumentName] = new \TYPO3\CMS\Extbase\Mvc\Controller\ArgumentError($argumentName);
101 $this->errors[$argumentName]->addErrors($errors);
isPropertyValid($arguments, $argumentName)
addErrorsForArgument(array $errors, $argumentName)