TYPO3
7.6
|
Public Member Functions | |
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 AbstractRecordList | |
__construct () | |
addElement ($h, $icon, $data, $rowParams= '', $_= '', $_2= '', $colType= 'td') | |
writeTop () | |
fwd_rwd_nav ($table= '') | |
fwd_rwd_HTML ($type, $pointer, $table= '') | |
listURL ($altId= '') | |
CBfunctions () | |
initializeLanguages () | |
languageFlag ($sys_language_uid, $addAsAdditionalText=true) | |
Protected Member Functions | |
getSearchFields ($tableName) | |
getBackendUserAuthentication () | |
getDatabaseConnection () | |
Protected Member Functions inherited from AbstractRecordList | |
determineScriptUrl () | |
getThisScript () | |
getTranslateTools () | |
generateReferenceToolTip ($references, $launchViewParameter= '') | |
getLanguageService () | |
getDatabaseConnection () | |
Protected Attributes | |
$overrideUrlParameters = array() | |
$tableDisplayOrder = [] | |
Protected Attributes inherited from AbstractRecordList | |
$id = 0 | |
$iconFactory | |
Child class for rendering of Web > List (not the final class) Shared between Web>List and Web>Page
Definition at line 36 of file AbstractDatabaseRecordList.php.
generateList | ( | ) |
Traverses the table(s) to be listed and renders the output code for each: The HTML is accumulated in $this->HTMLcode Finishes off with a stopper-gif
Definition at line 430 of file AbstractDatabaseRecordList.php.
References $GLOBALS, RecordList\$showLimit, BackendUtility\deleteClause(), AbstractDatabaseRecordList\generateList(), RecordList\getBackendUserAuthentication(), AbstractDatabaseRecordList\getDatabaseConnection(), BackendUtility\getRecordWSOL(), AbstractDatabaseRecordList\getTable(), GeneralUtility\inList(), AbstractDatabaseRecordList\makeFieldList(), GeneralUtility\makeInstance(), GeneralUtility\trimExplode(), and BackendUtility\versioningPlaceholderClause().
Referenced by AbstractDatabaseRecordList\generateList().
|
protected |
Definition at line 1130 of file AbstractDatabaseRecordList.php.
|
protected |
Definition at line 1138 of file AbstractDatabaseRecordList.php.
Referenced by AbstractDatabaseRecordList\generateList(), AbstractDatabaseRecordList\makeQueryArray(), AbstractDatabaseRecordList\makeSearchString(), AbstractDatabaseRecordList\setTotalItems(), and AbstractDatabaseRecordList\start().
|
protected |
Fetches a list of fields to use in the Backend search for the given table.
string | $tableName |
Definition at line 780 of file AbstractDatabaseRecordList.php.
References AbstractRecordList\$fieldArray, $GLOBALS, GeneralUtility\callUserFunction(), AbstractDatabaseRecordList\getSearchFields(), and GeneralUtility\trimExplode().
Referenced by AbstractDatabaseRecordList\getSearchFields(), and AbstractDatabaseRecordList\makeSearchString().
getTable | ( | $tableName, | |
$id, | |||
$fields = '' |
|||
) |
To be implemented in extending classes.
string | $tableName | |
int | $id | |
string | $fields | List of fields to show in the listing. Pseudo fields will be added including the record header. |
Definition at line 528 of file AbstractDatabaseRecordList.php.
References AbstractDatabaseRecordList\getTable().
Referenced by AbstractDatabaseRecordList\generateList(), and AbstractDatabaseRecordList\getTable().
linkUrlMail | ( | $code, | |
$testString | |||
) |
Wrapping input code in link to URL or email if $testString is either.
string | $code | code to wrap |
string | $testString | String which is tested for being a URL or email and which will be used for the link if so. |
Definition at line 890 of file AbstractDatabaseRecordList.php.
Referenced by DatabaseRecordList\renderListRow().
linkWrapItems | ( | $table, | |
$uid, | |||
$code, | |||
$row | |||
) |
Returns the title (based on $code) of a record (from table $table) with the proper link around (that is for 'pages'-records a link to the level of that record...)
string | $table | Table name |
int | $uid | Item uid |
string | $code | Item title (not htmlspecialchars()'ed yet) |
mixed[] | $row Item row |
Definition at line 829 of file AbstractDatabaseRecordList.php.
References $lang, RecordList\$table, Permission\CONTENT_EDIT, BackendUtility\editOnClick(), GeneralUtility\fixed_lgd_cs(), RecordList\getBackendUserAuthentication(), RecordList\getLanguageService(), BackendUtility\getRecord(), BackendUtility\getRecordTitle(), AbstractDatabaseRecordList\linkWrapItems(), Permission\PAGE_EDIT, and BackendUtility\viewOnClick().
Referenced by AbstractDatabaseRecordList\linkWrapItems(), and DatabaseRecordList\renderListRow().
linkWrapTable | ( | $table, | |
$code | |||
) |
Returns the title (based on $code) of a table ($table) with the proper link around. For headers over tables. The link will cause the display of all extended mode or not for the table.
string | $table | Table name |
string | $code | Table label |
Definition at line 812 of file AbstractDatabaseRecordList.php.
References RecordList\$table, AbstractDatabaseRecordList\linkWrapTable(), and AbstractDatabaseRecordList\listURL().
Referenced by AbstractDatabaseRecordList\linkWrapTable().
listURL | ( | $altId = '' , |
|
$table = '-1' , |
|||
$exclList = '' |
|||
) |
Creates the URL to this script, including all relevant GPvars Fixed GPvars are id, table, imagemode, returnUrl, search_field, search_levels and showLimit The GPvars "sortField" and "sortRev" are also included UNLESS they are found in the $exclList variable.
string | $altId | Alternative id value. Enter blank string for the current id ($this->id) |
string | $table | Table name to display. Enter "-1" for the current table. |
string | $exclList | Comma separated list of fields NOT to include ("sortField", "sortRev" or "firstElementNumber") |
Definition at line 915 of file AbstractDatabaseRecordList.php.
Referenced by DatabaseRecordList\getButtons(), DatabaseRecordList\getDocHeaderButtons(), AbstractDatabaseRecordList\linkWrapTable(), and DatabaseRecordList\renderListHeader().
localizationRedirect | ( | $justLocalized | ) |
Redirects to FormEngine if a record is just localized.
string | $justLocalized | String with table, orig uid and language separated by ": |
Definition at line 1063 of file AbstractDatabaseRecordList.php.
Referenced by AbstractDatabaseRecordList\start().
makeFieldList | ( | $table, | |
$dontCheckUser = false , |
|||
$addDateFields = false |
|||
) |
Makes the list of fields to select for a table
string | $table | Table name |
bool | $dontCheckUser | If set, users access to the field (non-exclude-fields) is NOT checked. |
bool | $addDateFields | If set, also adds crdate and tstamp fields (note: they will also be added if user is admin or dontCheckUser is set) |
Definition at line 976 of file AbstractDatabaseRecordList.php.
Referenced by AbstractDatabaseRecordList\generateList(), and AbstractDatabaseRecordList\makeQueryArray().
makeQueryArray | ( | $table, | |
$id, | |||
$addWhere = '' , |
|||
$fieldList = '*' |
|||
) |
Returns the SQL-query array to select the records from a table $table with pid = $id
string | $table | Table name |
int | $id | Page id (NOT USED! $this->pidSelect is used instead) |
string | $addWhere | Additional part for where clause |
string | $fieldList | Field list to select, * for all (for "SELECT [fieldlist] FROM ...") |
Definition at line 636 of file AbstractDatabaseRecordList.php.
References $GLOBALS, RecordList\$id, RecordList\$table, BackendUtility\deleteClause(), AbstractDatabaseRecordList\getDatabaseConnection(), GeneralUtility\getUserObj(), AbstractDatabaseRecordList\makeFieldList(), AbstractDatabaseRecordList\makeQueryArray(), AbstractDatabaseRecordList\makeSearchString(), GeneralUtility\trimExplode(), and BackendUtility\versioningPlaceholderClause().
Referenced by PageLayoutView\getContentRecordsPerColumn(), PageLayoutView\makeOrdinaryList(), and AbstractDatabaseRecordList\makeQueryArray().
makeSearchString | ( | $table, | |
$currentPid = -1 |
|||
) |
Creates part of query for searching after a word ($this->searchString) fields in input table.
string | $table | Table, in which the fields are being searched. |
int | $currentPid | Page id for the possible search limit. -1 only if called from an old XCLASS. |
Definition at line 709 of file AbstractDatabaseRecordList.php.
References $GLOBALS, RecordList\$table, MathUtility\canBeInterpretedAsInteger(), elseif, AbstractDatabaseRecordList\getDatabaseConnection(), AbstractDatabaseRecordList\getSearchFields(), GeneralUtility\inList(), and AbstractDatabaseRecordList\makeSearchString().
Referenced by AbstractDatabaseRecordList\makeQueryArray(), and AbstractDatabaseRecordList\makeSearchString().
requestUri | ( | ) |
Returns "requestUri" - which is basically listURL
Definition at line 963 of file AbstractDatabaseRecordList.php.
setDispFields | ( | ) |
Setting the field names to display in extended list. Sets the internal variable $this->setFields
Definition at line 598 of file AbstractDatabaseRecordList.php.
References RecordList\getBackendUserAuthentication(), and AbstractDatabaseRecordList\setDispFields().
Referenced by AbstractDatabaseRecordList\setDispFields().
setOverrideUrlParameters | ( | array | $urlParameters | ) |
Set URL parameters to override or add in the listUrl() method.
string[] | $urlParameters |
Definition at line 1089 of file AbstractDatabaseRecordList.php.
setTableDisplayOrder | ( | array | $orderInformation | ) |
Set table display order information
Structure of $orderInformation: 'tableName' => [ 'before' => // comma-separated string list or array of table names 'after' => // comma-separated string list or array of table names ]
array | $orderInformation |
\UnexpectedValueException |
Definition at line 1106 of file AbstractDatabaseRecordList.php.
setTotalItems | ( | $queryParts | ) |
Based on input query array (query for selecting count(*) from a table) it will select the number of records and set the value in $this->totalItems
string[] | $queryParts Query array |
Definition at line 696 of file AbstractDatabaseRecordList.php.
References AbstractDatabaseRecordList\getDatabaseConnection(), and AbstractDatabaseRecordList\setTotalItems().
Referenced by PageLayoutView\makeOrdinaryList(), and AbstractDatabaseRecordList\setTotalItems().
start | ( | $id, | |
$table, | |||
$pointer, | |||
$search = '' , |
|||
$levels = 0 , |
|||
$showLimit = 0 |
|||
) |
Initializes the list generation
int | $id | Page id for which the list is rendered. Must be >= 0 |
string | $table | Tablename - if extended mode where only one table is listed at a time. |
int | $pointer | Browsing pointer. |
string | $search | Search word, if any |
int | $levels | Number of levels to search down the page tree |
int | $showLimit | Limit of records to be listed. |
Definition at line 346 of file AbstractDatabaseRecordList.php.
References $GLOBALS, RecordList\$id, RecordList\$pointer, RecordList\$returnUrl, AbstractDatabaseRecordList\$searchLevels, RecordList\$showLimit, RecordList\$table, GeneralUtility\_GP(), elseif, MathUtility\forceIntegerInRange(), RecordList\getBackendUserAuthentication(), AbstractDatabaseRecordList\getDatabaseConnection(), AbstractRecordList\initializeLanguages(), AbstractDatabaseRecordList\localizationRedirect(), GeneralUtility\sanitizeLocalUrl(), and AbstractDatabaseRecordList\start().
Referenced by AbstractDatabaseRecordList\start().
thumbCode | ( | $row, | |
$table, | |||
$field | |||
) |
Create thumbnail code for record/field
mixed[] | $row Record array | |
string | $table | Table (record is from) |
string | $field | Field name for which thumbnail are to be rendered. |
Definition at line 622 of file AbstractDatabaseRecordList.php.
References RecordList\$table, and AbstractDatabaseRecordList\thumbCode().
Referenced by PageLayoutView\dataFields(), DatabaseRecordList\renderListRow(), and AbstractDatabaseRecordList\thumbCode().
$allFields = 0 |
Definition at line 86 of file AbstractDatabaseRecordList.php.
$calcPerms = 0 |
Definition at line 199 of file AbstractDatabaseRecordList.php.
$clickTitleMode = '' |
Definition at line 206 of file AbstractDatabaseRecordList.php.
$csvOutput = false |
Definition at line 100 of file AbstractDatabaseRecordList.php.
$currentTable = array() |
Definition at line 304 of file AbstractDatabaseRecordList.php.
$displayFields |
Definition at line 121 of file AbstractDatabaseRecordList.php.
$duplicateField |
Definition at line 128 of file AbstractDatabaseRecordList.php.
$duplicateStack = array() |
Definition at line 311 of file AbstractDatabaseRecordList.php.
$eCounter = 0 |
Definition at line 276 of file AbstractDatabaseRecordList.php.
$firstElementNumber = 0 |
Definition at line 156 of file AbstractDatabaseRecordList.php.
Referenced by PageLayoutView\getTable_pages(), ActionList\listURL(), and PageLayoutView\makeOrdinaryList().
$hideTables = '' |
Definition at line 227 of file AbstractDatabaseRecordList.php.
$hideTranslations = '' |
Definition at line 234 of file AbstractDatabaseRecordList.php.
$HTMLcode = '' |
Definition at line 262 of file AbstractDatabaseRecordList.php.
$id |
Definition at line 135 of file AbstractDatabaseRecordList.php.
Referenced by PageLayoutView\getContentRecordsPerColumn(), PageLayoutView\getExternalTables(), PageLayoutView\getTable(), PageLayoutView\getTable_pages(), PageLayoutView\getTableMenu(), PageLayoutView\languageSelector(), ActionList\listURL(), PageLayoutView\makeOrdinaryList(), and PageLayoutView\newContentElementOnClick().
$iLimit = 0 |
Definition at line 269 of file AbstractDatabaseRecordList.php.
$itemsLimitPerTable = 20 |
Definition at line 65 of file AbstractDatabaseRecordList.php.
$itemsLimitSingleTable = 100 |
Definition at line 72 of file AbstractDatabaseRecordList.php.
$JScode = '' |
Definition at line 255 of file AbstractDatabaseRecordList.php.
$listOnlyInSingleTableMode = false |
Definition at line 149 of file AbstractDatabaseRecordList.php.
$localizationView = false |
Definition at line 93 of file AbstractDatabaseRecordList.php.
$modSharedTSconfig = array() |
Definition at line 213 of file AbstractDatabaseRecordList.php.
Referenced by PageLayoutView\languageSelector().
$modTSconfig |
Definition at line 316 of file AbstractDatabaseRecordList.php.
|
protected |
Definition at line 322 of file AbstractDatabaseRecordList.php.
$pageRecord = array() |
Definition at line 220 of file AbstractDatabaseRecordList.php.
$perms_clause = '' |
Definition at line 192 of file AbstractDatabaseRecordList.php.
$pidSelect = '' |
Definition at line 185 of file AbstractDatabaseRecordList.php.
$recPath_cache = array() |
Definition at line 290 of file AbstractDatabaseRecordList.php.
$returnUrl = '' |
Definition at line 51 of file AbstractDatabaseRecordList.php.
Referenced by ActionList\listURL().
$script = 'index.php' |
Definition at line 79 of file AbstractDatabaseRecordList.php.
$searchLevels = '' |
Definition at line 170 of file AbstractDatabaseRecordList.php.
Referenced by ActionList\listURL(), and AbstractDatabaseRecordList\start().
$searchString = '' |
Definition at line 163 of file AbstractDatabaseRecordList.php.
Referenced by ActionList\listURL().
$setFields = array() |
Definition at line 297 of file AbstractDatabaseRecordList.php.
$showLimit = 0 |
Definition at line 177 of file AbstractDatabaseRecordList.php.
Referenced by ActionList\listURL().
$sortField |
Definition at line 107 of file AbstractDatabaseRecordList.php.
Referenced by ActionList\listURL().
$sortRev |
Definition at line 114 of file AbstractDatabaseRecordList.php.
Referenced by ActionList\listURL().
$table = '' |
Definition at line 142 of file AbstractDatabaseRecordList.php.
Referenced by PageLayoutView\dataFields(), PageLayoutView\generateListForCTypeMenu(), PageLayoutView\getExternalTables(), PageLayoutView\getIcon(), PageLayoutView\getProcessedValue(), PageLayoutView\getResult(), PageLayoutView\getTable(), PageLayoutView\getThumbCodeUnlinked(), PageLayoutView\headerFields(), PageLayoutView\isDisabled(), ElementBrowserRecordList\isRowListingConditionFulfilled(), ElementBrowserRecordList\linkWrapItems(), ActionList\listURL(), PageLayoutView\makeOrdinaryList(), DatabaseRecordList\makeSearchString(), and PageLayoutView\numberOfRecords().
|
protected |
Definition at line 333 of file AbstractDatabaseRecordList.php.
$tableList = '' |
Definition at line 44 of file AbstractDatabaseRecordList.php.
$tablesCollapsed = array() |
Definition at line 248 of file AbstractDatabaseRecordList.php.
$tableTSconfigOverTCA = array() |
Definition at line 241 of file AbstractDatabaseRecordList.php.
$thumbs = 0 |
Definition at line 58 of file AbstractDatabaseRecordList.php.
Referenced by ActionList\listURL().
$totalItems = '' |
Definition at line 283 of file AbstractDatabaseRecordList.php.