TYPO3
7.6
|
Public Member Functions | |
setAffectedElements (array $affectedElements) | |
check () | |
checkElement (\TYPO3\CMS\Workspaces\Domain\Model\CombinedRecord $element) | |
getStatus ($identifier=null) | |
getStatusRepresentation ($identifier=null) | |
getIssues ($identifier=null) | |
getIssueMessages ($identifier=null, $asString=false) | |
Public Attributes | |
const | STATUS_Succes = 100 |
const | STATUS_Info = 101 |
const | STATUS_Warning = 102 |
const | STATUS_Error = 103 |
Protected Member Functions | |
checkLocalization (\TYPO3\CMS\Workspaces\Domain\Model\CombinedRecord $element) | |
addIssue ($identifier, $status, $message) | |
Protected Attributes | |
$statusRepresentation | |
$affectedElements | |
$issues = array() | |
Service for integrity
Definition at line 23 of file IntegrityService.php.
|
protected |
Adds an issue.
string | $identifier | Record identifier (table:id) |
int | $status | Status code (see constants) |
string | $message | Message/description of the issue |
Definition at line 237 of file IntegrityService.php.
Referenced by IntegrityService\checkLocalization().
check | ( | ) |
Checks integrity of affected records.
Definition at line 96 of file IntegrityService.php.
References IntegrityService\checkElement().
checkElement | ( | \TYPO3\CMS\Workspaces\Domain\Model\CombinedRecord | $element | ) |
Checks a single element.
\TYPO3\CMS\Workspaces\Domain\Model\CombinedRecord | $element |
Definition at line 109 of file IntegrityService.php.
References IntegrityService\checkLocalization().
Referenced by IntegrityService\check().
|
protected |
Checks workspace localization integrity of a single elements. If current record is a localization and its localization parent is new in this workspace (has only a placeholder record in live), then boths (localization and localization parent) should be published.
\TYPO3\CMS\Workspaces\Domain\Model\CombinedRecord | $element |
Definition at line 123 of file IntegrityService.php.
References $GLOBALS, IntegrityService\addIssue(), Enumeration\cast(), BackendUtility\getRecord(), BackendUtility\getRecordTitle(), BackendUtility\isTableLocalizable(), and VersionState\NEW_PLACEHOLDER.
Referenced by IntegrityService\checkElement().
getIssueMessages | ( | $identifier = null , |
|
$asString = false |
|||
) |
Gets the message of all issues.
string | $identifier | Record identifier (table:id) for look-ups |
bool | $asString | Return results as string instead of array |
Definition at line 209 of file IntegrityService.php.
References IntegrityService\getIssues().
getIssues | ( | $identifier = null | ) |
Gets issues, all or specific for one identifier.
string | $identifier | Record identifier (table:id) for look-ups |
Definition at line 192 of file IntegrityService.php.
References IntegrityService\$issues, and elseif.
Referenced by IntegrityService\getIssueMessages(), and IntegrityService\getStatus().
getStatus | ( | $identifier = null | ) |
Gets the status of the most important severity. (low << success, info, warning, error >> high)
string | $identifier | Record identifier (table:id) for look-ups |
Definition at line 153 of file IntegrityService.php.
References IntegrityService\getIssues().
Referenced by IntegrityService\getStatusRepresentation().
getStatusRepresentation | ( | $identifier = null | ) |
Gets the (human readable) represetation of the status with the most important severity (wraps $this->getStatus() and translates the result).
string | $identifier | Record identifier (table:id) for look-ups |
Definition at line 181 of file IntegrityService.php.
References IntegrityService\getStatus().
setAffectedElements | ( | array | $affectedElements | ) |
Sets the affected elements.
\TYPO3\CMS\Workspaces\Domain\Model\CombinedRecord[] | $affectedElements |
Definition at line 86 of file IntegrityService.php.
References IntegrityService\$affectedElements.
|
protected |
Definition at line 62 of file IntegrityService.php.
Referenced by IntegrityService\setAffectedElements().
|
protected |
Definition at line 78 of file IntegrityService.php.
Referenced by IntegrityService\getIssues().
|
protected |
Definition at line 52 of file IntegrityService.php.
const STATUS_Error = 103 |
Definition at line 48 of file IntegrityService.php.
const STATUS_Info = 101 |
Definition at line 36 of file IntegrityService.php.
const STATUS_Succes = 100 |
Definition at line 30 of file IntegrityService.php.
const STATUS_Warning = 102 |
Definition at line 42 of file IntegrityService.php.