TYPO3 API  SVNRelease
Public Member Functions | Public Attributes
recordList Class Reference
Inheritance diagram for recordList:
Inheritance graph
[legend]
Collaboration diagram for recordList:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 start ($id, $table, $pointer, $search="", $levels="", $showLimit=0)
 generateList ()
 getSearchBox ($formFields=1)
 showSysNotesForPage ()
 setDispFields ()
 thumbCode ($row, $table, $field)
 makeQueryArray ($table, $id, $addWhere='', $fieldList='*')
 setTotalItems ($queryParts)
 makeSearchString ($table)
 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)

Public Attributes

 $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 = ''
 $tableTSconfigOverTCA = array()
 $tablesCollapsed = array()
 $JScode = ''
 $HTMLcode = ''
 $iLimit = 0
 $eCounter = 0
 $totalItems = ''
 $recPath_cache = array()
 $setFields = array()
 $currentTable = array()
 $duplicateStack = array()
 $modTSconfig

Detailed Description

Definition at line 86 of file class.db_list.inc.


Member Function Documentation

recordList::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

Returns:
void

Reimplemented in TBE_browser_recordList.

Definition at line 240 of file class.db_list.inc.

References $GLOBALS, $TCA, $value, t3lib_BEfunc\getRecordWSOL(), t3lib_div\inList(), t3lib_div\loadTCA(), makeFieldList(), and t3lib_div\trimExplode().

recordList::getSearchBox ( formFields = 1)

Creates the search box

Parameters:
booleanIf true, the search box is wrapped in its own form-tags
Returns:
string HTML for the search box

Definition at line 314 of file class.db_list.inc.

References $content, $GLOBALS, and listURL().

recordList::getTreeObject ( id,
depth,
perms_clause 
)

Creates an instance of t3lib_pageTree which will select a page tree to $depth and return the object. In that object we will find the ids of the tree.

Parameters:
integerPage id.
integerDepth to go down.
stringSelect clause
Returns:
object t3lib_pageTree instance with created list of ids.

Definition at line 815 of file class.db_list.inc.

Referenced by tx_cms_layout\getTable_sys_note(), and start().

recordList::linkUrlMail ( code,
testString 
)

Wrapping input code in link to URL or email if $testString is either.

Parameters:
stringcode to wrap
stringString which is tested for being a URL or email and which will be used for the link if so.
Returns:
string Link-Wrapped $code value, if $testString was URL or email.

Definition at line 676 of file class.db_list.inc.

recordList::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...)

