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

Public Member Functions

 __construct (EventDispatcherInterface $eventDispatcher)
 
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 $option_newWizard = true
 
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_drawPasteIcon ($pasteItem, $pasteTitle, $copyMode, $cssClass, $title)
 
string tt_content_drawFooter (array $row)
 
int getReferenceCount (string $tableName, int $uid)
 
bool isDragAndDropAllowed (array $row)
 
 initializeClipboard ()
 
 generateTtContentDataArray (array $rowArray)
 
bool checkIfTranslationsExistInLanguage (array $contentElements, int $language)
 
BackendLayoutView getBackendLayoutView ()
 
BackendUserAuthentication 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 ()
 
LanguageService getLanguageService ()
 
string dispatchSectionMarkupGeneratedEvent (string $position, int $lP, array $columnConfig)
 

Protected Attributes

SiteLanguage[] $siteLanguages = array( )
 
Clipboard $clipboard
 
array $pageinfo
 
array $contentElementCache = array( )
 
IconFactory $iconFactory
 
array $languageHasTranslationsCache = array( )
 
LocalizationController $localizationController
 
array $referenceCount = array( )
 
EventDispatcherInterface $eventDispatcher
 
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 60 of file PageLayoutView.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\View\PageLayoutView::__construct ( EventDispatcherInterface  $eventDispatcher)

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 1783 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\getLanguageService(), TYPO3\CMS\Backend\Utility\BackendUtility\getPagesTSconfig(), and TYPO3\CMS\Core\Messaging\AbstractMessage\WARNING.

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

◆ createFromPageLayoutContext()

◆ dispatchSectionMarkupGeneratedEvent()

string TYPO3\CMS\Backend\View\PageLayoutView::dispatchSectionMarkupGeneratedEvent ( string  $position,
int  $lP,
array  $columnConfig 
)
protected
Parameters
string$position‪Which event should be triggered? Possible options: before or after
int$lP‪The language id you want to show data for
array$columnConfig‪Array with the configuration of the current column
Returns
‪string

Definition at line 2075 of file PageLayoutView.php.

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

◆ 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 1666 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 880 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 1707 of file PageLayoutView.php.

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

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 1408 of file PageLayoutView.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\workspaceOL().

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 1728 of file PageLayoutView.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\getProcessedValue().

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 1871 of file PageLayoutView.php.

References $fields, TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionContainerInterface\add(), TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), TYPO3\CMS\Core\Database\Query\QueryBuilder\getRestrictions(), TYPO3\CMS\Backend\View\PageLayoutView\prepareQueryBuilder(), and TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionContainerInterface\removeAll().

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 1157 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
Statement | Result$result‪DBAL Statement or Result
Returns
‪array The selected rows returned in this array.

