TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline:
TYPO3\CMS\Backend\Form\FormDataProvider\AbstractDatabaseRecordProvider TYPO3\CMS\Backend\Form\FormDataProviderInterface

Public Member Functions

 addData (array $result)
 

Protected Member Functions

 isInlineField ($fieldConfig)
 
 isUserAllowedToModify ($fieldConfig)
 
 addInlineFirstPid (array $result)
 
 resolveRelatedRecords (array $result, $fieldName)
 
 getWorkspacedUids (array $connectedUids, $childTableName)
 
 getLiveDefaultId ($tableName, $uid)
 
 getBackendUser ()
 
 getLanguageService ()
 
 getLogger ()
 
- Protected Member Functions inherited from TYPO3\CMS\Backend\Form\FormDataProvider\AbstractDatabaseRecordProvider
 getRecordFromDatabase ($tableName, $uid)
 
 getDatabase ()
 

Detailed Description

Resolve and prepare inline data.

Definition at line 37 of file TcaInline.php.

Member Function Documentation

◆ addData()

◆ addInlineFirstPid()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline::addInlineFirstPid ( array  $result)
protected

The "entry" pid for inline records. Nested inline records can potentially hang around on different pid's, but the entry pid is needed for AJAX calls, so that they would know where the action takes place on the page structure.

Parameters
array$resultIncoming result
Returns
array Modified result
Todo:
: Find out when and if this is different from 'effectivePid'

Definition at line 93 of file TcaInline.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\getLiveVersionIdOfRecord(), and TYPO3\CMS\Backend\Utility\BackendUtility\getRecord().

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline\addData().

◆ getBackendUser()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline::getBackendUser ( )
protected

◆ getLanguageService()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline::getLanguageService ( )
protected
Returns
LanguageService

Definition at line 534 of file TcaInline.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline\resolveRelatedRecords().

◆ getLiveDefaultId()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline::getLiveDefaultId (   $tableName,
  $uid 
)
protected

Gets the record uid of the live default record. If already pointing to the live record, the submitted record uid is returned.

Parameters
string$tableName
int$uid
Returns
int
Todo:
: the workspace mess still must be resolved somehow

Definition at line 514 of file TcaInline.php.

References $uid, and TYPO3\CMS\Backend\Utility\BackendUtility\getLiveVersionIdOfRecord().

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline\getWorkspacedUids().

◆ getLogger()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline::getLogger ( )
protected

◆ getWorkspacedUids()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline::getWorkspacedUids ( array  $connectedUids,
  $childTableName 
)
protected

◆ isInlineField()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline::isInlineField (   $fieldConfig)
protected

Is column of type "inline"

Parameters
array$fieldConfig
Returns
bool

Definition at line 69 of file TcaInline.php.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline\addData().

◆ isUserAllowedToModify()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline::isUserAllowedToModify (   $fieldConfig)
protected

Is user allowed to modify child elements

Parameters
array$fieldConfig
Returns
bool

Definition at line 80 of file TcaInline.php.

References TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline\getBackendUser().

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline\addData().

◆ resolveRelatedRecords()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaInline::resolveRelatedRecords ( array  $result,
  $fieldName 
)
protected