TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\View\PageLayoutView Class Reference
Inheritance diagram for TYPO3\CMS\Backend\View\PageLayoutView:
TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList TYPO3\CMS\Backend\RecordList\AbstractRecordList

Public Member Functions

 __construct ()
 
 getTable ($table, $id, $fields='')
 
 getExternalTables ($id, $table)
 
 getTable_pages ($id)
 
 makeOrdinaryList ($table, $id, $fList, $icon=false, $addWhere='')
 
 dataFields ($fieldArr, $table, $row, $out=[])
 
 headerFields ($fieldArr, $table, $out=[])
 
 pages_getTree ($theRows, $pid, $qWhere, $treeIcons, $depth)
 
 pages_drawItem ($row, $fieldArr)
 
 tt_content_drawColHeader ($colName, $editParams, $newParams, array $pasteParams=null)
 
 tt_content_drawHeader ($row, $space=0, $disableMoveAndNewButtons=false, $langMode=false, $dragDropEnabled=false)
 
 getNonTranslatedTTcontentUids ($defLanguageCount, $id, $lP)
 
 newLanguageButton ($defLanguageCount, $lP, $colPos=0)
 
 newContentElementOnClick ($id, $colPos, $sys_language)
 
 linkEditContent ($str, $row)
 
 languageSelector ($id)
 
 getResult ($result, $table='tt_content')
 
 numberOfRecords ($table, $pid)
 
 renderText ($input)
 
 getIcon ($table, $row, $enabledClickMenuItems='')
 
 getProcessedValue ($table, $fieldList, array $row, array &$info)
 
 isDisabled ($table, $row)
 
 noEditIcon ($label='noEditItems')
 
 getTableMenu ($id)
 
 getThumbCodeUnlinked ($row, $table, $field)
 
- Public Member Functions inherited from TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList
 start ($id, $table, $pointer, $search='', $levels=0, $showLimit=0)
 
 generateList ()
 
 getTable ($tableName, $id, $fields='')
 
 setDispFields ()
 
 thumbCode ($row, $table, $field)
 
 makeQueryArray ($table, $id, $addWhere='', $fieldList=' *')
 
 setTotalItems ($queryParts)
 
 makeSearchString ($table, $currentPid=-1)
 
 linkWrapTable ($table, $code)
 
 linkWrapItems ($table, $uid, $code, $row)
 
 linkUrlMail ($code, $testString)
 
 listURL ($altId='', $table='-1', $exclList='')
 
 requestUri ()
 
 makeFieldList ($table, $dontCheckUser=false, $addDateFields=false)
 
 localizationRedirect ($justLocalized)
 
 setOverrideUrlParameters (array $urlParameters)
 
 setTableDisplayOrder (array $orderInformation)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\RecordList\AbstractRecordList
 __construct ()
 
 addElement ($h, $icon, $data, $rowParams='', $_='', $_2='', $colType='td')
 
 writeTop ()
 
 fwd_rwd_nav ($table='')
 
 fwd_rwd_HTML ($type, $pointer, $table='')
 
 listURL ($altId='', $table='-1', $exclList='')
 
 CBfunctions ()
 
 initializeLanguages ()
 
 languageFlag ($sys_language_uid, $addAsAdditionalText=true)
 

Public Attributes

 $pI_showUser = 0
 
 $nextThree = 3
 
 $pages_noEditColumns = 0
 
 $option_newWizard = 1
 
 $ext_function = 0
 
 $doEdit = 1
 
 $agePrefixes = ' min| hrs| days| yrs| min| hour| day| year'
 
 $externalTables = []
 
 $descrTable
 
 $defLangBinding = false
 
 $tt_contentConfig
 
 $activeTables = []
 
 $tt_contentData
 
 $CType_labels = []
 
 $itemLabels = []
 
 $ext_CALC_PERMS
 
