TYPO3
7.6
|
Public Member Functions | |
__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) | |
Public Attributes | |
$iLimit = 10 | |
$leftMargin = 0 | |
$showIcon = 1 | |
$no_noWrap = 0 | |
$oddColumnsCssClass = '' | |
$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 | |
determineScriptUrl () | |
getThisScript () | |
getTranslateTools () | |
generateReferenceToolTip ($references, $launchViewParameter= '') | |
getLanguageService () | |
getDatabaseConnection () | |
Protected Attributes | |
$id = 0 | |
$iconFactory | |
Library with a single function addElement that returns table rows based on some input.
Base for class listing of database records and files in the modules Web>List and File>Filelist
Definition at line 36 of file AbstractRecordList.php.
__construct | ( | ) |
Constructor
Definition at line 177 of file AbstractRecordList.php.
References $GLOBALS, AbstractRecordList\determineScriptUrl(), AbstractRecordList\getTranslateTools(), and GeneralUtility\makeInstance().
addElement | ( | $h, | |
$icon, | |||
$data, | |||
$rowParams = '' , |
|||
$_ = '' , |
|||
$_2 = '' , |
|||
$colType = 'td' |
|||
) |
Returns a table-row with the content from the fields in the input data array. OBS: $this->fieldArray MUST be set! (represents the list of fields to display)
int | $h | Is an integer >=0 and denotes how tall an element is. Set to '0' makes a halv line, -1 = full line, set to 1 makes a 'join' and above makes 'line' |
string | $icon | Is the + of the record. If not supplied the first 'join'-icon will be a 'line' instead |
array | $data | Is the dataarray, record with the fields. Notice: These fields are (currently) NOT htmlspecialchar'ed before being wrapped in |
-tags
string | $rowParams | Is insert in the |
-tags. Must carry a ' ' as first character
string | $_ | OBSOLETE - NOT USED ANYMORE. $lMargin is the leftMargin (int) |
string | $_ | OBSOLETE - NOT USED ANYMORE. Is the HTML -tag for an alternative 'gfx/ol/line.gif'-icon (used in the top) |
string | $colType | Defines the tag being used for the columns. Default is td. |
Definition at line 225 of file AbstractRecordList.php.
References AbstractRecordList\$fieldArray.
Referenced by AbstractRecordList\fwd_rwd_nav(), PageLayoutView\getTable_pages(), PageLayoutView\makeOrdinaryList(), PageLayoutView\pages_drawItem(), and DatabaseRecordList\renderListRow().
CBfunctions | ( | ) |
Returning JavaScript for ClipBoard functionality.
Definition at line 386 of file AbstractRecordList.php.
|
protected |
Sets the script url depending on being a module or script request
Definition at line 190 of file AbstractRecordList.php.
References GeneralUtility\_GP(), elseif, GeneralUtility\getIndpEnv(), and GeneralUtility\makeInstance().
Referenced by AbstractRecordList\__construct().
fwd_rwd_HTML | ( | $type, | |
$pointer, | |||
$table = '' |
|||
) |
Creates the button with link to either forward or reverse
string | $type | Type: "fwd" or "rwd |
int | $pointer | Pointer |
string | $table | Table name |
Definition at line 353 of file AbstractRecordList.php.
References AbstractRecordList\$iLimit, AbstractRecordList\listURL(), and Icon\SIZE_SMALL.
Referenced by AbstractRecordList\fwd_rwd_nav().
fwd_rwd_nav | ( | $table = '' | ) |
Creates a forward/reverse button based on the status of ->eCounter, ->firstElementNumber, ->iLimit
string | $table | Table name |
Definition at line 320 of file AbstractRecordList.php.
References AbstractRecordList\addElement(), and AbstractRecordList\fwd_rwd_HTML().
Referenced by PageLayoutView\getTable_pages(), and PageLayoutView\makeOrdinaryList().
|
protected |
Generates HTML code for a Reference tooltip out of sys_refindex records you hand over
int | $references | number of records from sys_refindex table |
string | $launchViewParameter | JavaScript String, which will be passed as parameters to top.launchView |
Definition at line 475 of file AbstractRecordList.php.
References AbstractRecordList\getLanguageService().
|
protected |
Returns the database connection
Definition at line 505 of file AbstractRecordList.php.
References $GLOBALS.
Referenced by AbstractRecordList\initializeLanguages().
|
protected |
Returns the language service
Definition at line 495 of file AbstractRecordList.php.
References $GLOBALS.
Referenced by PageLayoutView\checkIfTranslationsExistInLanguage(), PageLayoutView\dataFields(), AbstractRecordList\generateReferenceToolTip(), PageLayoutView\getTable_pages(), PageLayoutView\getTableMenu(), PageLayoutView\headerFields(), PageLayoutView\languageSelector(), PageLayoutView\linkEditContent(), ElementBrowserRecordList\linkWrapItems(), PageLayoutView\makeOrdinaryList(), PageLayoutView\newLanguageButton(), PageLayoutView\noEditIcon(), PageLayoutView\pages_drawItem(), PageLayoutView\tt_content_drawColHeader(), and PageLayoutView\tt_content_drawHeader().
|
protected |
Definition at line 207 of file AbstractRecordList.php.
Referenced by AbstractRecordList\listURL().
|
protected |
Gets an instance of TranslationConfigurationProvider
Definition at line 459 of file AbstractRecordList.php.
References AbstractRecordList\$translateTools, and GeneralUtility\makeInstance().
Referenced by AbstractRecordList\__construct(), and AbstractRecordList\initializeLanguages().
initializeLanguages | ( | ) |
Initializes page languages and icons
Definition at line 425 of file AbstractRecordList.php.
References BackendUtility\deleteClause(), AbstractRecordList\getDatabaseConnection(), AbstractRecordList\getTranslateTools(), and BackendUtility\versioningPlaceholderClause().
Referenced by AbstractDatabaseRecordList\start().
languageFlag | ( | $sys_language_uid, | |
$addAsAdditionalText = true |
|||
) |
Return the icon for the language
int | $sys_language_uid | Sys language uid |
bool | $addAsAdditionalText | If set to true, only the flag is returned |
Definition at line 439 of file AbstractRecordList.php.
References Icon\SIZE_SMALL.
Referenced by PageLayoutView\tt_content_drawHeader().
listURL | ( | $altId = '' | ) |
Creates the URL to this script, including all relevant GPvars
string | $altId | Alternative id value. Enter blank string for the current id ($this->id) |
Definition at line 376 of file AbstractRecordList.php.
References AbstractRecordList\$id, and AbstractRecordList\getThisScript().
Referenced by AbstractRecordList\fwd_rwd_HTML().
writeTop | ( | ) |
Dummy function, used to write the top of a table listing.
Definition at line 310 of file AbstractRecordList.php.
$addElement_tdCssClass = array() |
Definition at line 93 of file AbstractRecordList.php.
$addElement_tdParams = array() |
Definition at line 86 of file AbstractRecordList.php.
$counter = 0 |
Definition at line 122 of file AbstractRecordList.php.
$eCounter = 0 |
Definition at line 141 of file AbstractRecordList.php.
$fieldArray = array() |
Definition at line 79 of file AbstractRecordList.php.
Referenced by AbstractRecordList\addElement(), and AbstractDatabaseRecordList\getSearchFields().
$firstElementNumber = 0 |
Definition at line 136 of file AbstractRecordList.php.
$fixedL = 30 |
Definition at line 101 of file AbstractRecordList.php.
$HTMLcode = '' |
Definition at line 148 of file AbstractRecordList.php.
|
protected |
Definition at line 172 of file AbstractRecordList.php.
|
protected |
Definition at line 41 of file AbstractRecordList.php.
Referenced by AbstractRecordList\listURL().
$iLimit = 10 |
Definition at line 48 of file AbstractRecordList.php.
Referenced by AbstractRecordList\fwd_rwd_HTML().
$languageIconTitles = array() |
Definition at line 162 of file AbstractRecordList.php.
$leftMargin = 0 |
Definition at line 55 of file AbstractRecordList.php.
$no_noWrap = 0 |
Definition at line 65 of file AbstractRecordList.php.
$oddColumnsCssClass = '' |
Definition at line 72 of file AbstractRecordList.php.
$pageOverlays = array() |
Definition at line 155 of file AbstractRecordList.php.
$setLMargin = 1 |
Definition at line 115 of file AbstractRecordList.php.
$showIcon = 1 |
Definition at line 60 of file AbstractRecordList.php.
$thisScript = '' |
Definition at line 108 of file AbstractRecordList.php.
$totalItems = '' |
Definition at line 129 of file AbstractRecordList.php.
$translateTools |
Definition at line 167 of file AbstractRecordList.php.
Referenced by AbstractRecordList\getTranslateTools().