TYPO3 API  SVNRelease
Public Member Functions | Protected Member Functions
Tx_Extbase_MVC_Controller_ArgumentsValidator Class Reference
Inheritance diagram for Tx_Extbase_MVC_Controller_ArgumentsValidator:
Inheritance graph
[legend]
Collaboration diagram for Tx_Extbase_MVC_Controller_ArgumentsValidator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 isValid ($arguments)
 canValidate ($object)
 isPropertyValid ($arguments, $argumentName)

Protected Member Functions

 addErrorsForArgument (array $errors, $argumentName)

Detailed Description

Definition at line 36 of file ArgumentsValidator.php.


Member Function Documentation

Tx_Extbase_MVC_Controller_ArgumentsValidator::addErrorsForArgument ( array $  errors,
argumentName 
) [protected]

Adds the given errors to $this->errors and creates an ArgumentError instance if needed.

Parameters:
array$errorsArray of
string$argumentNameName of the argument to add errors for
Returns:
void

Definition at line 106 of file ArgumentsValidator.php.

Referenced by isPropertyValid().

Tx_Extbase_MVC_Controller_ArgumentsValidator::canValidate ( object)

Checks the given object can be validated by the validator implementation

Parameters:
object$objectThe object to be checked
Returns:
boolean TRUE if this validator can validate instances of the given object or FALSE if it can't

Implements Tx_Extbase_Validation_Validator_ObjectValidatorInterface.

Definition at line 66 of file ArgumentsValidator.php.

Tx_Extbase_MVC_Controller_ArgumentsValidator::isPropertyValid ( arguments,
argumentName 
)

Checks if the specified property (ie. the argument) of the given arguments object is valid. Validity is checked by first invoking the validation chain defined in the argument object.

If at least one error occurred, the result is FALSE.

Parameters:
object$argumentsThe arguments object containing the property (argument) to validate
string$argumentNameName of the property (ie. name of the argument) to validate
Returns:
boolean TRUE if the argument is valid, FALSE if an error occured

Implements Tx_Extbase_Validation_Validator_ObjectValidatorInterface.

Definition at line 81 of file ArgumentsValidator.php.

References addErrorsForArgument().

Referenced by isValid().

Tx_Extbase_MVC_Controller_ArgumentsValidator::isValid ( arguments)

Checks if the given value (ie. an Arguments object) is valid.

If at least one error occurred, the result is FALSE and any errors can be retrieved through the getErrors() method.

Parameters:
object$argumentsThe arguments object that should be validated
Returns:
boolean TRUE if all arguments are valid, FALSE if an error occured

Implements Tx_Extbase_Validation_Validator_ValidatorInterface.

Definition at line 47 of file ArgumentsValidator.php.

References isPropertyValid().


The documentation for this class was generated from the following file: