‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\View\PageLayoutView Class Reference
Inheritance diagram for TYPO3\CMS\Backend\View\PageLayoutView:

Public Member Functions

 __construct ()
 
string getTable_tt_content ($id)
 
string tt_content_drawColHeader ($colName, $editParams='')
 
string tt_content_drawHeader ($row, $space=0, $disableMoveAndNewButtons=false, $langMode=false, $dragDropEnabled=false)
 
string tt_content_drawItem ($row)
 
 renderContentElementHeader (array $row)
 
 renderContentElementPreviewFromFluidTemplate (array $row)
 
string renderContentElementPreview (array $row)
 
array getNonTranslatedTTcontentUids ($defaultLanguageUids, $id, $lP)
 
string newLanguageButton ($defaultLanguageUids, $lP)
 
string linkEditContent ($str, $row)
 
string languageSelector ($id)
 
array getResult ($result)
 
string renderText ($input)
 
string getIcon ($table, $row)
 
 getProcessedValue ($table, $fieldList, array $row, array &$info)
 
bool isDisabled ($table, $row)
 
string getThumbCodeUnlinked ($row, $table, $field)
 
string thumbCode ($row, $table, $field)
 
TYPO3 CMS Core Database Query QueryBuilder getQueryBuilder (string $table, int $pageId, array $additionalConstraints=[], array $fields=[' *'])
 

Static Public Member Functions

static PageLayoutView createFromPageLayoutContext (PageLayoutContext $context)
 

Public Attributes

bool $doEdit = true
 
bool $defLangBinding = false
 
array $tt_contentConfig
 
array $tt_contentData
 
array $CType_labels = array( )
 
array $itemLabels = array( )
 
int $id
 
string[] $pageRecord = array( )
 

Protected Member Functions

 initialize ()
 
int[] getSelectedLanguages ()
 
string generateLanguageView (array $languageIds, array $defaultLanguageElementsByColumn, array $languageColumn, array $defLangBinding)
 
array getContentRecordsPerColumn ($table, $id, array $columns, $additionalWhereClause='')
 
string tt_content_drawFooter (array $row)
 
int getReferenceCount (string $tableName, int $uid)
 
bool isDragAndDropAllowed (array $row)
 
 generateTtContentDataArray (array $rowArray)
 
bool checkIfTranslationsExistInLanguage (array $contentElements, int $language)
 
BackendLayoutView getBackendLayoutView ()
 
 getBackendUser ()
 
QueryBuilder prepareQueryBuilder (string $table, int $pageId, array $fieldList, array $additionalConstraints, QueryBuilder $queryBuilder)
 
string renderLanguageFlag (SiteLanguage $language)
 
 resolveSiteLanguages (int $pageId)
 
string getLocalizedPageTitle ()
 
bool isPageEditable ()
 
bool isContentEditable (?int $languageId=null)
 
bool hasContentModificationAndAccessPermissions ()
 
 getLanguageService ()
 

Protected Attributes

SiteLanguage[] $siteLanguages = array( )
 
array $pageinfo
 
array $contentElementCache = array( )
 
IconFactory $iconFactory
 
array $languageHasTranslationsCache = array( )
 
LocalizationController $localizationController
 
array $referenceCount = array( )
 
UriBuilder $uriBuilder
 

Detailed Description

Child class for the Web > Page module

This class is a TYPO3 Backend implementation and is not considered part of the Public TYPO3 API.

Deprecated:
‪Will be removed in TYPO3 11

Definition at line 58 of file PageLayoutView.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\View\PageLayoutView::__construct ( )

Definition at line 167 of file PageLayoutView.php.

Member Function Documentation

◆ checkIfTranslationsExistInLanguage()

bool TYPO3\CMS\Backend\View\PageLayoutView::checkIfTranslationsExistInLanguage ( array  $contentElements,
int  $language 
)
protected

Checks whether translated Content Elements exist in the desired language If so, deny creating new ones via the UI

Parameters
array$contentElements
int$language
Returns
‪bool

Build up caches

Definition at line 1644 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\getLanguageService().

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\generateLanguageView(), and TYPO3\CMS\Backend\View\PageLayoutView\getTable_tt_content().

◆ createFromPageLayoutContext()

◆ generateLanguageView()

string TYPO3\CMS\Backend\View\PageLayoutView::generateLanguageView ( array  $languageIds,
array  $defaultLanguageElementsByColumn,
array  $languageColumn,
array  $defLangBinding 
)
protected

◆ generateTtContentDataArray()

TYPO3\CMS\Backend\View\PageLayoutView::generateTtContentDataArray ( array  $rowArray)
protected

Generates the data for previous and next elements which is needed for movements.

Parameters
array$rowArray

Definition at line 1527 of file PageLayoutView.php.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\getResult(), and TYPO3\CMS\Backend\View\PageLayoutView\getTable_tt_content().

◆ getBackendLayoutView()

BackendLayoutView TYPO3\CMS\Backend\View\PageLayoutView::getBackendLayoutView ( )
protected

◆ getBackendUser()

◆ getContentRecordsPerColumn()

array TYPO3\CMS\Backend\View\PageLayoutView::getContentRecordsPerColumn (   $table,
  $id,
array  $columns,
  $additionalWhereClause = '' 
)
protected

Gets content records per column. This is required for correct workspace overlays.

Parameters
string$table‪Name of table storing content records, by default tt_content
int$id‪Page Id to be used (not used at all, but part of the API, see $this->pidSelect)
array$columns‪colPos values to be considered to be shown
string$additionalWhereClause‪Additional where clause for database select
Returns
‪array Associative array for each column (colPos)

Definition at line 787 of file PageLayoutView.php.

References $GLOBALS, TYPO3\CMS\Backend\View\PageLayoutView\$id, TYPO3\CMS\Backend\View\PageLayoutView\getQueryBuilder(), and TYPO3\CMS\Backend\View\PageLayoutView\getResult().

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\getTable_tt_content().

◆ getIcon()

string TYPO3\CMS\Backend\View\PageLayoutView::getIcon (   $table,
  $row 
)

Creates the icon image tag for record from table and wraps it in a link which will trigger the click menu.

Parameters
string$table‪Table name
array$row‪Record array
Returns
‪string HTML for the icon

Definition at line 1568 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawHeader().

◆ getLanguageService()

◆ getLocalizedPageTitle()

string TYPO3\CMS\Backend\View\PageLayoutView::getLocalizedPageTitle ( )
protected

◆ getNonTranslatedTTcontentUids()

array TYPO3\CMS\Backend\View\PageLayoutView::getNonTranslatedTTcontentUids (   $defaultLanguageUids,
  $id,
  $lP 
)

Filters out all tt_content uids which are already translated so only non-translated uids is left. Selects across columns, but within in the same PID. Columns are expect to be the same for translations and original but this may be a conceptual error (?)

Parameters
array$defaultLanguageUids‪Numeric array with uids of tt_content elements in the default language
int$id‪The page UID from which to fetch untranslated records (unused, remains in place for compatibility)
int$lP‪Sys language UID
Returns
‪array Modified $defLanguageCount

Definition at line 1294 of file PageLayoutView.php.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\generateLanguageView().

◆ getProcessedValue()

TYPO3\CMS\Backend\View\PageLayoutView::getProcessedValue (   $table,
  $fieldList,
array  $row,
array &  $info 
)

Creates processed values for all field names in $fieldList based on values from $row array. The result is 'returned' through $info which is passed as a reference

Parameters
string$table‪Table name
string$fieldList‪Comma separated list of fields.
array$row‪Record from which to take values for processing.
array$info‪Array to which the processed values are added.

Definition at line 1589 of file PageLayoutView.php.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawFooter().

◆ getQueryBuilder()

TYPO3 CMS Core Database Query QueryBuilder TYPO3\CMS\Backend\View\PageLayoutView::getQueryBuilder ( string  $table,
int  $pageId,
array  $additionalConstraints = [],
array  $fields = ['*'] 
)

Returns a QueryBuilder configured to select $fields from $table where the pid is restricted.

Parameters
string$table‪Table name
int$pageId‪Page id Only used to build the search constraints, getPageIdConstraint() used for restrictions
string[]$additionalConstraints‪Additional part for where clause
string[]$fields‪Field list to select, * for all
Returns
‪\TYPO3\CMS\Core\Database\Query\QueryBuilder

