TYPO3 CMS  TYPO3_6-2
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 tx_cms_layout

Public Member Functions

 getTable ($table, $id)
 
 getExternalTables ($id, $table)
 
 getTable_pages ($id)
 
 getSelectedBackendLayoutUid ($id)
 
 getBackendLayoutConfiguration ()
 
 makeOrdinaryList ($table, $id, $fList, $icon=FALSE, $addWhere='')
 
 dataFields ($fieldArr, $table, $row, $out=array())
 
 headerFields ($fieldArr, $table, $out=array())
 
 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)
 
 tt_content_drawItem ($row, $isRTE=FALSE)
 
 getNonTranslatedTTcontentUids ($defLanguageCount, $id, $lP)
 
 newLanguageButton ($defLanguageCount, $lP)
 
 newContentElementOnClick ($id, $colPos, $sys_language)
 
 linkEditContent ($str, $row)
 
 linkRTEbutton ($row)
 
 languageSelector ($id)
 
 getResult ($result, $table='tt_content')
 
 numberOfRecords ($table, $pid)
 
 renderText ($input)
 
 getIcon ($table, $row)
 
 getProcessedValue ($table, $fieldList, array $row, array &$info)
 
 isDisabled ($table, $row)
 
 wordWrapper ($content, $max=50, $char=' -')
 
 noEditIcon ($label='noEditItems')
 
 isRTEforField ($table, $row, $field)
 
 getSpecConfForField ($table, $row, $field)
 
 getTableMenu ($id)
 
- Public Member Functions inherited from TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList
 start ($id, $table, $pointer, $search='', $levels='', $showLimit=0)
 
 generateList ()
 
 getSearchBox ($formFields=1)
 
 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=0, $addDateFields=0)
 
 getTreeObject ($id, $depth, $perms_clause)
 
 localizationRedirect ($justLocalized)
 
 setOverrideUrlParameters (array $urlParameters)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\RecordList\AbstractRecordList
 __construct ()
 
 addElement ($h, $icon, $data, $trParams='', $lMargin='', $altLine='')
 
 writeTop ()
 
 writeBottom ()
 
 fwd_rwd_nav ($table='')
 
 fwd_rwd_HTML ($type, $pointer, $table='')
 
 listURL ($altId='')
 
 CBfunctions ()
 
 initializeLanguages ()
 
 languageFlag ($sys_language_uid, $addAsAdditionalText=TRUE)
 

Public Attributes

 $pI_showUser = 0
 
 $nextThree = 3
 
 $pages_noEditColumns = 0
 
 $option_showBigButtons = 1
 
 $option_newWizard = 1
 
 $ext_function = 0
 
 $doEdit = 1
 
 $agePrefixes = ' min| hrs| days| yrs| min| hour| day| year'
 
 $externalTables = array()
 
 $descrTable
 
 $defLangBinding = FALSE
 
 $tt_contentConfig
 
 $activeTables = array()
 
 $tt_contentData
 
 $CType_labels = array()
 
 $itemLabels = array()
 
 $ext_CALC_PERMS
 
- Public Attributes inherited from TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList
 $tableList = ''
 
 $returnUrl = ''
 
 $thumbs = 0
 
 $itemsLimitPerTable = 20
 
 $itemsLimitSingleTable = 100
 
 $widthGif = '<img src="clear.gif" width="1" height="4" hspace="160" alt="" />'
 
 $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 = array()
 
 $pageRecord = array()
 
 $hideTables = ''
 
 $hideTranslations = ''
 
 $tableTSconfigOverTCA = array()
 
 $tablesCollapsed = array()
 
 $JScode = ''
 
 $HTMLcode = ''
 
 $iLimit = 0
 
 $eCounter = 0
 
 $totalItems = ''
 
 $recPath_cache = array()
 
 $setFields = array()
 
 $currentTable = array()
 
 $duplicateStack = array()
 
 $modTSconfig
 