- Public Attributes inherited from TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList
 $tableList = ''
 
 $returnUrl = ''
 
 $thumbs = 0
 
 $itemsLimitPerTable = 20
 
 $itemsLimitSingleTable = 100
 
 $script = 'index.php'
 
 $allFields = 0
 
 $localizationView = false
 
 $csvOutput = false
 
 $sortField
 
 $sortRev
 
 $displayFields
 
 $duplicateField
 
 $id
 
 $table = ''
 
 $listOnlyInSingleTableMode = false
 
 $firstElementNumber = 0
 
 $searchString = ''
 
 $searchLevels = ''
 
 $showLimit = 0
 
 $pidSelect = ''
 
 $perms_clause = ''
 
 $calcPerms = 0
 
 $clickTitleMode = ''
 
 $modSharedTSconfig = []
 
 $pageRecord = []
 
 $hideTables = ''
 
 $hideTranslations = ''
 
 $tableTSconfigOverTCA = []
 
 $tablesCollapsed = []
 
 $JScode = ''
 
 $HTMLcode = ''
 
 $iLimit = 0
 
 $eCounter = 0
 
 $totalItems = ''
 
 $recPath_cache = []
 
 $setFields = []
 
 $currentTable = []
 
 $duplicateStack = []
 
 $modTSconfig
 
- Public Attributes inherited from TYPO3\CMS\Backend\RecordList\AbstractRecordList
 $iLimit = 10
 
 $leftMargin = 0
 
 $showIcon = 1
 
 $no_noWrap = 0
 
 $oddColumnsCssClass = ''
 
 $fieldArray = []
 
 $addElement_tdParams = []
 
 $addElement_tdCssClass = []
 
 $fixedL = 30
 
 $thisScript = ''
 
 $setLMargin = 1
 
 $counter = 0
 
 $totalItems = ''
 
 $firstElementNumber = 0
 
 $eCounter = 0
 
 $HTMLcode = ''
 
 $pageOverlays = []
 
 $languageIconTitles = []
 
 $translateTools
 

Protected Member Functions

 getContentRecordsPerColumn ($table, $id, array $columns, $additionalWhereClause='')
 
 getPagesTableFieldValue ($field, array $row)
 
 tt_content_drawFooter (array $row)
 
 isDragAndDropAllowed (array $row)
 
 generateListForCTypeMenu (array $row)
 
 initializeClipboard ()
 
 generateTtContentDataArray (array $rowArray)
 
 cleanTableNames ()
 
 checkIfTranslationsExistInLanguage (array $contentElements, $language)
 
 getBackendLayoutView ()
 
 getBackendUser ()
 
 getDatabase ()
 
 getPageLayoutController ()
 
- Protected Member Functions inherited from TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList
 getSearchFields ($tableName)
 
 getBackendUserAuthentication ()
 
 getDatabaseConnection ()
 
- Protected Member Functions inherited from TYPO3\CMS\Backend\RecordList\AbstractRecordList
 determineScriptUrl ()
 
 getThisScript ()
 
 getTranslateTools ()
 
 generateReferenceToolTip ($references, $launchViewParameter='')
 
 getLanguageService ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $clipboard
 
 $plusPages = []
 
 $pageinfo
 
 $languagesInColumnCache = []
 
 $contentElementCache = []
 
 $iconFactory
 
 $languageHasTranslationsCache = []
 
 $localizationController
 
- Protected Attributes inherited from TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList
 $overrideUrlParameters = []
 
 $tableDisplayOrder = []
 
- Protected Attributes inherited from TYPO3\CMS\Backend\RecordList\AbstractRecordList
 $id = 0
 
 $iconFactory
 

Detailed Description

Child class for the Web > Page module

Definition at line 37 of file PageLayoutView.php.

Constructor & Destructor Documentation

◆ __construct()

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

Construct to initialize class variables.

Definition at line 221 of file PageLayoutView.php.

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

Member Function Documentation

◆ checkIfTranslationsExistInLanguage()

