PHP Class eZ\Publish\Core\Base\Exceptions\ContentTypeFieldDefinitionValidationException

Inheritance: extends eZ\Publish\API\Repository\Exceptions\ContentTypeFieldDefinitionValidationException, implements eZ\Publish\Core\Base\Translatable, use trait eZ\Publish\Core\Base\TranslatableBase
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$errors eZ\Publish\Core\FieldType\ValidationError[] Example: $fieldErrors = $exception->getFieldErrors(); $fieldErrors["43"]["eng-GB"]->getTranslatableMessage();

Méthodes publiques

Méthode Description
__construct ( array $errors ) Generates: Content fields did not validate.
getFieldErrors ( ) : ValidationError[] Returns an array of field validation error messages.

Method Details

__construct() public méthode

Also sets the given $fieldErrors to the internal property, retrievable by getFieldErrors()
public __construct ( array $errors )
$errors array

getFieldErrors() public méthode

Returns an array of field validation error messages.
public getFieldErrors ( ) : ValidationError[]
Résultat eZ\Publish\Core\FieldType\ValidationError[]

Property Details

$errors protected_oe property

Example: $fieldErrors = $exception->getFieldErrors(); $fieldErrors["43"]["eng-GB"]->getTranslatableMessage();
protected ValidationError[],eZ\Publish\Core\FieldType $errors
Résultat eZ\Publish\Core\FieldType\ValidationError[]