Definition at line 1614 of file PageLayoutView.php.

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

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 261 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 280 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\$defLangBinding, 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\dispatchSectionMarkupGeneratedEvent(), 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\Utility\BackendUtility\getPagesTSconfig(), TYPO3\CMS\Backend\Utility\BackendUtility\getProcessedValue(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecord(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordTitle(), 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\Backend\View\PageLayoutView\isContentEditable(), TYPO3\CMS\Backend\View\PageLayoutView\isDisabled(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, TYPO3\CMS\Core\Localization\LanguageService\sL(), TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawColHeader(), TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawFooter(), TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawHeader(), TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawItem(), TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawPasteIcon(), and TYPO3\CMS\Core\Messaging\AbstractMessage\WARNING.

◆ 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 1770 of file PageLayoutView.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\thumbCode().

Referenced by TYPO3\CMS\Frontend\Hooks\PageLayoutView\ImagePreviewRenderer\preProcess(), TYPO3\CMS\Frontend\Hooks\PageLayoutView\TextpicPreviewRenderer\preProcess(), TYPO3\CMS\Frontend\Hooks\PageLayoutView\TextmediaPreviewRenderer\preProcess(), and TYPO3\CMS\Backend\View\PageLayoutView\renderContentElementPreview().

◆ hasContentModificationAndAccessPermissions()

◆ initialize()

◆ initializeClipboard()

TYPO3\CMS\Backend\View\PageLayoutView::initializeClipboard ( )
protected

Initializes the clipboard for generating paste links

See also
‪\TYPO3\CMS\Backend\Controller\ContextMenuController::clipboardAction()
‪\TYPO3\CMS\Filelist\Controller\FileListController::indexAction()

Definition at line 1643 of file PageLayoutView.php.

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

◆ isContentEditable()

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

◆ 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 1748 of file PageLayoutView.php.

References $GLOBALS.

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

◆ 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 1173 of file PageLayoutView.php.

References $GLOBALS, 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

◆ 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 1546 of file PageLayoutView.php.

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

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 1517 of file PageLayoutView.php.

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

Referenced by TYPO3\CMS\Frontend\Hooks\PageLayoutView\TextPreviewRenderer\preProcess(), TYPO3\CMS\Frontend\Hooks\PageLayoutView\ImagePreviewRenderer\preProcess(), TYPO3\CMS\Frontend\Hooks\PageLayoutView\TextpicPreviewRenderer\preProcess(), TYPO3\CMS\Frontend\Hooks\PageLayoutView\TextmediaPreviewRenderer\preProcess(), TYPO3\CMS\FrontendLogin\Hooks\CmsLayout\preProcess(), TYPO3\CMS\Form\Hooks\FormPagePreviewRenderer\preProcess(), 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 1454 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\getLanguageService(), TYPO3\CMS\Backend\View\PageLayoutView\getLocalizedPageTitle(), TYPO3\CMS\Backend\Utility\BackendUtility\getPagesTSconfig(), 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 1907 of file PageLayoutView.php.

References $GLOBALS, TYPO3\CMS\Core\Database\Query\QueryBuilder\addOrderBy(), TYPO3\CMS\Core\Database\Query\QueryBuilder\andWhere(), TYPO3\CMS\Core\Database\Query\QueryBuilder\createNamedParameter(), TYPO3\CMS\Core\Database\Query\Expression\ExpressionBuilder\eq(), TYPO3\CMS\Core\Database\Query\QueryBuilder\expr(), and TYPO3\CMS\Core\Database\Query\QueryHelper\parseOrderBy().

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

◆ renderContentElementHeader()

◆ renderContentElementPreview()

◆ 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 1957 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)

◆ 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 1976 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 1857 of file PageLayoutView.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\thumbCode().

◆ 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 924 of file PageLayoutView.php.

References $icons, 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 974 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 
)

◆ tt_content_drawItem()

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

◆ tt_content_drawPasteIcon()

string TYPO3\CMS\Backend\View\PageLayoutView::tt_content_drawPasteIcon (   $pasteItem,
  $pasteTitle,
  $copyMode,
  $cssClass,
  $title 
)
protected

Draw a paste icon either for pasting into a column or for pasting after a record

Parameters
int$pasteItem‪ID of the item in the clipboard
string$pasteTitle‪Title for the JS modal
string$copyMode‪copy or cut
string$cssClass‪CSS class to determine if pasting is done into column or after record
string$title‪title attribute of the generated link
Returns
‪string Generated HTML code with link and icon

Definition at line 952 of file PageLayoutView.php.

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

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

Member Data Documentation

◆ $clipboard

Clipboard TYPO3\CMS\Backend\View\PageLayoutView::$clipboard
protected

Definition at line 140 of file PageLayoutView.php.

◆ $contentElementCache

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

Caches the amount of content elements as a matrix

Definition at line 153 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 112 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 81 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 74 of file PageLayoutView.php.

◆ $eventDispatcher

EventDispatcherInterface TYPO3\CMS\Backend\View\PageLayoutView::$eventDispatcher
protected

◆ $iconFactory

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

Definition at line 157 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 118 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 163 of file PageLayoutView.php.

◆ $localizationController

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

Definition at line 167 of file PageLayoutView.php.

◆ $option_newWizard

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

If TRUE, new-wizards are linked to rather than the regular new-element list.

Definition at line 68 of file PageLayoutView.php.

◆ $pageinfo

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

Current ids page record

Definition at line 146 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 130 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 173 of file PageLayoutView.php.

◆ $siteLanguages

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

Contains site languages for this page ID

Definition at line 136 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 87 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 103 of file PageLayoutView.php.

◆ $uriBuilder

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

Definition at line 181 of file PageLayoutView.php.