- Public Attributes inherited from TYPO3\CMS\Backend\RecordList\AbstractRecordList
 $iLimit = 10
 
 $leftMargin = 0
 
 $showIcon = 1
 
 $no_noWrap = 0
 
 $oddColumnsCssClass = ''
 
 $backPath = ''
 
 $fieldArray = array()
 
 $addElement_tdParams = array()
 
 $addElement_tdCssClass = array()
 
 $fixedL = 30
 
 $thisScript = ''
 
 $setLMargin = 1
 
 $counter = 0
 
 $totalItems = ''
 
 $firstElementNumber = 0
 
 $eCounter = 0
 
 $HTMLcode = ''
 
 $pageOverlays = array()
 
 $languageIconTitles = array()
 
 $translateTools
 

Protected Member Functions

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

Protected Attributes

 $rteSetup = array()
 
 $clipboard
 
 $plusPages = array()
 
- Protected Attributes inherited from TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList
 $overrideUrlParameters = array()
 

Detailed Description

Child class for the Web > Page module

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 33 of file PageLayoutView.php.

Member Function Documentation

◆ 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 2058 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 = array() 
)

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()
Todo:
Define visibility

Definition at line 1039 of file PageLayoutView.php.

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

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

◆ 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 1894 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\getSelectedBackendLayoutUid().

◆ getBackendLayoutConfiguration()

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

Get backend layout configuration

Returns
array
Deprecated:
since TYPO3 CMS 6.2, will be removed two versions later

Definition at line 926 of file PageLayoutView.php.

◆ 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)
integer$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 1117 of file PageLayoutView.php.

References TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$id, $result, 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\getSelectedBackendLayoutUid().

◆ getDatabase()

◆ getDocumentTemplate()

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

◆ getExternalTables()

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

Renders an external table from page id

Parameters
integer$idPage id
string$tableName of the table
Returns
string HTML for the listing
Todo:
Define visibility

Definition at line 220 of file PageLayoutView.php.

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

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

◆ getIcon()

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

◆ getLanguageService()

◆ 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
integer$idPage pid
integer$lPSys language UID
Returns
array Modified $defLanguageCount
Todo:
Define visibility

Definition at line 1654 of file PageLayoutView.php.

References TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$id, $result, 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\getSelectedBackendLayoutUid().

◆ getPageLayoutController()

◆ 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
Todo:
Define visibility

Definition at line 1985 of file PageLayoutView.php.

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

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

◆ 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
boolean | \mysqli_result | object$resultMySQLi result object / DBAL object
string$tableTable name defaulting to tt_content
Returns
array The selected rows returned in this array.
Todo:
Define visibility

Definition at line 1841 of file PageLayoutView.php.

References $result, 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(), and TYPO3\CMS\Backend\View\PageLayoutView\getNonTranslatedTTcontentUids().

◆ getSelectedBackendLayoutUid()

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

Returns the backend layout which should be used for this page.

Parameters
integer$idUid of the current page
Returns
boolean|string Identifier of the backend layout to be used, or FALSE if none
Deprecated:
since TYPO3 CMS 6.2, will be removed two versions later