Definition at line 1729 of file PageLayoutView.php.

References $fields, TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), and TYPO3\CMS\Backend\View\PageLayoutView\prepareQueryBuilder().

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\getContentRecordsPerColumn().

◆ getReferenceCount()

int TYPO3\CMS\Backend\View\PageLayoutView::getReferenceCount ( string  $tableName,
int  $uid 
)
protected

Gets the number of records referencing the record with the UID $uid in the table $tableName.

Parameters
string$tableName
int$uid
Returns
‪int The number of references to record $uid in table

Definition at line 1046 of file PageLayoutView.php.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawHeader().

◆ getResult()

array TYPO3\CMS\Backend\View\PageLayoutView::getResult (   $result)

Traverse the result pointer given, adding each record to array and setting some internal values at the same time.

Parameters
Result$result‪DBAL Result
Returns
‪array The selected rows returned in this array.

Definition at line 1500 of file PageLayoutView.php.

References $output, and TYPO3\CMS\Backend\View\PageLayoutView\generateTtContentDataArray().

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\getContentRecordsPerColumn().

◆ getSelectedLanguages()

int [] TYPO3\CMS\Backend\View\PageLayoutView::getSelectedLanguages ( )
protected

Build a list of language IDs that should be rendered in this view

Returns
‪int[]

Definition at line 241 of file PageLayoutView.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\intExplode().

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\getTable_tt_content().

◆ getTable_tt_content()

string TYPO3\CMS\Backend\View\PageLayoutView::getTable_tt_content (   $id)

Renders Content Elements from the tt_content table from page id

Parameters
int$id‪Page id
Returns
‪string HTML for the listing

Definition at line 260 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\$defLangBinding, $GLOBALS, TYPO3\CMS\Backend\View\PageLayoutView\$id, TYPO3\CMS\Core\Type\Enumeration\cast(), TYPO3\CMS\Backend\View\PageLayoutView\checkIfTranslationsExistInLanguage(), TYPO3\CMS\Core\Versioning\VersionState\DELETE_PLACEHOLDER, TYPO3\CMS\Backend\View\PageLayoutView\generateLanguageView(), TYPO3\CMS\Backend\View\PageLayoutView\generateTtContentDataArray(), TYPO3\CMS\Backend\View\PageLayoutView\getBackendLayoutView(), TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), TYPO3\CMS\Backend\View\PageLayoutView\getContentRecordsPerColumn(), TYPO3\CMS\Backend\View\PageLayoutView\getLanguageService(), TYPO3\CMS\Backend\View\BackendLayoutView\getSelectedBackendLayout(), TYPO3\CMS\Backend\View\PageLayoutView\getSelectedLanguages(), TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), TYPO3\CMS\Backend\View\PageLayoutView\hasContentModificationAndAccessPermissions(), TYPO3\CMS\Backend\View\PageLayoutView\initialize(), TYPO3\CMS\Core\Utility\GeneralUtility\inList(), TYPO3\CMS\Backend\View\PageLayoutView\isContentEditable(), TYPO3\CMS\Backend\View\PageLayoutView\isDisabled(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawColHeader(), TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawFooter(), TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawHeader(), and TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawItem().

◆ getThumbCodeUnlinked()

string TYPO3\CMS\Backend\View\PageLayoutView::getThumbCodeUnlinked (   $row,
  $table,
  $field 
)

Create thumbnail code for record/field but not linked

Parameters
mixed[]$row‪Record array
string$table‪Table (record is from)
string$field‪Field name for which thumbnail are to be rendered.
Returns
‪string HTML for thumbnails, if any.

Definition at line 1631 of file PageLayoutView.php.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\renderContentElementPreview().

◆ hasContentModificationAndAccessPermissions()

◆ initialize()

◆ isContentEditable()

bool TYPO3\CMS\Backend\View\PageLayoutView::isContentEditable ( ?int  $languageId = null)
protected

Check if content can be edited by current user

Parameters
int | null$languageId
Returns
‪bool

Definition at line 1897 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), and TYPO3\CMS\Backend\View\PageLayoutView\hasContentModificationAndAccessPermissions().

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\getTable_tt_content().

◆ isDisabled()