Parameters:
stringTable name
integerItem uid
stringItem title (not htmlspecialchars()'ed yet)
arrayItem row
Returns:
string The item title. Ready for HTML output (is htmlspecialchars()'ed)

Reimplemented in TBE_browser_recordList.

Definition at line 609 of file class.db_list.inc.

References $GLOBALS, $row, $table, $TCA, t3lib_BEfunc\editOnClick(), t3lib_div\fixed_lgd_cs(), t3lib_BEfunc\getRecord(), t3lib_BEfunc\getRecordTitle(), and t3lib_BEfunc\viewOnClick().

recordList::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.

Parameters:
stringTable name
stringTable label
Returns:
string The linked table label

Definition at line 592 of file class.db_list.inc.

References $table, and listURL().

recordList::listURL ( altId = '',
table = -1,
exclList = '' 
)

Creates the URL to this script, including all relevant GPvars Fixed GPvars are id, table, imagemode, returlUrl, search_field, search_levels and showLimit The GPvars "sortField" and "sortRev" are also included UNLESS they are found in the $exclList variable.

Parameters:
stringAlternative id value. Enter blank string for the current id ($this->id)
stringTablename to display. Enter "-1" for the current table.
stringCommalist of fields NOT to include ("sortField" or "sortRev")
Returns:
string URL

Reimplemented in TBE_browser_recordList.

Definition at line 703 of file class.db_list.inc.

Referenced by getSearchBox(), and linkWrapTable().

recordList::localizationRedirect ( justLocalized)

Redirects to TCEforms (alt_doc) if a record is just localized.

Parameters:
stringstring with table, orig uid and language separated by ":"
Returns:
void

Definition at line 833 of file class.db_list.inc.

Referenced by start().

recordList::makeFieldList ( table,
dontCheckUser = 0,
addDateFields = 0 
)

Makes the list of fields to select for a table

Parameters:
stringTable name
booleanIf set, users access to the field (non-exclude-fields) is NOT checked.
booleanIf set, also adds crdate and tstamp fields (note: they will also be added if user is admin or dontCheckUser is set)
Returns:
array Array, where values are fieldnames to include in query

Definition at line 760 of file class.db_list.inc.

Referenced by generateList(), and makeQueryArray().

recordList::makeQueryArray ( table,
id,
addWhere = '',
fieldList = '*' 
)

Returns the SQL-query array to select the records from a table $table with pid = $id

Parameters:
stringTable name
integerPage id (NOT USED! $this->pidSelect is used instead)
stringAdditional part for where clause
stringField list to select, * for all (for "SELECT [fieldlist] FROM ...")
Returns:
array Returns query array

Definition at line 472 of file class.db_list.inc.

References $GLOBALS, $id, $table, $TCA, $TYPO3_CONF_VARS, t3lib_BEfunc\deleteClause(), t3lib_div\getUserObj(), makeFieldList(), makeSearchString(), and t3lib_BEfunc\versioningPlaceholderClause().

Referenced by tx_cms_layout\getNonTranslatedTTcontentUids(), tx_cms_layout\getTable_tt_board(), tx_cms_layout\getTable_tt_content(), and tx_cms_layout\makeOrdinaryList().

recordList::makeSearchString ( table)

Creates part of query for searching after a word ($this->searchString) fields in input table

Parameters:
stringTable, in which the fields are being searched.
Returns:
string Returns part of WHERE-clause for searching, if applicable.

Reimplemented in ux_localRecordList.

Definition at line 553 of file class.db_list.inc.

References $table, $TCA, and t3lib_div\loadTCA().

Referenced by makeQueryArray().

recordList::requestUri ( )

Returns "requestUri" - which is basically listURL

Returns:
string Content of ->listURL()

Definition at line 748 of file class.db_list.inc.

recordList::setDispFields ( )

Setting the field names to display in extended list. Sets the internal variable $this->setFields

Returns:
void

Definition at line 434 of file class.db_list.inc.

References $GLOBALS.

recordList::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

Parameters:
arrayQuery array
Returns:
void
See also:
makeQueryArray()

Definition at line 539 of file class.db_list.inc.

References $GLOBALS.

Referenced by tx_cms_layout\getTable_tt_board(), and tx_cms_layout\makeOrdinaryList().

recordList::showSysNotesForPage ( )

Creates the display of sys_notes for the page. Relies on the "sys_note" extension to be loaded.

Returns:
string HTML for the sys-notes (if any)

Definition at line 357 of file class.db_list.inc.

References $GLOBALS, $row, $TCA, t3lib_BEfunc\deleteClause(), t3lib_iconWorks\getSpriteIconForRecord(), t3lib_extMgm\isLoaded(), t3lib_div\loadTCA(), and t3lib_BEfunc\versioningPlaceholderClause().

recordList::start ( id,
table,
pointer,
search = "",
levels = "",
showLimit = 0 
)

Initializes the list generation

Parameters:
integerPage id for which the list is rendered. Must be >= 0
stringTablename - if extended mode where only one table is listed at a time.
integerBrowsing pointer.
stringSearch word, if any
integerNumber of levels to search down the page tree
integerLimit of records to be listed.
Returns:
void

Definition at line 150 of file class.db_list.inc.

References $GLOBALS, $id, $showLimit, $table, $TCA, t3lib_div\_GP(), getTreeObject(), t3lib_recordList\initializeLanguages(), t3lib_div\intInRange(), localizationRedirect(), t3lib_utility_Http\redirect(), and t3lib_div\sanitizeLocalUrl().

recordList::thumbCode ( row,
table,
field 
)

Create thumbnail code for record/field

Parameters:
arrayRecord array
stringTable (record is from)
stringField name for which thumbsnail are to be rendered.
Returns:
string HTML for thumbnails, if any.

Definition at line 459 of file class.db_list.inc.

References $row, and $table.

Referenced by tx_cms_layout\dataFields(), and tx_cms_layout\tt_content_drawItem().


Member Data Documentation

recordList::$allFields = 0

Definition at line 96 of file class.db_list.inc.

recordList::$calcPerms = 0

Definition at line 116 of file class.db_list.inc.

recordList::$clickTitleMode = ''

Definition at line 117 of file class.db_list.inc.

recordList::$csvOutput = FALSE

Reimplemented in localRecordList.

Definition at line 100 of file class.db_list.inc.

recordList::$currentTable = array()

Definition at line 132 of file class.db_list.inc.

recordList::$displayFields

Definition at line 103 of file class.db_list.inc.

recordList::$duplicateField

Definition at line 104 of file class.db_list.inc.

recordList::$duplicateStack = array()

Reimplemented in localRecordList.

Definition at line 133 of file class.db_list.inc.

recordList::$eCounter = 0

Reimplemented from t3lib_recordList.

Definition at line 128 of file class.db_list.inc.

recordList::$firstElementNumber = 0

Reimplemented from t3lib_recordList.

Definition at line 110 of file class.db_list.inc.

recordList::$hideTables = ''

Definition at line 120 of file class.db_list.inc.

recordList::$HTMLcode = ''

Reimplemented from t3lib_recordList.

Definition at line 126 of file class.db_list.inc.

recordList::$id
recordList::$iLimit = 0

Reimplemented from t3lib_recordList.

Definition at line 127 of file class.db_list.inc.

recordList::$itemsLimitPerTable = 20

Definition at line 92 of file class.db_list.inc.

recordList::$itemsLimitSingleTable = 100

Definition at line 93 of file class.db_list.inc.

recordList::$JScode = ''

Definition at line 125 of file class.db_list.inc.

recordList::$listOnlyInSingleTableMode = FALSE

Definition at line 109 of file class.db_list.inc.

recordList::$localizationView = FALSE

Definition at line 97 of file class.db_list.inc.

recordList::$modSharedTSconfig = array()

Definition at line 118 of file class.db_list.inc.

Referenced by tx_cms_layout\languageSelector().

recordList::$modTSconfig

Definition at line 135 of file class.db_list.inc.

recordList::$pageRecord = array()

Definition at line 119 of file class.db_list.inc.

recordList::$perms_clause = ''

Definition at line 115 of file class.db_list.inc.

Referenced by tx_cms_layout\getTable_sys_note().

recordList::$pidSelect = ''

Definition at line 114 of file class.db_list.inc.

recordList::$recPath_cache = array()

Definition at line 130 of file class.db_list.inc.

recordList::$returnUrl = ''

Definition at line 90 of file class.db_list.inc.

recordList::$script = 'index.php'

Reimplemented from t3lib_recordList.

Definition at line 95 of file class.db_list.inc.

recordList::$searchLevels = ''

Definition at line 112 of file class.db_list.inc.

recordList::$searchString = ''

Definition at line 111 of file class.db_list.inc.

recordList::$setFields = array()

Definition at line 131 of file class.db_list.inc.

recordList::$showLimit = 0

Definition at line 113 of file class.db_list.inc.

Referenced by start().

recordList::$sortField

Definition at line 101 of file class.db_list.inc.

recordList::$sortRev

Definition at line 102 of file class.db_list.inc.

recordList::$table = ''
recordList::$tableList = ''

Definition at line 89 of file class.db_list.inc.

recordList::$tablesCollapsed = array()

Definition at line 122 of file class.db_list.inc.

recordList::$tableTSconfigOverTCA = array()

Definition at line 121 of file class.db_list.inc.

recordList::$thumbs = 0

Definition at line 91 of file class.db_list.inc.

recordList::$totalItems = ''

Reimplemented from t3lib_recordList.

Definition at line 129 of file class.db_list.inc.

recordList::$widthGif = '<img src="clear.gif" width="1" height="4" hspace="160" alt="" />'

Definition at line 94 of file class.db_list.inc.


The documentation for this class was generated from the following file: