TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Property\MappingResults Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Property\MappingResults:
Tx_Extbase_Property_MappingResults

Public Member Functions

 addError (\TYPO3\CMS\Extbase\Error\Error $error, $propertyName)
 
 getErrors ()
 
 hasErrors ()
 
 addWarning ($warning, $propertyName)
 
 getWarnings ()
 
 hasWarnings ()
 

Protected Attributes

 $errors = array()
 
 $warnings = array()
 

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! The Mapping Results

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

Definition at line 21 of file MappingResults.php.

Member Function Documentation

◆ addError()

TYPO3\CMS\Extbase\Property\MappingResults::addError ( \TYPO3\CMS\Extbase\Error\Error  $error,
  $propertyName 
)

Adds an error to the mapping results. This might be for example a validation or mapping error

Parameters
\TYPO3\CMS\Extbase\Error\Error$errorThe occurred error
string$propertyNameThe name of the property which caused the error

Definition at line 40 of file MappingResults.php.

◆ addWarning()

TYPO3\CMS\Extbase\Property\MappingResults::addWarning (   $warning,
  $propertyName 
)

Adds a warning to the mapping results. This might be for example a property that could not be mapped but wasn't marked as required.

Parameters
string$warningThe occurred warning
string$propertyNameThe name of the property which caused the error

Definition at line 69 of file MappingResults.php.

◆ getErrors()

TYPO3\CMS\Extbase\Property\MappingResults::getErrors ( )

Returns all errors that occurred so far

Returns
array Array of

Definition at line 49 of file MappingResults.php.

References TYPO3\CMS\Extbase\Property\MappingResults\$errors.

◆ getWarnings()

TYPO3\CMS\Extbase\Property\MappingResults::getWarnings ( )

Returns all warnings that occurred so far

Returns
array Array of warnings

Definition at line 78 of file MappingResults.php.

References TYPO3\CMS\Extbase\Property\MappingResults\$warnings.

◆ hasErrors()

TYPO3\CMS\Extbase\Property\MappingResults::hasErrors ( )

Returns true if any error was recognized

Returns
boolean True if an error occurred

Definition at line 58 of file MappingResults.php.

◆ hasWarnings()

TYPO3\CMS\Extbase\Property\MappingResults::hasWarnings ( )

Returns TRUE if any warning was recognized

Returns
boolean TRUE if a warning occurred

Definition at line 87 of file MappingResults.php.

Member Data Documentation

◆ $errors

TYPO3\CMS\Extbase\Property\MappingResults::$errors = array()
protected

◆ $warnings

TYPO3\CMS\Extbase\Property\MappingResults::$warnings = array()
protected