bool TYPO3\CMS\Backend\View\PageLayoutView::isDisabled (   $table,
  $row 
)

Returns TRUE, if the record given as parameters is NOT visible based on hidden/starttime/endtime (if available)

Parameters
string$table‪Tablename of table to test
array$row‪Record row.
Returns
‪bool Returns TRUE, if disabled.

Definition at line 1609 of file PageLayoutView.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\getTable_tt_content().

◆ isDragAndDropAllowed()

bool TYPO3\CMS\Backend\View\PageLayoutView::isDragAndDropAllowed ( array  $row)
protected

Determine whether Drag & Drop should be allowed

Parameters
array$row
Returns
‪bool

Definition at line 1062 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), and TYPO3\CMS\Backend\View\PageLayoutView\hasContentModificationAndAccessPermissions().

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawHeader().

◆ isPageEditable()

bool TYPO3\CMS\Backend\View\PageLayoutView::isPageEditable ( )
protected

Check if page can be edited by current user

Returns
‪bool

Definition at line 1883 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), and TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_EDIT.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\initialize().

◆ languageSelector()

string TYPO3\CMS\Backend\View\PageLayoutView::languageSelector (   $id)

Make selector box for creating new translation in a language Displays only languages which are not yet present for the current page and that are not disabled with page TS.

Parameters
int$id‪Page id for which to create a new translation record of pages
Returns
‪string HTML <select> element (if there were items for the box anyways...)
See also
getTable_tt_content()

Definition at line 1432 of file PageLayoutView.php.

References $GLOBALS, TYPO3\CMS\Backend\View\PageLayoutView\$id, $output, TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), and TYPO3\CMS\Backend\View\PageLayoutView\getLanguageService().

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\generateLanguageView().

◆ linkEditContent()

string TYPO3\CMS\Backend\View\PageLayoutView::linkEditContent (   $str,
  $row 
)

Will create a link on the input string and possibly a big button after the string which links to editing in the RTE. Used for content element content displayed so the user can click the content / "Edit in Rich Text Editor" button

Parameters
string$str‪String to link. Must be prepared for HTML output.
array$row‪The row.
Returns
‪string If the whole thing was editable ($this->doEdit) $str is return with link around. Otherwise just $str.
See also
getTable_tt_content()

Definition at line 1403 of file PageLayoutView.php.

References $GLOBALS, TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), TYPO3\CMS\Backend\View\PageLayoutView\getLanguageService(), and TYPO3\CMS\Backend\View\PageLayoutView\hasContentModificationAndAccessPermissions().

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\renderContentElementHeader(), and TYPO3\CMS\Backend\View\PageLayoutView\renderContentElementPreview().

◆ newLanguageButton()

string TYPO3\CMS\Backend\View\PageLayoutView::newLanguageButton (   $defaultLanguageUids,
  $lP 
)

Creates button which is used to create copies of records..

Parameters
array$defaultLanguageUids‪Numeric array with uids of tt_content elements in the default language
int$lP‪Sys language UID
Returns
‪string "Copy languages" button, if available.

