![]() |
TYPO3
7.6
|
Public Member Functions | |
setParent (Result $parent) | |
addError (\TYPO3\CMS\Extbase\Error\Error $error) | |
addWarning (\TYPO3\CMS\Extbase\Error\Warning $warning) | |
addNotice (\TYPO3\CMS\Extbase\Error\Notice $notice) | |
getErrors () | |
getWarnings () | |
getNotices () | |
getFirstError () | |
getFirstWarning () | |
getFirstNotice () | |
forProperty ($propertyPath) | |
recurseThroughResult (array $pathSegments) | |
hasMessages () | |
clear () | |
hasErrors () | |
hasWarnings () | |
hasNotices () | |
getFlattenedErrors () | |
getFlattenedWarnings () | |
getFlattenedNotices () | |
flattenTree ($propertyName, &$result, $level) | |
getSubResults () | |
Protected Member Functions | |
setErrorsExist () | |
setWarningsExist () | |
setNoticesExist () | |
hasProperty ($propertyName, $checkerMethodName) | |
mergeProperty (Result $otherResult, $getterName, $adderName) | |
Protected Attributes | |
$errors = array() | |
$errorsExist = false | |
$warnings = array() | |
$warningsExist = false | |
$notices = array() | |
$noticesExist = false | |
$propertyResults = array() | |
$parent = null | |
Result object for operations dealing with objects, such as the Property Mapper or the Validators.
http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
Definition at line 29 of file Result.php.
addError | ( | \TYPO3\CMS\Extbase\Error\Error | $error | ) |
Add an error to the current Result object
\TYPO3\CMS\Extbase\Error\Error | $error |
Definition at line 106 of file Result.php.
References Result\setErrorsExist().
addNotice | ( | \TYPO3\CMS\Extbase\Error\Notice | $notice | ) |
Add a notice to the current Result object
\TYPO3\CMS\Extbase\Error\Notice | $notice |
Definition at line 132 of file Result.php.
References Result\setNoticesExist().
addWarning | ( | \TYPO3\CMS\Extbase\Error\Warning | $warning | ) |
Add a warning to the current Result object
\TYPO3\CMS\Extbase\Error\Warning | $warning |
Definition at line 119 of file Result.php.
References Result\setWarningsExist().
clear | ( | ) |
flattenTree | ( | $propertyName, | |
& | $result, | ||
$level | |||
) |
Only use internally!
Flatten a tree of Result objects, based on a certain property.
string | $propertyName | |
array | $result | |
array | $level |
Definition at line 432 of file Result.php.
forProperty | ( | $propertyPath | ) |
Return a Result object for the given property path. This is a fluent interface, so you will proboably use it like: $result->forProperty('foo.bar')->getErrors() – to get all errors for property "foo.bar"
string | $propertyPath |
Definition at line 217 of file Result.php.
References Result\recurseThroughResult().
getErrors | ( | ) |
Get all errors in the current Result object (non-recursive)
Definition at line 144 of file Result.php.
References Result\$errors.
getFirstError | ( | ) |
Get the first error object of the current Result object (non-recursive)
Definition at line 177 of file Result.php.
getFirstNotice | ( | ) |
Get the first notice object of the curren Result object (non-recursive)
Definition at line 201 of file Result.php.
getFirstWarning | ( | ) |
Get the first warning object of the current Result object (non-recursive)
Definition at line 189 of file Result.php.
getFlattenedErrors | ( | ) |
Get a list of all Error objects recursively. The result is an array, where the key is the property path where the error occurred, and the value is a list of all errors (stored as array)
Definition at line 385 of file Result.php.
getFlattenedNotices | ( | ) |
Get a list of all Notice objects recursively. The result is an array, where the key is the property path where the notice occurred, and the value is a list of all notices (stored as array)
Definition at line 415 of file Result.php.
getFlattenedWarnings | ( | ) |
Get a list of all Warning objects recursively. The result is an array, where the key is the property path where the warning occurred, and the value is a list of all warnings (stored as array)
Definition at line 400 of file Result.php.
getNotices | ( | ) |
Get all notices in the current Result object (non-recursive)
Definition at line 166 of file Result.php.
References Result\$notices.
getSubResults | ( | ) |
Get a list of all sub Result objects available.
Definition at line 494 of file Result.php.
getWarnings | ( | ) |
Get all warnings in the current Result object (non-recursive)
Definition at line 155 of file Result.php.
References Result\$warnings.
hasErrors | ( | ) |
Does the current Result object have Errors? (Recursively)
Definition at line 350 of file Result.php.
Referenced by Result\setParent().
hasMessages | ( | ) |
Does the current Result object have Notices, Errors or Warnings? (Recursively)
Definition at line 301 of file Result.php.
References Result\$warningsExist.
hasNotices | ( | ) |
Does the current Result object have Notices? (Recursively)
Definition at line 372 of file Result.php.
Referenced by Result\setParent().
|
protected |
Internal use only!
string | $propertyName | |
string | $checkerMethodName |
Definition at line 331 of file Result.php.
hasWarnings | ( | ) |
Does the current Result object have Warnings? (Recursively)
Definition at line 361 of file Result.php.
Referenced by Result\setParent().
|
protected |
Merge a single property from the other result object.
\TYPO3\CMS\Extbase\Error\Result | $otherResult | |
string | $getterName | |
string | $adderName |
Definition at line 482 of file Result.php.
recurseThroughResult | ( | array | $pathSegments | ) |
Internal use only!
array | $pathSegments |
Definition at line 238 of file Result.php.
Referenced by Result\forProperty().
|
protected |
Sets the error cache to TRUE and propagates the information upwards the Result-Object Tree
Definition at line 260 of file Result.php.
Referenced by Result\addError(), and Result\setParent().
|
protected |
Sets the notices cache to TRUE and propagates the information upwards the Result-Object Tree
Definition at line 288 of file Result.php.
Referenced by Result\addNotice(), and Result\setParent().
setParent | ( | Result | $parent | ) |
Injects the parent result and propagates the cached error states upwards
\TYPO3\CMS\Extbase\Error\Error | $parent |
Definition at line 83 of file Result.php.
References Result\$parent, Result\hasErrors(), Result\hasNotices(), Result\hasWarnings(), Result\setErrorsExist(), Result\setNoticesExist(), and Result\setWarningsExist().
|
protected |
Sets the warning cache to TRUE and propagates the information upwards the Result-Object Tree
Definition at line 274 of file Result.php.
Referenced by Result\addWarning(), and Result\setParent().
|
protected |
Definition at line 34 of file Result.php.
Referenced by Result\getErrors().
|
protected |
Definition at line 40 of file Result.php.
|
protected |
Definition at line 56 of file Result.php.
Referenced by Result\getNotices().
|
protected |
Definition at line 62 of file Result.php.
|
protected |
Definition at line 74 of file Result.php.
Referenced by Result\setParent().
|
protected |
Definition at line 69 of file Result.php.
|
protected |
Definition at line 45 of file Result.php.
Referenced by Result\getWarnings().
|
protected |
Definition at line 51 of file Result.php.
Referenced by Result\hasMessages().