Definition at line 386 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\$defLangBinding, $GLOBALS, TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$id, TYPO3\CMS\Backend\Utility\BackendUtility\BEenableFields(), TYPO3\CMS\Core\Type\Enumeration\cast(), TYPO3\CMS\Core\Versioning\VersionState\DELETE_PLACEHOLDER, 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\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Backend\View\PageLayoutView\getLanguageService(), TYPO3\CMS\Backend\View\PageLayoutView\getNonTranslatedTTcontentUids(), TYPO3\CMS\Backend\View\PageLayoutView\getPageLayoutController(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordTitle(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordWSOL(), TYPO3\CMS\Backend\Utility\IconUtility\getSpriteIcon(), TYPO3\CMS\Backend\View\PageLayoutView\initializeClipboard(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\initializeLanguages(), TYPO3\CMS\Core\Utility\GeneralUtility\intExplode(), TYPO3\CMS\Backend\View\PageLayoutView\isDisabled(), TYPO3\CMS\Backend\View\PageLayoutView\isRTEforField(), TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction(), TYPO3\CMS\Backend\View\PageLayoutView\newContentElementOnClick(), TYPO3\CMS\Backend\View\PageLayoutView\newLanguageButton(), TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode(), 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().

◆ getSpecConfForField()

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

Returns "special" configuration from the "types" configuration in TCA for the record given by tablename/fieldname. Used by isRTEforField() in the process of finding whether a field has RTE enabled or not.

Parameters
string$tableTable name
array$rowRecord array
string$fieldField name
Returns
array Spec. conf (if available) private
See also
isRTEforField()
Todo:
Define visibility

Definition at line 2127 of file PageLayoutView.php.

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

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

◆ getTable()

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

Adds the code of a single table

Parameters
string$tableTable name
integer$idCurrent page id
Returns
string HTML for listing.
Todo:
Define visibility

Definition at line 194 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
integer$idPage id
Returns
string HTML for the listing
Todo:
Define visibility

Definition at line 244 of file PageLayoutView.php.

References TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$firstElementNumber, $GLOBALS, TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$id, $result, TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$widthGif, TYPO3\CMS\Backend\View\PageLayoutView\cleanTableNames(), TYPO3\CMS\Backend\Utility\BackendUtility\cshItem(), TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause(), TYPO3\CMS\Backend\Utility\BackendUtility\editOnClick(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\fwd_rwd_nav(), TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), TYPO3\CMS\Backend\View\PageLayoutView\getDatabase(), TYPO3\CMS\Backend\Utility\BackendUtility\getItemLabel(), TYPO3\CMS\Backend\View\PageLayoutView\getLanguageService(), TYPO3\CMS\Backend\View\PageLayoutView\getPageLayoutController(), TYPO3\CMS\Backend\Utility\IconUtility\getSpriteIcon(), TYPO3\CMS\Backend\Utility\IconUtility\getSpriteIconForRecord(), TYPO3\CMS\Backend\View\PageLayoutView\pages_drawItem(), TYPO3\CMS\Backend\View\PageLayoutView\pages_getTree(), TYPO3\CMS\Backend\Utility\BackendUtility\versioningPlaceholderClause(), and TYPO3\CMS\Backend\Utility\BackendUtility\workspaceOL().

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
integer$idPage id from which we are listing records (the function will look up if there are records on the page)
Returns
string HTML output.
Todo:
Define visibility

Definition at line 2156 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\View\PageLayoutView\getLanguageService(), TYPO3\CMS\Backend\Utility\IconUtility\getSpriteIconForRecord(), TYPO3\CMS\Core\Utility\GeneralUtility\inList(), and TYPO3\CMS\Backend\Utility\BackendUtility\versioningPlaceholderClause().

◆ headerFields()

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

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()
Todo:
Define visibility

Definition at line 1099 of file PageLayoutView.php.

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

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

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

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

◆ 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
boolean Returns TRUE, if disabled.
Todo:
Define visibility

Definition at line 2005 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\getSelectedBackendLayoutUid(), and TYPO3\CMS\Backend\View\PageLayoutView\tt_content_drawItem().

◆ isRTEforField()

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

Checking if the RTE is available/enabled for a certain table/field and if so, it returns TRUE. Used to determine if the RTE button should be displayed.

Parameters
string$tableTable name
array$rowRecord row (needed, if there are RTE dependencies based on other fields in the record)
string$fieldField name
Returns
boolean Returns TRUE if the rich text editor would be enabled/available for the field name specified.
Todo:
Define visibility

Definition at line 2091 of file PageLayoutView.php.

References TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList\$table, TYPO3\CMS\Backend\Utility\BackendUtility\fixVersioningPid(), TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), TYPO3\CMS\Backend\Utility\BackendUtility\getPagesTSconfig(), TYPO3\CMS\Backend\View\PageLayoutView\getSpecConfForField(), TYPO3\CMS\Backend\Utility\BackendUtility\getSpecConfParametersFromArray(), TYPO3\CMS\Backend\Utility\BackendUtility\getTCAtypeValue(), TYPO3\CMS\Backend\Utility\BackendUtility\getTSCpid(), and TYPO3\CMS\Backend\Utility\BackendUtility\RTEsetup().

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

◆ 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
integer$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()
Todo:
Define visibility

Definition at line 1774 of file PageLayoutView.php.

◆ 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()
Todo:
Define visibility

Definition at line 1731 of file PageLayoutView.php.

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

◆ linkRTEbutton()

TYPO3\CMS\Backend\View\PageLayoutView::linkRTEbutton (   $row)

Adds a button to edit the row in RTE wizard

Parameters
array$rowThe row of tt_content element
Returns
string Button to click if you want to edit in RTE wizard.
Todo:
Define visibility

Definition at line 1750 of file PageLayoutView.php.

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

◆ makeOrdinaryList()

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

◆ newContentElementOnClick()

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

Creates onclick-attribute content for a new content element

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

Definition at line 1709 of file PageLayoutView.php.

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

◆ newLanguageButton()

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

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

Parameters
array$defLanguageCountNumeric array with uids of tt_content elements in the default language
integer$lPSys language UID
Returns
string "Copy languages" button, if available.
Todo:
Define visibility

Definition at line 1681 of file PageLayoutView.php.

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

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

◆ 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.
Todo:
Define visibility

Definition at line 2044 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\getLanguageService(), and TYPO3\CMS\Backend\Utility\IconUtility\getSpriteIcon().

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

◆ numberOfRecords()

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

Counts and returns the number of records on the page with $pid

Parameters
string$tableTable name
integer$pidPage id
Returns
integer Number of records.
Todo:
Define visibility

Definition at line 1932 of file PageLayoutView.php.

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

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

◆ pages_drawItem()

TYPO3\CMS\Backend\View\PageLayoutView::pages_drawItem (   $row,
  $fieldArr 
)

◆ 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
integer$pidPid to select from
string$qWhereQuery-where clause
string$treeIconsPrefixed icon code.
integer$depthDepth (decreasing)
Returns
array $theRows, but with added rows.
Todo:
Define visibility

Definition at line 1150 of file PageLayoutView.php.

References TYPO3\CMS\Backend\View\PageLayoutView\getDatabase(), TYPO3\CMS\Backend\Utility\IconUtility\skinImg(), 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
Todo:
Define visibility

Definition at line 1948 of file PageLayoutView.php.

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

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

◆ 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 alt_doc.php)
string$newParamsNew element params (Syntax: &edit[...] for alt_doc.php) OBSOLETE
array | NULL$pasteParamsPaste element params (i.e. array(colPos => 1, sys_language_uid => 2))
Returns
string HTML table
Todo:
Define visibility

Definition at line 1258 of file PageLayoutView.php.

References $icons, TYPO3\CMS\Backend\Utility\BackendUtility\editOnClick(), TYPO3\CMS\Backend\View\PageLayoutView\getLanguageService(), and TYPO3\CMS\Backend\Utility\IconUtility\getSpriteIcon().

◆ 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

Definition at line 1299 of file PageLayoutView.php.

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

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

◆ tt_content_drawHeader()

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$rowRecord array
integer$spaceAmount of pixel space above the header. UNUSED
boolean$disableMoveAndNewButtonsIf set the buttons for creating new elements and moving up and down are not shown.
boolean$langModeIf set, we are in language mode and flags will be shown for languages
boolean$dragDropEnabledIf set the move button must be hidden
Returns
string HTML table with the record header.
Todo:
Define visibility

Definition at line 1328 of file PageLayoutView.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\callUserFunction(), TYPO3\CMS\Backend\Utility\BackendUtility\editOnClick(), TYPO3\CMS\Backend\View\PageLayoutView\getBackendUser(), TYPO3\CMS\Backend\View\PageLayoutView\getIcon(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Backend\View\PageLayoutView\getLanguageService(), TYPO3\CMS\Backend\View\PageLayoutView\getPageLayoutController(), TYPO3\CMS\Backend\Utility\IconUtility\getSpriteIcon(), TYPO3\CMS\Backend\Utility\BackendUtility\isRecordLocked(), TYPO3\CMS\Backend\RecordList\AbstractRecordList\languageFlag(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Backend\Utility\BackendUtility\translationCount().

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

◆ tt_content_drawItem()

TYPO3\CMS\Backend\View\PageLayoutView::tt_content_drawItem (   $row,
  $isRTE = FALSE 
)

◆ wordWrapper()

TYPO3\CMS\Backend\View\PageLayoutView::wordWrapper (   $content,
  $max = 50,
  $char = ' -' 
)

Will perform "word-wrapping" on the input string. What it does is to split by space or line break, then find any word longer than $max and if found, a hyphen is inserted. Works well on normal texts, little less well when HTML is involved (since much HTML will have long strings that will be broken).

Parameters
string$contentContent to word-wrap.
integer$maxMax number of chars in a word before it will be wrapped.
string$charCharacter to insert when wrapping.
Returns
string Processed output.
Deprecated:
since 6.2 - will be removed two versions later; use CSS instead (word-break: break-all;)

Definition at line 2024 of file PageLayoutView.php.

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

Member Data Documentation

◆ $activeTables

TYPO3\CMS\Backend\View\PageLayoutView::$activeTables = array()
Todo:
Define visibility

Definition at line 134 of file PageLayoutView.php.

◆ $agePrefixes

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

Definition at line 82 of file PageLayoutView.php.

◆ $clipboard

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

Definition at line 167 of file PageLayoutView.php.

◆ $CType_labels

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

Definition at line 149 of file PageLayoutView.php.

◆ $defLangBinding

TYPO3\CMS\Backend\View\PageLayoutView::$defLangBinding = FALSE
Todo:
Define visibility

Definition at line 101 of file PageLayoutView.php.

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

◆ $descrTable

TYPO3\CMS\Backend\View\PageLayoutView::$descrTable
Todo:
Define visibility

Definition at line 94 of file PageLayoutView.php.

◆ $doEdit

TYPO3\CMS\Backend\View\PageLayoutView::$doEdit = 1
Todo:
Define visibility

Definition at line 76 of file PageLayoutView.php.

◆ $ext_CALC_PERMS

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

Definition at line 179 of file PageLayoutView.php.

◆ $ext_function

TYPO3\CMS\Backend\View\PageLayoutView::$ext_function = 0
Todo:
Define visibility

Definition at line 70 of file PageLayoutView.php.

◆ $externalTables

TYPO3\CMS\Backend\View\PageLayoutView::$externalTables = array()
Todo:
Define visibility

Definition at line 88 of file PageLayoutView.php.

◆ $itemLabels

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

Definition at line 155 of file PageLayoutView.php.

◆ $nextThree

TYPO3\CMS\Backend\View\PageLayoutView::$nextThree = 3
Todo:
Define visibility

Definition at line 46 of file PageLayoutView.php.

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

◆ $option_newWizard

TYPO3\CMS\Backend\View\PageLayoutView::$option_newWizard = 1
Todo:
Define visibility

Definition at line 64 of file PageLayoutView.php.

◆ $option_showBigButtons

TYPO3\CMS\Backend\View\PageLayoutView::$option_showBigButtons = 1
Todo:
Define visibility

Definition at line 58 of file PageLayoutView.php.

◆ $pages_noEditColumns

TYPO3\CMS\Backend\View\PageLayoutView::$pages_noEditColumns = 0
Todo:
Define visibility

Definition at line 52 of file PageLayoutView.php.

◆ $pI_showUser

TYPO3\CMS\Backend\View\PageLayoutView::$pI_showUser = 0
Todo:
Define visibility

Definition at line 40 of file PageLayoutView.php.

◆ $plusPages

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

Definition at line 172 of file PageLayoutView.php.

◆ $rteSetup

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

Definition at line 162 of file PageLayoutView.php.

◆ $tt_contentConfig

TYPO3\CMS\Backend\View\PageLayoutView::$tt_contentConfig
Initial value:
= array(
'showInfo' => 1,
'showCommands' => 1,
'single' => 1,
'showAsGrid' => 0,
'showSingleCol' => 0,
'languageCols' => 0,
'languageMode' => 0,
'languageColsPointer' => 0,
'showHidden' => 1,
'sys_language_uid' => 0,
'cols' => '1,0,2,3',
'activeCols' => '1,0,2,3'
)
Todo:
Define visibility

Definition at line 107 of file PageLayoutView.php.

◆ $tt_contentData

TYPO3\CMS\Backend\View\PageLayoutView::$tt_contentData
Initial value:
= array(
'nextThree' => array(),
'prev' => array(),
'next' => array()
)
Todo:
Define visibility

Definition at line 139 of file PageLayoutView.php.