Definition at line 1340 of file PageLayoutView.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\_GP(), TYPO3\CMS\Backend\View\PageLayoutView\getLanguageService(), TYPO3\CMS\Backend\View\PageLayoutView\getLocalizedPageTitle(), TYPO3\CMS\Backend\View\PageLayoutView\hasContentModificationAndAccessPermissions(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\generateLanguageView().

◆ prepareQueryBuilder()

QueryBuilder TYPO3\CMS\Backend\View\PageLayoutView::prepareQueryBuilder ( string  $table,
int  $pageId,
array  $fieldList,
array  $additionalConstraints,
QueryBuilder  $queryBuilder 
)
protected

Return the modified QueryBuilder object ($queryBuilder) which will be used to select the records from a table $table with pid = $this->pidList

Parameters
string$table‪Table name
int$pageId‪Page id Only used to build the search constraints, $this->pidList is used for restrictions
string[]$fieldList‪List of fields to select from the table
string[]$additionalConstraints‪Additional part for where clause
QueryBuilder$queryBuilder
Returns
‪QueryBuilder

Definition at line 1765 of file PageLayoutView.php.

References $GLOBALS, and TYPO3\CMS\Core\Database\Query\QueryHelper\parseOrderBy().

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\getQueryBuilder().

◆ renderContentElementHeader()

◆ renderContentElementPreview()

string TYPO3\CMS\Backend\View\PageLayoutView::renderContentElementPreview ( array  $row)

◆ renderContentElementPreviewFromFluidTemplate()

TYPO3\CMS\Backend\View\PageLayoutView::renderContentElementPreviewFromFluidTemplate ( array  $row)

◆ renderLanguageFlag()

string TYPO3\CMS\Backend\View\PageLayoutView::renderLanguageFlag ( SiteLanguage  $language)
protected

Renders the language flag and language title, but only if an icon is given, otherwise just the language

Parameters
SiteLanguage$language
Returns
‪string

Definition at line 1815 of file PageLayoutView.php.

References TYPO3\CMS\Core\Site\Entity\SiteLanguage\getFlagIdentifier(), TYPO3\CMS\Core\Site\Entity\SiteLanguage\getTitle(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawHeader().

◆ renderText()

string TYPO3\CMS\Backend\View\PageLayoutView::renderText (   $input)

Processing of larger amounts of text (usually from RTE/bodytext fields) with word wrapping etc.

Parameters
string$input‪Input string
Returns
‪string Output string

Definition at line 1554 of file PageLayoutView.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\fixed_lgd_cs().

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\renderContentElementHeader(), and TYPO3\CMS\Backend\View\PageLayoutView\renderContentElementPreview().

◆ resolveSiteLanguages()

TYPO3\CMS\Backend\View\PageLayoutView::resolveSiteLanguages ( int  $pageId)
protected

Fetch the site language objects for the given $pageId and store it in $this->siteLanguages

Parameters
int$pageId
Exceptions
SiteNotFoundException

Definition at line 1834 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser().

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\initialize().

◆ thumbCode()

string TYPO3\CMS\Backend\View\PageLayoutView::thumbCode (   $row,
  $table,
  $field 
)

Create thumbnail code for record/field

Parameters
mixed[]$row‪Record array
string$table‪Table (record is from)
string$field‪Field name for which thumbnail are to be rendered.
Returns
‪string HTML for thumbnails, if any.

Definition at line 1715 of file PageLayoutView.php.

◆ tt_content_drawColHeader()

string TYPO3\CMS\Backend\View\PageLayoutView::tt_content_drawColHeader (   $colName,
  $editParams = '' 
)

Draw header for a content element column:

Parameters
string$colName‪Column name
string$editParams‪Edit params (Syntax: &edit[...] for FormEngine)
Returns
‪string HTML table

Definition at line 830 of file PageLayoutView.php.

References $GLOBALS, TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), TYPO3\CMS\Backend\View\PageLayoutView\getLanguageService(), TYPO3\CMS\Backend\View\PageLayoutView\hasContentModificationAndAccessPermissions(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\getTable_tt_content().

◆ tt_content_drawFooter()

string TYPO3\CMS\Backend\View\PageLayoutView::tt_content_drawFooter ( array  $row)
protected

Draw the footer for a single tt_content element

Parameters
array$row‪Record array
Returns
‪string HTML of the footer
Exceptions

Definition at line 854 of file PageLayoutView.php.

References $GLOBALS, and TYPO3\CMS\Backend\View\PageLayoutView\getProcessedValue().

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\getTable_tt_content().

◆ tt_content_drawHeader()

string TYPO3\CMS\Backend\View\PageLayoutView::tt_content_drawHeader (   $row,
  $space = 0,
  $disableMoveAndNewButtons = false,
  $langMode = false,
  $dragDropEnabled = false 
)

Draw the header for a single tt_content element

Parameters
array$row‪Record array
int$space‪Amount of pixel space above the header. UNUSED
bool$disableMoveAndNewButtons‪If set the buttons for creating new elements and moving up and down are not shown.
bool$langMode‪If set, we are in language mode and flags will be shown for languages
bool$dragDropEnabled‪If set the move button must be hidden
Returns
‪string HTML table with the record header.

Definition at line 895 of file PageLayoutView.php.

References $GLOBALS, TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), TYPO3\CMS\Backend\View\PageLayoutView\getIcon(), TYPO3\CMS\Backend\View\PageLayoutView\getLanguageService(), TYPO3\CMS\Backend\View\PageLayoutView\getReferenceCount(), TYPO3\CMS\Backend\View\PageLayoutView\hasContentModificationAndAccessPermissions(), TYPO3\CMS\Backend\View\PageLayoutView\isDragAndDropAllowed(), TYPO3\CMS\Backend\View\PageLayoutView\renderLanguageFlag(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\getTable_tt_content().

◆ tt_content_drawItem()

string TYPO3\CMS\Backend\View\PageLayoutView::tt_content_drawItem (   $row)

Member Data Documentation

◆ $contentElementCache

array TYPO3\CMS\Backend\View\PageLayoutView::$contentElementCache = array( )
protected

Caches the amount of content elements as a matrix

Definition at line 141 of file PageLayoutView.php.

◆ $CType_labels

array TYPO3\CMS\Backend\View\PageLayoutView::$CType_labels = array( )

Used to store labels for CTypes for tt_content elements

Definition at line 104 of file PageLayoutView.php.

◆ $defLangBinding

bool TYPO3\CMS\Backend\View\PageLayoutView::$defLangBinding = false

If set TRUE, the language mode of tt_content elements will be rendered with hard binding between default language content elements and their translations!

Definition at line 73 of file PageLayoutView.php.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\generateLanguageView(), and TYPO3\CMS\Backend\View\PageLayoutView\getTable_tt_content().

◆ $doEdit

bool TYPO3\CMS\Backend\View\PageLayoutView::$doEdit = true

If TRUE, elements will have edit icons (probably this is whether the user has permission to edit the page content). Set externally.

Definition at line 66 of file PageLayoutView.php.

◆ $iconFactory

IconFactory TYPO3\CMS\Backend\View\PageLayoutView::$iconFactory
protected

Definition at line 145 of file PageLayoutView.php.

◆ $id

◆ $itemLabels

array TYPO3\CMS\Backend\View\PageLayoutView::$itemLabels = array( )

Used to store labels for the various fields in tt_content elements

Definition at line 110 of file PageLayoutView.php.

◆ $languageHasTranslationsCache

array TYPO3\CMS\Backend\View\PageLayoutView::$languageHasTranslationsCache = array( )
protected

Stores whether a certain language has translations in it

Definition at line 151 of file PageLayoutView.php.

◆ $localizationController

LocalizationController TYPO3\CMS\Backend\View\PageLayoutView::$localizationController
protected

Definition at line 155 of file PageLayoutView.php.

◆ $pageinfo

array TYPO3\CMS\Backend\View\PageLayoutView::$pageinfo
protected

Current ids page record

Definition at line 134 of file PageLayoutView.php.

◆ $pageRecord

string [] TYPO3\CMS\Backend\View\PageLayoutView::$pageRecord = array( )

Loaded with page record with version overlay if any.

Definition at line 122 of file PageLayoutView.php.

◆ $referenceCount

array TYPO3\CMS\Backend\View\PageLayoutView::$referenceCount = array( )
protected

Cache the number of references to a record

Definition at line 161 of file PageLayoutView.php.

◆ $siteLanguages

SiteLanguage [] TYPO3\CMS\Backend\View\PageLayoutView::$siteLanguages = array( )
protected

Contains site languages for this page ID

Definition at line 128 of file PageLayoutView.php.

◆ $tt_contentConfig

array TYPO3\CMS\Backend\View\PageLayoutView::$tt_contentConfig
Initial value:
= array(
'languageCols' => 0,
'languageMode' => 0,
'languageColsPointer' => 0,
'showHidden' => 1,
'sys_language_uid' => 0,
'cols' => '1,0,2,3',
'activeCols' => '1,0,2,3',
)

External, static: Configuration of tt_content element display:

Definition at line 79 of file PageLayoutView.php.

◆ $tt_contentData

array TYPO3\CMS\Backend\View\PageLayoutView::$tt_contentData
Initial value:
= array(
'prev' => [],
'next' => [],
)

Used to move content up / down

Definition at line 95 of file PageLayoutView.php.

◆ $uriBuilder

UriBuilder TYPO3\CMS\Backend\View\PageLayoutView::$uriBuilder
protected

Definition at line 165 of file PageLayoutView.php.