TYPO3\CMS\Backend\View\PageLayoutView::checkIfTranslationsExistInLanguage ( array  $contentElements,
  $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 2305 of file PageLayoutView.php.

References TYPO3\CMS\Backend\RecordList\AbstractRecordList\getLanguageService(), TYPO3\CMS\Backend\Utility\BackendUtility\getModTSconfig(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Core\Messaging\AbstractMessage\WARNING.

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

◆ cleanTableNames()

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

Function, which fills in the internal array, $this->allowedTableNames with all tables to which the user has access. Also a set of standard tables (pages, static_template, sys_filemounts, etc...) are filtered out. So what is left is basically all tables which makes sense to list content from.

Returns
array

Definition at line 2194 of file PageLayoutView.php.

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

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

◆ dataFields()

TYPO3\CMS\Backend\View\PageLayoutView::dataFields (   $fieldArr,
  $table,
  $row,
  $out = [] 
)

Adds content to all data fields in $out array

Each field name in $fieldArr has a special feature which is that the field name can be specified as more field names. Eg. "field1,field2;field3". Field 2 and 3 will be shown in the same cell of the table separated by
while field1 will have its own cell.

Parameters
array$fieldArrArray of fields to display
string$tableTable name
array$rowRecord array
array$outArray to which the data is added
Returns
array $out array returned after processing.
See also
makeOrdinaryList()

Definition at line 1071 of file PageLayoutView.php.

References $GLOBALS, TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$table, TYPO3\CMS\Core\Utility\GeneralUtility\fixed_lgd_cs(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\getLanguageService(), TYPO3\CMS\Backend\View\PageLayoutView\isDisabled(), and TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\thumbCode().

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

◆ generateListForCTypeMenu()

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

Generates a list of selected pages or categories for the CType menu

Parameters
array$rowrow from pages
Returns
string

Definition at line 1750 of file PageLayoutView.php.

References TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$table, $uid, and TYPO3\CMS\Backend\Utility\BackendUtility\getRecord().

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

◆ 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
Returns
void

Definition at line 2053 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\$nextThree, and TYPO3\CMS\Core\Utility\GeneralUtility\inList().

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

◆ getBackendLayoutView()

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

◆ getBackendUser()

◆ getContentRecordsPerColumn()

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$tableUNUSED (will always be queried from tt_content)
int$idPage Id to be used (not used at all, but part of the API, see $this->pidSelect)
array$columnscolPos values to be considered to be shown
string$additionalWhereClauseAdditional where clause for database select
Returns
array Associative array for each column (colPos)

Definition at line 1150 of file PageLayoutView.php.

References TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$id, TYPO3\CMS\Backend\View\PageLayoutView\getDatabase(), TYPO3\CMS\Backend\View\PageLayoutView\getResult(), and TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\makeQueryArray().

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

◆ getDatabase()

◆ getExternalTables()

TYPO3\CMS\Backend\View\PageLayoutView::getExternalTables (   $id,
  $table 
)

◆ getIcon()

TYPO3\CMS\Backend\View\PageLayoutView::getIcon (   $table,
  $row,
  $enabledClickMenuItems = '' 
)

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

Parameters
string$tableTable name
array$rowRecord array
string$enabledClickMenuItemsPassthrough to wrapClickMenuOnIcon
Returns
string HTML for the icon

Definition at line 2122 of file PageLayoutView.php.

References TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$table, 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\makeOrdinaryList(), TYPO3\CMS\Backend\View\PageLayoutView\pages_drawItem(), and TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawHeader().

◆ getNonTranslatedTTcontentUids()

TYPO3\CMS\Backend\View\PageLayoutView::getNonTranslatedTTcontentUids (   $defLanguageCount,
  $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$defLanguageCountNumeric array with uids of tt_content elements in the default language
int$idPage pid
int$lPSys language UID
Returns
array Modified $defLanguageCount

Definition at line 1782 of file PageLayoutView.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause(), TYPO3\CMS\Backend\View\PageLayoutView\getDatabase(), and TYPO3\CMS\Backend\Utility\BackendUtility\workspaceOL().

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

◆ getPageLayoutController()

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

◆ getPagesTableFieldValue()

TYPO3\CMS\Backend\View\PageLayoutView::getPagesTableFieldValue (   $field,
array  $row 
)
protected

Returns the HTML code for rendering a field in the pages table. The row value is processed to a human readable form and the result is parsed through htmlspecialchars().

Parameters
string$fieldThe name of the field of which the value should be rendered.
array$rowThe pages table row as an associative array.
Returns
string The rendered table field value.

Definition at line 1289 of file PageLayoutView.php.

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

◆ 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$tableTable name
string$fieldListComma separated list of fields.
array$rowRecord from which to take values for processing.
array$infoArray to which the processed values are added.
Returns
void

Definition at line 2145 of file PageLayoutView.php.

References TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$table.

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

◆ getResult()

TYPO3\CMS\Backend\View\PageLayoutView::getResult (   $result,
  $table = 'tt_content' 
)

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

Parameters
bool | \mysqli_result | object$resultMySQLi result object / DBAL object
string$tableTable name defaulting to tt_content
Returns
array The selected rows returned in this array.

Definition at line 1998 of file PageLayoutView.php.

References TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$table, TYPO3\CMS\Backend\View\PageLayoutView\generateTtContentDataArray(), TYPO3\CMS\Backend\View\PageLayoutView\getDatabase(), and TYPO3\CMS\Backend\Utility\BackendUtility\workspaceOL().

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

◆ getTable()

TYPO3\CMS\Backend\View\PageLayoutView::getTable (   $table,
  $id,
  $fields = '' 
)

Adds the code of a single table

Parameters
string$tableTable name
int$idCurrent page id
string$fields
Returns
string HTML for listing.

Definition at line 245 of file PageLayoutView.php.

References TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$id, TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$table, TYPO3\CMS\Backend\View\PageLayoutView\getExternalTables(), and TYPO3\CMS\Backend\View\PageLayoutView\getTable_pages().

◆ getTable_pages()

TYPO3\CMS\Backend\View\PageLayoutView::getTable_pages (   $id)

Renders records from the pages table from page id (Used to get information about the page tree content by "Web>Info"!)

Parameters
int$idPage id
Returns
string HTML for the listing

Definition at line 296 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\$defLangBinding, TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$firstElementNumber, $GLOBALS, TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$id, $params, TYPO3\CMS\Backend\RecordList\AbstractRecordList\addElement(), TYPO3\CMS\Backend\Utility\BackendUtility\BEgetRootLine(), TYPO3\CMS\Core\Utility\GeneralUtility\callUserFunction(), TYPO3\CMS\Core\Type\Enumeration\cast(), TYPO3\CMS\Backend\View\PageLayoutView\checkIfTranslationsExistInLanguage(), TYPO3\CMS\Backend\View\PageLayoutView\cleanTableNames(), TYPO3\CMS\Core\Type\Bitmask\Permission\CONTENT_EDIT, TYPO3\CMS\Backend\Utility\BackendUtility\cshItem(), TYPO3\CMS\Core\Versioning\VersionState\DELETE_PLACEHOLDER, TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause(), TYPO3\CMS\Core\Utility\GeneralUtility\fixed_lgd_cs(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\fwd_rwd_nav(), 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\getDatabase(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Backend\Utility\BackendUtility\getItemLabel(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\getLanguageService(), TYPO3\CMS\Backend\Utility\BackendUtility\getModTSconfig(), TYPO3\CMS\Backend\View\PageLayoutView\getNonTranslatedTTcontentUids(), TYPO3\CMS\Backend\View\PageLayoutView\getPageLayoutController(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordsByField(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordTitle(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordWSOL(), TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), TYPO3\CMS\Backend\View\PageLayoutView\initializeClipboard(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\initializeLanguages(), TYPO3\CMS\Core\Utility\GeneralUtility\inList(), TYPO3\CMS\Core\Utility\GeneralUtility\intExplode(), TYPO3\CMS\Backend\View\PageLayoutView\isDisabled(), TYPO3\CMS\Backend\View\PageLayoutView\languageSelector(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), TYPO3\CMS\Backend\View\PageLayoutView\newLanguageButton(), TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_EDIT, TYPO3\CMS\Backend\View\PageLayoutView\pages_drawItem(), TYPO3\CMS\Backend\View\PageLayoutView\pages_getTree(), TYPO3\CMS\Backend\Utility\BackendUtility\readPageAccess(), 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(), TYPO3\CMS\Backend\Utility\BackendUtility\versioningPlaceholderClause(), TYPO3\CMS\Backend\Utility\BackendUtility\viewOnClick(), TYPO3\CMS\Core\Messaging\AbstractMessage\WARNING, TYPO3\CMS\Backend\Utility\BackendUtility\workspaceOL(), and TYPO3\CMS\Backend\Utility\BackendUtility\wrapClickMenuOnIcon().

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

◆ getTableMenu()

TYPO3\CMS\Backend\View\PageLayoutView::getTableMenu (   $id)

Creates a menu of the tables that can be listed by this function Only tables which has records on the page will be included. Notice: The function also fills in the internal variable $this->activeTables with icon/titles.

Parameters
int$idPage id from which we are listing records (the function will look up if there are records on the page)
Returns
string HTML output.

Definition at line 2232 of file PageLayoutView.php.

References $GLOBALS, TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$id, TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause(), TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), TYPO3\CMS\Backend\View\PageLayoutView\getDatabase(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\getLanguageService(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Backend\Utility\BackendUtility\versioningPlaceholderClause().

◆ getThumbCodeUnlinked()

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

Create thumbnail code for record/field but not linked

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

Definition at line 2292 of file PageLayoutView.php.

References TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$table.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\isDragAndDropAllowed(), and TYPO3\CMS\FluidStyledContent\Hooks\TextmediaPreviewRenderer\preProcess().

◆ headerFields()

TYPO3\CMS\Backend\View\PageLayoutView::headerFields (   $fieldArr,
  $table,
  $out = [] 
)

Header fields made for the listing of records

Parameters
array$fieldArrField names
string$tableThe table name
array$outArray to which the headers are added.
Returns
array $out returned after addition of the header fields.
See also
makeOrdinaryList()

Definition at line 1131 of file PageLayoutView.php.

References $GLOBALS, TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$table, and TYPO3\CMS\Backend\RecordList\AbstractRecordList\getLanguageService().

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

◆ initializeClipboard()

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

Initializes the clipboard for generating paste links

Returns
void
See also
::main()
::main()
::main()

Definition at line 2029 of file PageLayoutView.php.

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

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

◆ isDisabled()

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$tableTablename of table to test
array$rowRecord row.
Returns
bool Returns TRUE, if disabled.

Definition at line 2165 of file PageLayoutView.php.

References $GLOBALS, and TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$table.

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\dataFields(), TYPO3\CMS\Backend\View\PageLayoutView\getTable_pages(), and TYPO3\CMS\Backend\View\PageLayoutView\isDragAndDropAllowed().

◆ isDragAndDropAllowed()

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

Determine whether Drag & Drop should be allowed

Parameters
array$row
Returns
bool

Definition at line 1535 of file PageLayoutView.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\callUserFunction(), TYPO3\CMS\Core\Type\Bitmask\Permission\CONTENT_EDIT, TYPO3\CMS\Backend\Utility\BackendUtility\date(), TYPO3\CMS\Backend\View\PageLayoutView\generateListForCTypeMenu(), TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), TYPO3\CMS\Core\Utility\GeneralUtility\getFileAbsFileName(), TYPO3\CMS\Backend\Utility\BackendUtility\getItemLabel(), TYPO3\CMS\Backend\Utility\BackendUtility\getLabelFromItemlist(), TYPO3\CMS\Backend\Utility\BackendUtility\getLabelFromItemListMerged(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\getLanguageService(), TYPO3\CMS\Backend\Utility\BackendUtility\getModTSconfig(), TYPO3\CMS\Backend\View\PageLayoutView\getProcessedValue(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecord(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordTitle(), TYPO3\CMS\Backend\View\PageLayoutView\getThumbCodeUnlinked(), TYPO3\CMS\Core\Utility\GeneralUtility\getUserObj(), TYPO3\CMS\Backend\View\PageLayoutView\isDisabled(), TYPO3\CMS\Backend\View\PageLayoutView\linkEditContent(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), TYPO3\CMS\Backend\View\PageLayoutView\renderText(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, TYPO3\CMS\Backend\Utility\BackendUtility\splitTable_Uid(), and TYPO3\CMS\Backend\Utility\BackendUtility\wrapClickMenuOnIcon().

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

◆ languageSelector()

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$idPage id for which to create a new language (pages_language_overlay record)
Returns
string <select> HTML element (if there were items for the box anyways...)
See also
getTable_tt_content()

Definition at line 1925 of file PageLayoutView.php.

References TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$id, TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$modSharedTSconfig, TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), TYPO3\CMS\Backend\View\PageLayoutView\getDatabase(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\getLanguageService(), TYPO3\CMS\Backend\Utility\BackendUtility\getModTSconfig(), TYPO3\CMS\Backend\View\PageLayoutView\getPageLayoutController(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

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

◆ linkEditContent()

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$strString to link. Must be prepared for HTML output.
array$rowThe 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 1897 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), and TYPO3\CMS\Backend\RecordList\AbstractRecordList\getLanguageService().

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\isDragAndDropAllowed(), and TYPO3\CMS\FluidStyledContent\Hooks\TextmediaPreviewRenderer\preProcess().

◆ makeOrdinaryList()

TYPO3\CMS\Backend\View\PageLayoutView::makeOrdinaryList (   $table,
  $id,
  $fList,
  $icon = false,
  $addWhere = '' 
)

Creates a standard list of elements from a table.

Parameters
string$tableTable name
int$idPage id.
string$fListComma list of fields to display
bool$iconIf TRUE, icon is shown
string$addWhereAdditional WHERE-clauses.
Returns
string HTML table

Definition at line 964 of file PageLayoutView.php.

References TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$firstElementNumber, $GLOBALS, TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$id, TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$table, TYPO3\CMS\Backend\RecordList\AbstractRecordList\addElement(), TYPO3\CMS\Core\Type\Bitmask\Permission\CONTENT_EDIT, TYPO3\CMS\Backend\View\PageLayoutView\dataFields(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\fwd_rwd_nav(), TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), TYPO3\CMS\Backend\View\PageLayoutView\getDatabase(), TYPO3\CMS\Backend\View\PageLayoutView\getIcon(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\getLanguageService(), TYPO3\CMS\Backend\View\PageLayoutView\headerFields(), TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\makeQueryArray(), TYPO3\CMS\Backend\View\PageLayoutView\noEditIcon(), TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\setTotalItems(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode(), and TYPO3\CMS\Backend\Utility\BackendUtility\workspaceOL().

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

◆ newContentElementOnClick()

TYPO3\CMS\Backend\View\PageLayoutView::newContentElementOnClick (   $id,
  $colPos,
  $sys_language 
)

Creates onclick-attribute content for a new content element

Parameters
int$idPage id where to create the element.
int$colPosPreset: Column position value
int$sys_languagePreset: Sys langauge value
Returns
string String for onclick attribute.
See also
getTable_tt_content()

Definition at line 1871 of file PageLayoutView.php.

References TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$id, TYPO3\CMS\Backend\Utility\BackendUtility\editOnClick(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Backend\Utility\BackendUtility\getModTSconfig(), and TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue().

◆ newLanguageButton()

TYPO3\CMS\Backend\View\PageLayoutView::newLanguageButton (   $defLanguageCount,
  $lP,
  $colPos = 0 
)

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

Parameters
array$defLanguageCountNumeric array with uids of tt_content elements in the default language
int$lPSys language UID
int$colPosColumn position
Returns
string "Copy languages" button, if available.

Definition at line 1812 of file PageLayoutView.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\_GP(), and TYPO3\CMS\Backend\RecordList\AbstractRecordList\getLanguageService().

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

◆ noEditIcon()

TYPO3\CMS\Backend\View\PageLayoutView::noEditIcon (   $label = 'noEditItems')

Returns icon for "no-edit" of a record. Basically, the point is to signal that this record could have had an edit link if the circumstances were right. A placeholder for the regular edit icon...

Parameters
string$labelLabel key from LOCAL_LANG
Returns
string IMG tag for icon.

Definition at line 2181 of file PageLayoutView.php.

References TYPO3\CMS\Backend\RecordList\AbstractRecordList\getLanguageService(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

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

◆ numberOfRecords()

TYPO3\CMS\Backend\View\PageLayoutView::numberOfRecords (   $table,
  $pid 
)

◆ pages_drawItem()

◆ pages_getTree()

TYPO3\CMS\Backend\View\PageLayoutView::pages_getTree (   $theRows,
  $pid,
  $qWhere,
  $treeIcons,
  $depth 
)

Adds pages-rows to an array, selecting recursively in the page tree.

Parameters
array$theRowsArray which will accumulate page rows
int$pidPid to select from
string$qWhereQuery-where clause
string$treeIconsPrefixed icon code.
int$depthDepth (decreasing)
Returns
array $theRows, but with added rows.

Definition at line 1183 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\getDatabase(), and TYPO3\CMS\Backend\Utility\BackendUtility\workspaceOL().

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

◆ renderText()

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

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

Parameters
string$inputInput string
Returns
string Output string

Definition at line 2107 of file PageLayoutView.php.

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

Referenced by TYPO3\CMS\Backend\View\PageLayoutView\isDragAndDropAllowed(), and TYPO3\CMS\FluidStyledContent\Hooks\TextmediaPreviewRenderer\preProcess().

◆ tt_content_drawColHeader()

TYPO3\CMS\Backend\View\PageLayoutView::tt_content_drawColHeader (   $colName,
  $editParams,
  $newParams,
array  $pasteParams = null 
)

Draw header for a content element column:

Parameters
string$colNameColumn name
string$editParamsEdit params (Syntax: &edit[...] for FormEngine)
string$newParamsNew element params (Syntax: &edit[...] for FormEngine) OBSOLETE
array | NULL$pasteParamsPaste element params (i.e. array(colPos => 1, sys_language_uid => 2))
Returns
string HTML table

Definition at line 1308 of file PageLayoutView.php.

References TYPO3\CMS\Core\Type\Bitmask\Permission\CONTENT_EDIT, TYPO3\CMS\Backend\Utility\BackendUtility\editOnClick(), TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\getLanguageService(), TYPO3\CMS\Backend\View\PageLayoutView\getPageLayoutController(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

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

◆ tt_content_drawFooter()

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

Draw the footer for a single tt_content element

Parameters
array$rowRecord array
Returns
string HTML of the footer
Exceptions

Definition at line 1354 of file PageLayoutView.php.

References $GLOBALS, TYPO3\CMS\Backend\View\PageLayoutView\getProcessedValue(), and TYPO3\CMS\Core\Utility\GeneralUtility\getUserObj().

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

◆ tt_content_drawHeader()

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

Member Data Documentation

◆ $activeTables

TYPO3\CMS\Backend\View\PageLayoutView::$activeTables = []

Definition at line 137 of file PageLayoutView.php.

◆ $agePrefixes

TYPO3\CMS\Backend\View\PageLayoutView::$agePrefixes = ' min| hrs| days| yrs| min| hour| day| year'

Definition at line 86 of file PageLayoutView.php.

◆ $clipboard

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

Definition at line 165 of file PageLayoutView.php.

◆ $contentElementCache

TYPO3\CMS\Backend\View\PageLayoutView::$contentElementCache = []
protected

Definition at line 199 of file PageLayoutView.php.

◆ $CType_labels

TYPO3\CMS\Backend\View\PageLayoutView::$CType_labels = []

Definition at line 153 of file PageLayoutView.php.

◆ $defLangBinding

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

◆ $descrTable

TYPO3\CMS\Backend\View\PageLayoutView::$descrTable

Definition at line 100 of file PageLayoutView.php.

◆ $doEdit

TYPO3\CMS\Backend\View\PageLayoutView::$doEdit = 1

Definition at line 79 of file PageLayoutView.php.

◆ $ext_CALC_PERMS

TYPO3\CMS\Backend\View\PageLayoutView::$ext_CALC_PERMS

Definition at line 177 of file PageLayoutView.php.

◆ $ext_function

TYPO3\CMS\Backend\View\PageLayoutView::$ext_function = 0

Definition at line 72 of file PageLayoutView.php.

◆ $externalTables

TYPO3\CMS\Backend\View\PageLayoutView::$externalTables = []

Definition at line 93 of file PageLayoutView.php.

◆ $iconFactory

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

Definition at line 204 of file PageLayoutView.php.

◆ $itemLabels

TYPO3\CMS\Backend\View\PageLayoutView::$itemLabels = []

Definition at line 160 of file PageLayoutView.php.

◆ $languageHasTranslationsCache

TYPO3\CMS\Backend\View\PageLayoutView::$languageHasTranslationsCache = []
protected

Definition at line 211 of file PageLayoutView.php.

◆ $languagesInColumnCache

TYPO3\CMS\Backend\View\PageLayoutView::$languagesInColumnCache = []
protected

Definition at line 191 of file PageLayoutView.php.

◆ $localizationController

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

Definition at line 216 of file PageLayoutView.php.

◆ $nextThree

TYPO3\CMS\Backend\View\PageLayoutView::$nextThree = 3

◆ $option_newWizard

TYPO3\CMS\Backend\View\PageLayoutView::$option_newWizard = 1

Definition at line 65 of file PageLayoutView.php.

◆ $pageinfo

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

Definition at line 184 of file PageLayoutView.php.

◆ $pages_noEditColumns

TYPO3\CMS\Backend\View\PageLayoutView::$pages_noEditColumns = 0

Definition at line 58 of file PageLayoutView.php.

◆ $pI_showUser

TYPO3\CMS\Backend\View\PageLayoutView::$pI_showUser = 0

Definition at line 44 of file PageLayoutView.php.

◆ $plusPages

TYPO3\CMS\Backend\View\PageLayoutView::$plusPages = []
protected

Definition at line 170 of file PageLayoutView.php.

◆ $tt_contentConfig

TYPO3\CMS\Backend\View\PageLayoutView::$tt_contentConfig
Initial value:
= [
'showInfo' => 1

Definition at line 115 of file PageLayoutView.php.

◆ $tt_contentData

TYPO3\CMS\Backend\View\PageLayoutView::$tt_contentData
Initial value:
= [
'nextThree' => []

Definition at line 142 of file PageLayoutView.php.