TYPO3
7.6
|
Public Member Functions | |
__construct () | |
getButtons () | |
getDocHeaderButtons (ModuleTemplate $moduleTemplate) | |
renderListRow ($table, $row, $cc, $titleCol, $thumbsCol, $indent=0) | |
renderListHeader ($table, $currentIdList) | |
makeControl ($table, $row) | |
makeClip ($table, $row) | |
makeLocalizationPanel ($table, $row) | |
fieldSelectBox ($table, $formFields=true) | |
linkClipboardHeaderIcon ($string, $table, $cmd, $warning= '') | |
clipNumPane () | |
addSortLink ($code, $field, $table) | |
recPath ($pid) | |
showNewRecLink ($table) | |
makeReturnUrl () | |
setCsvRow ($csvRow) | |
outputCSV ($prefix) | |
addActionToCellGroup (&$cells, $action, $actionKey) | |
setIsEditable ($isEditable) | |
isEditable ($table) | |
Public Member Functions inherited from 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 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 | |
isRowListingConditionFulfilled ($table, $row) | |
getReferenceCount ($tableName, $uid) | |
getPointerForPage ($page) | |
renderListNavigation ($renderPart= 'top') | |
createReferenceHtml ($tableName, $uid) | |
initCSV () | |
addHeaderRowToCSV () | |
addToCSV (array $row=array()) | |
isRecordCurrentBackendUser ($table, $row) | |
overlayEditLockPermissions ($table, $row=array(), $editPermission=true) | |
editLockPermissions () | |
getDatabaseConnection () | |
getModule () | |
getDocumentTemplate () | |
Protected Member Functions inherited from AbstractDatabaseRecordList | |
getSearchFields ($tableName) | |
getBackendUserAuthentication () | |
getDatabaseConnection () | |
Protected Member Functions inherited from AbstractRecordList | |
determineScriptUrl () | |
getThisScript () | |
getTranslateTools () | |
generateReferenceToolTip ($references, $launchViewParameter= '') | |
getLanguageService () | |
getDatabaseConnection () | |
Static Protected Member Functions | |
static | removeControlFieldsFromFieldRow (array $row=array()) |
Protected Attributes | |
$csvLines = array() | |
$referenceCount = array() | |
$editable = true | |
$iconFactory | |
Protected Attributes inherited from AbstractDatabaseRecordList | |
$overrideUrlParameters = array() | |
$tableDisplayOrder = [] | |
Protected Attributes inherited from AbstractRecordList | |
$id = 0 | |
$iconFactory | |
Class for rendering of Web>List module
Definition at line 36 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
__construct | ( | ) |
Constructor
Definition at line 204 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
References GeneralUtility\makeInstance().
addActionToCellGroup | ( | & | $cells, |
$action, | |||
$actionKey | |||
) |
add action into correct section
array | $cells | |
string | $action | |
string | $actionKey |
Definition at line 2124 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
|
protected |
Add header line with field names as CSV line
Definition at line 2044 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
addSortLink | ( | $code, | |
$field, | |||
$table | |||
) |
Creates a sort-by link on the input string ($code). It will automatically detect if sorting should be ascending or descending depending on $this->sortRev. Also some fields will not be possible to sort (including if single-table-view is disabled).
string | $code | The string to link (text) |
string | $field | The fieldname represented by the title ($code) |
string | $table | Table name |
Definition at line 1959 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
Referenced by DatabaseRecordList\renderListHeader().
|
protected |
Adds selected columns of one table row as CSV line.
mixed[] | $row Record array, from which the values of fields found in $this->fieldArray will be listed in the CSV output. |
Definition at line 2056 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
Referenced by DatabaseRecordList\renderListRow().
clipNumPane | ( | ) |
Returns TRUE if a numeric clipboard pad is selected/active
Definition at line 1944 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
Referenced by DatabaseRecordList\renderListHeader().
|
protected |
Creates the HTML for a reference count for the record with the UID $uid in the table $tableName.
string | $tableName | |
int | $uid |
Definition at line 1776 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
Referenced by DatabaseRecordList\renderListRow().
|
protected |
Check whether or not the current backend user is an admin or the current page is locked by editlock.
Definition at line 2201 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
Referenced by DatabaseRecordList\getButtons(), and DatabaseRecordList\getDocHeaderButtons().
fieldSelectBox | ( | $table, | |
$formFields = true |
|||
) |
Creates a checkbox list for selecting fields to display from a table:
string | $table | Table name |
bool | $formFields | If TRUE, form-fields will be wrapped around the table. |
Definition at line 1852 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
getButtons | ( | ) |
Create the panel of buttons for submitting the form or otherwise perform operations.
Definition at line 216 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
References $lang, $url, BackendUtility\BEgetRootLine(), Permission\CONTENT_EDIT, BackendUtility\cshItem(), DatabaseRecordList\editLockPermissions(), BackendUtility\editOnClick(), elseif, RecordList\getBackendUserAuthentication(), DatabaseRecordList\getButtons(), DatabaseRecordList\getDocumentTemplate(), RecordList\getLanguageService(), DatabaseRecordList\getModule(), ExtensionManagementUtility\isLoaded(), GeneralUtility\linkThisUrl(), AbstractDatabaseRecordList\listURL(), Permission\PAGE_EDIT, Permission\PAGE_NEW, GeneralUtility\quoteJSvalue(), Icon\SIZE_SMALL, GeneralUtility\trimExplode(), and BackendUtility\viewOnClick().
Referenced by DatabaseRecordList\getButtons().
|
protected |
Definition at line 2209 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
Referenced by DatabaseRecordList\getReferenceCount().
getDocHeaderButtons | ( | ModuleTemplate | $moduleTemplate | ) |
Create the panel of buttons for submitting the form or otherwise perform operations.
ModuleTemplate | $moduleTemplate |
Definition at line 342 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
References $lang, $url, BackendUtility\BEgetRootLine(), ButtonBar\BUTTON_POSITION_LEFT, ButtonBar\BUTTON_POSITION_RIGHT, Permission\CONTENT_EDIT, DatabaseRecordList\editLockPermissions(), BackendUtility\editOnClick(), elseif, RecordList\getBackendUserAuthentication(), DatabaseRecordList\getDocHeaderButtons(), ModuleTemplate\getDocHeaderComponent(), RecordList\getLanguageService(), DatabaseRecordList\getModule(), ExtensionManagementUtility\isLoaded(), GeneralUtility\linkThisUrl(), AbstractDatabaseRecordList\listURL(), Permission\PAGE_EDIT, Permission\PAGE_NEW, GeneralUtility\quoteJSvalue(), Icon\SIZE_SMALL, GeneralUtility\trimExplode(), and BackendUtility\viewOnClick().
Referenced by DatabaseRecordList\getDocHeaderButtons().
|
protected |
Definition at line 2225 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
Referenced by DatabaseRecordList\getButtons().
|
protected |
Definition at line 2217 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
Referenced by DatabaseRecordList\getButtons(), DatabaseRecordList\getDocHeaderButtons(), DatabaseRecordList\renderListHeader(), and DatabaseRecordList\renderListRow().
|
protected |
Get pointer for first element on the page
int | $page | Page number starting with 1 |
Definition at line 1251 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
|
protected |
Gets the number of records referencing the record with the UID $uid in the table $tableName.
string | $tableName | |
int | $uid |
Definition at line 1004 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
References DatabaseRecordList\getDatabaseConnection(), and DatabaseRecordList\getReferenceCount().
Referenced by DatabaseRecordList\getReferenceCount().
|
protected |
Initializes internal csvLines array with the header of field names
Definition at line 2034 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
isEditable | ( | $table | ) |
Check if the table is readonly or editable
string | $table |
Definition at line 2164 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
Referenced by DatabaseRecordList\renderListHeader().
|
protected |
Check if the record represents the current backend user
string | $table | |
array | $row |
Definition at line 2146 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
|
protected |
Check if all row listing conditions are fulfilled.
This function serves as a dummy method to be overriden in extending classes.
string | $table | Table name |
string[] | $row Record |
Definition at line 844 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
References DatabaseRecordList\isRowListingConditionFulfilled().
Referenced by DatabaseRecordList\isRowListingConditionFulfilled().
linkClipboardHeaderIcon | ( | $string, | |
$table, | |||
$cmd, | |||
$warning = '' |
|||
) |
Creates a link around $string. The link contains an onclick action which submits the script with some clipboard action. Currently, this is used for setting elements / delete elements.
string | $string | The HTML content to link (image/text) |
string | $table | Table name |
string | $cmd | Clipboard command (eg. "setCB" or "delete") |
string | $warning | Warning text, if any ("delete" uses this for confirmation) |
Definition at line 1929 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
Referenced by DatabaseRecordList\renderListHeader().
makeClip | ( | $table, | |
$row | |||
) |
Creates the clipboard panel for a single record in the listing.
string | $table | The table |
mixed[] | $row The record for which to make the clipboard panel. |
\UnexpectedValueException |
makeClip: Allows to change clip-icons of records in list-module This hook method gets passed the current $cells array as third parameter. This array contains values for the clipboard icons generated for each record in Web>List. Each array entry is accessible by an index-key. The order of the icons is depending on the order of those array entries.
Definition at line 1665 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
References $GLOBALS, and elseif.
Referenced by DatabaseRecordList\renderListRow().
makeControl | ( | $table, | |
$row | |||
) |
Creates the control panel for a single record in the listing.
string | $table | The table |
mixed[] | $row The record for which to make the control panel. |
\UnexpectedValueException |
recStatInfoHooks: Allows to insert HTML before record icons on various places
makeControl: Allows to change control icons of records in list-module This hook method gets passed the current $cells array as third parameter. This array contains values for the icons/actions generated for each record in Web>List. Each array entry is accessible by an index-key. The order of the icons is depending on the order of those array entries.
Definition at line 1371 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
References $GLOBALS.
Referenced by DatabaseRecordList\renderListRow().
makeLocalizationPanel | ( | $table, | |
$row | |||
) |
Creates the localization panel
string | $table | The table |
mixed[] | $row The record for which to make the localization panel. |
Definition at line 1795 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
Referenced by DatabaseRecordList\renderListRow().
makeReturnUrl | ( | ) |
Creates the "&returnUrl" parameter for links - this is used when the script links to other scripts and passes its own URL with the link so other scripts can return to the listing again. Uses REQUEST_URI as value.
Definition at line 2019 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
outputCSV | ( | $prefix | ) |
Compiles the internal csvLines array to a csv-string and outputs it to the browser. This function exits!
string | $prefix | Filename prefix: |
Definition at line 2101 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
|
protected |
Check if the current record is locked by editlock. Pages are locked if their editlock flag is set, records are if they are locked themselves or if the page they are on is locked (a page’s editlock is transitive for its content elements).
string | $table | |
array | $row | |
bool | $editPermission |
Definition at line 2179 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
Referenced by DatabaseRecordList\renderListHeader().
recPath | ( | $pid | ) |
Returns the path for a certain pid The result is cached internally for the session, thus you can call this function as much as you like without performance problems.
int | $pid | The page id for which to get the path |
Definition at line 1987 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
Referenced by DatabaseRecordList\renderListRow().
|
staticprotected |
Remove control fields from row for CSV export
mixed[] | $row fieldNames => fieldValues |
Definition at line 2069 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
renderListHeader | ( | $table, | |
$currentIdList | |||
) |
Rendering the header row for a table
string | $table | Table name |
int[] | $currentIdList Array of the currently displayed uids of the table |
\UnexpectedValueException |
renderListHeaderActions: Allows to change the clipboard icons of the Web>List table headers Above each listed table in Web>List a header row is shown. This hook allows to modify the icons responsible for the clipboard functions (shown above the clipboard checkboxes when a clipboard other than "Normal" is selected), or other "Action" functions which perform operations on the listed records.
renderListHeader: Allows to change the contents of columns/cells of the Web>List table headers Above each listed table in Web>List a header row is shown. Containing the labels of all shown fields and additional icons to create new records for this table or perform special clipboard tasks like mark and copy all listed records to clipboard, etc.
Definition at line 1026 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
References $GLOBALS, RecordList\$id, $lang, RecordList\$table, DatabaseRecordList\addSortLink(), DatabaseRecordList\clipNumPane(), BackendUtility\editOnClick(), elseif, GeneralUtility\getIndpEnv(), BackendUtility\getItemLabel(), RecordList\getLanguageService(), BackendUtility\getModTSconfig(), DatabaseRecordList\getModule(), DatabaseRecordList\isEditable(), DatabaseRecordList\linkClipboardHeaderIcon(), AbstractDatabaseRecordList\listURL(), DatabaseRecordList\overlayEditLockPermissions(), GeneralUtility\quoteJSvalue(), DatabaseRecordList\renderListHeader(), DatabaseRecordList\showNewRecLink(), and Icon\SIZE_SMALL.
Referenced by DatabaseRecordList\renderListHeader().
|
protected |
Creates a page browser for tables with many records
string | $renderPart | Distinguish between 'top' and 'bottom' part of the navigation (above or below the records) |
Definition at line 1262 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
renderListRow | ( | $table, | |
$row, | |||
$cc, | |||
$titleCol, | |||
$thumbsCol, | |||
$indent = 0 |
|||
) |
Rendering a single row for the list
string | $table | Table name |
mixed[] | $row Current record | |
int | $cc | Counter, counting for each time an element is rendered (used for alternating colors) |
string | $titleCol | Table field (column) where header value is found |
string | $thumbsCol | Table field (column) where (possible) thumbnails can be found |
int | $indent | Indent from left. |
Definition at line 862 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
References $GLOBALS, RecordList\$id, RecordList\$table, AbstractRecordList\addElement(), DatabaseRecordList\addToCSV(), DatabaseRecordList\createReferenceHtml(), elseif, DatabaseRecordList\getModule(), BackendUtility\getProcessedValueExtra(), BackendUtility\getRecordTitle(), BackendUtility\getRecordToolTip(), BackendUtility\isRecordLocked(), AbstractDatabaseRecordList\linkUrlMail(), AbstractDatabaseRecordList\linkWrapItems(), DatabaseRecordList\makeClip(), DatabaseRecordList\makeControl(), DatabaseRecordList\makeLocalizationPanel(), GeneralUtility\quoteJSvalue(), DatabaseRecordList\recPath(), DatabaseRecordList\renderListRow(), Icon\SIZE_SMALL, AbstractDatabaseRecordList\thumbCode(), and BackendUtility\wrapClickMenuOnIcon().
Referenced by DatabaseRecordList\renderListRow().
setCsvRow | ( | $csvRow | ) |
Adds input row of values to the internal csvLines array as a CSV formatted line
mixed[] | $csvRow Array with values to be listed. |
Definition at line 2089 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
setIsEditable | ( | $isEditable | ) |
bool | $isEditable |
Definition at line 2154 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
showNewRecLink | ( | $table | ) |
Returns TRUE if a link for creating new records should be displayed for $table
string | $table | Table name |
Definition at line 2002 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
Referenced by DatabaseRecordList\renderListHeader().
$allowedNewTables = array() |
Definition at line 48 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$CBnames = array() |
Definition at line 153 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$clickMenuEnabled = true |
Definition at line 93 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$clipObj |
Definition at line 146 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
|
protected |
Definition at line 132 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$csvOutput = false |
Definition at line 139 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$deniedNewTables = array() |
Definition at line 56 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$disableSingleTableView = false |
Definition at line 114 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$dontShowClipControlPanels = false |
Definition at line 72 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
|
protected |
Definition at line 194 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
|
protected |
Definition at line 199 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$MOD_MENU |
Definition at line 187 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$newWizards = false |
Definition at line 65 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$noControlPanels = false |
Definition at line 86 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$pageinfo |
Definition at line 180 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$pageRow = array() |
Definition at line 125 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
|
protected |
Definition at line 160 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$selFieldList |
Definition at line 175 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$showClipboard = false |
Definition at line 79 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$spaceIcon |
Definition at line 107 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$totalRowCount |
Definition at line 100 of file recordlist/Classes/RecordList/DatabaseRecordList.php.
$translations |
Definition at line 167 of file recordlist/Classes/RecordList/DatabaseRecordList.php.