58 if (!isset($this->dataHandler)) {
70 public function transformDependentElementsToUseLiveId(array $elements) {
71 $transformedElements = array();
73 foreach ($elements as $element) {
75 $transformedElements[$elementName] = $element;
77 return $transformedElements;
91 if (!$fieldConfiguration || ($fieldConfiguration[
'type'] !==
'flex' && !
GeneralUtility::inList(
'field,list', $this->
getDataHandler()->getInlineFieldType($fieldConfiguration)))) {
108 if (!$fieldConfiguration || ($fieldConfiguration[
'type'] !==
'flex' && !
GeneralUtility::inList(
'field,list', $this->
getDataHandler()->getInlineFieldType($fieldConfiguration)))) {
126 if (empty($response)) {
127 $record = BackendUtility::getRecord($callerArguments[
'table'], $callerArguments[
'id']);
147 if (empty($response)) {
148 $record = BackendUtility::getRecord($callerArguments[
'table'], $callerArguments[
'id']);
175 if (empty($versionRecord)) {
176 throw new \RuntimeException(
177 'Element "' . $caller::getIdentifier($caller->
getTable(), $caller->
getId()) .
'" does not exist',
183 if ((
int)$versionRecord[
't3ver_wsid'] === 0 && (
int)$versionRecord[
'pid'] === -1) {
190 if (!empty($versionRecord[
't3ver_oid']) && (int)$versionRecord[
'pid'] === -1 && (
int)$versionRecord[
't3ver_wsid'] === $this->
getWorkspace()) {
191 $caller->
setDataValue(
'liveId', $versionRecord[
't3ver_oid']);
193 } elseif ((
int)$versionRecord[
't3ver_wsid'] === 0 || (
int)$versionRecord[
'pid'] !== -1) {
203 if (!empty($versionRecord[
'uid'])) {
204 $caller->
setId($versionRecord[
'uid']);
createClearDependentElementChildReferenceCallback(array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)
static getWorkspaceVersionOfRecord($workspace, $table, $uid, $fields=' *')
static isTableWorkspaceEnabled($table)
createNewDependentElementChildReferenceCallback(array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)
static makeInstance($className)
createNewDependentElementParentReferenceCallback(array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)
setDataValue($key, $value)
static getIdentifier($table, $id)
createClearDependentElementParentReferenceCallback(array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)
static getTcaFieldConfiguration($table, $field)
static inList($list, $item)
createNewDependentElementCallback(array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)