TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Validation\PropertyError Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Validation\PropertyError:
TYPO3\CMS\Extbase\Validation\Error TYPO3\CMS\Extbase\Error\Error TYPO3\CMS\Extbase\Error\Message Tx_Extbase_Validation_PropertyError TYPO3\CMS\Extbase\Mvc\Controller\ArgumentError Tx_Extbase_MVC_Controller_ArgumentError

Public Member Functions

 __construct ($propertyName)
 
 addErrors ($errors)
 
 getErrors ()
 
 getPropertyName ()
 
- Public Member Functions inherited from TYPO3\CMS\Extbase\Error\Message
 __construct ($message, $code, array $arguments=array(), $title='')
 
 getMessage ()
 
 getCode ()
 
 getArguments ()
 
 getTitle ()
 
 render ()
 
 __toString ()
 

Protected Attributes

 $message = 'Validation errors for property "%s"'
 
 $code = 1242859509
 
 $propertyName
 
 $errors = array()
 
- Protected Attributes inherited from TYPO3\CMS\Extbase\Validation\Error
 $message = 'Unknown validation error'
 
 $code = 1201447005
 
- Protected Attributes inherited from TYPO3\CMS\Extbase\Error\Error
 $message = 'Unknown error'
 
- Protected Attributes inherited from TYPO3\CMS\Extbase\Error\Message
 $message = 'Unknown message'
 
 $code
 
 $arguments = array()
 
 $title = ''
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! This object holds validation errors for one property.

http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later

Deprecated:
since Extbase 1.4.0, will be removed two versions after Extbase 6.1

Definition at line 22 of file PropertyError.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Validation\PropertyError::__construct (   $propertyName)

Create a new property error with the given property name

Parameters
string$propertyNameThe property name

Definition at line 49 of file PropertyError.php.

References TYPO3\CMS\Extbase\Validation\PropertyError\$propertyName.

Member Function Documentation

◆ addErrors()

TYPO3\CMS\Extbase\Validation\PropertyError::addErrors (   $errors)

Add errors

Parameters
array$errorsArray of for the property
Returns
void

Definition at line 60 of file PropertyError.php.

References TYPO3\CMS\Extbase\Validation\PropertyError\$errors.

◆ getErrors()

TYPO3\CMS\Extbase\Validation\PropertyError::getErrors ( )

Get all errors for the property

Returns
array An array of objects or an empty array if no errors occurred for the property

Definition at line 69 of file PropertyError.php.

References TYPO3\CMS\Extbase\Validation\PropertyError\$errors.

◆ getPropertyName()

TYPO3\CMS\Extbase\Validation\PropertyError::getPropertyName ( )

Get the property name

Returns
string The property name for this error

Definition at line 78 of file PropertyError.php.

References TYPO3\CMS\Extbase\Validation\PropertyError\$propertyName.

Member Data Documentation

◆ $code

TYPO3\CMS\Extbase\Validation\PropertyError::$code = 1242859509
protected

Definition at line 32 of file PropertyError.php.

◆ $errors

TYPO3\CMS\Extbase\Validation\PropertyError::$errors = array()
protected

◆ $message

TYPO3\CMS\Extbase\Validation\PropertyError::$message = 'Validation errors for property "%s"'
protected

Definition at line 27 of file PropertyError.php.

◆ $propertyName

TYPO3\CMS\Extbase\Validation\PropertyError::$propertyName
protected