tx_cms_layout Class Reference

Inheritance diagram for tx_cms_layout:

Inheritance graph
[legend]
Collaboration diagram for tx_cms_layout:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 getTable ($table, $id)
 getTable_pages ($id)
 getTable_tt_content ($id)
 getTable_fe_users ($id)
 getTable_sys_note ($id)
 getTable_tt_board ($id)
 getTable_tt_address ($id)
 getTable_tt_links ($id)
 getTable_tt_guest ($id)
 getTable_tt_news ($id)
 getTable_tt_calender ($id)
 getTable_tt_products ($id)
 makeOrdinaryList ($table, $id, $fList, $icon=0, $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)
 tt_content_drawHeader ($row, $space=0, $disableMoveAndNewButtons=FALSE, $langMode=FALSE)
 tt_content_drawItem ($row, $isRTE=FALSE)
 getNonTranslatedTTcontentUids ($defLanguageCount, $id, $lP)
 newLanguageButton ($defLanguageCount, $lP)
 infoGif ($infoArr)
 newContentElementOnClick ($id, $colPos, $sys_language)
 linkEditContent ($str, $row)
 linkRTEbutton ($row)
 languageSelector ($id)
 getResult ($result, $table='tt_content')
 tt_board_getTree ($theRows, $parent, $pid, $qWhere, $treeIcons)
 tt_board_drawItem ($table, $row, $re)
 numberOfRecords ($table, $pid)
 renderText ($input)
 getIcon ($table, $row)
 getProcessedValue ($table, $fieldList, $row, &$info)
 isDisabled ($table, $row)
 wordWrapper ($content, $max=50, $char='-')
 noEditIcon ($label='noEditItems')
 cleanTableNames ()
 isRTEforField ($table, $row, $field)
 getSpecConfForField ($table, $row, $field)
 getPageInfoBox ($rec, $edit=0)
 getTableMenu ($id)
 strip_tags ($content, $fillEmptyContent=false)

Public Attributes

 $stat_select_field = 'page_id'
 $stat_codes = array()
 $pI_showUser = 0
 $pI_showStat = 1
 $nextThree = 3
 $pages_noEditColumns = 0
 $option_showBigButtons = 1
 $option_newWizard = 1
 $ext_function = 0
 $doEdit = 1
 $agePrefixes = ' min| hrs| days| yrs'
 $externalTables = array()
 $descrTable
 $defLangBinding = FALSE
 $tt_contentConfig
 $allowedTableNames = array()
 $activeTables = array()
 $tt_contentData
 $CType_labels = array()
 $itemLabels = array()

Detailed Description

Definition at line 115 of file class.tx_cms_layout.php.


Member Function Documentation

tx_cms_layout::cleanTableNames (  ) 

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

Definition at line 2298 of file class.tx_cms_layout.php.

References $GLOBALS, and $TCA.

Referenced by getTable_pages().

tx_cms_layout::dataFields ( fieldArr,
table,
row,
out = array() 
)

Adds content to all data fields in $out array

Parameters:
array Array of fields to display. Each field name 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.
string Table name
array Record array
array Array to which the data is added
Returns:
array $out array returned after processing.
See also:
makeOrdinaryList()

Definition at line 1232 of file class.tx_cms_layout.php.

References $GLOBALS, $row, recordList::$table, $TCA, t3lib_div::fixed_lgd_cs(), t3lib_BEfunc::getProcessedValue(), isDisabled(), t3lib_div::loadTCA(), nbsp, and recordList::thumbCode().

Referenced by makeOrdinaryList().

tx_cms_layout::getIcon ( table,
row 
)

Creates the icon image tag for record from table and wraps it in a link which will trigger the click menu.

Parameters:
string Table name
array Record array
string Record title (NOT USED)
Returns:
string HTML for the icon

Definition at line 2211 of file class.tx_cms_layout.php.

References $GLOBALS, $row, recordList::$table, t3lib_iconWorks::getIconImage(), and t3lib_BEfunc::getRecordIconAltText().

Referenced by getTable_sys_note(), makeOrdinaryList(), pages_drawItem(), tt_board_drawItem(), and tt_content_drawHeader().

tx_cms_layout::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 Numeric array with uids of tt_content elements in the default language
integer Page pid
integer Sys language UID
Returns:
array Modified $defLanguageCount

Definition at line 1846 of file class.tx_cms_layout.php.

References $GLOBALS, recordList::$id, $row, getResult(), and recordList::makeQueryArray().

Referenced by getTable_tt_content().

tx_cms_layout::getPageInfoBox ( rec,
edit = 0 
)

Creates an info-box for the current page (identified by input record).

Parameters:
array Page record
boolean If set, there will be shown an edit icon, linking to editing of the page properties.
Returns:
string HTML for the box.

Definition at line 2401 of file class.tx_cms_layout.php.

References $GLOBALS, $lines, $res, t3lib_BEfunc::blindUserNames(), t3lib_BEfunc::calcAge(), t3lib_BEfunc::date(), t3lib_BEfunc::datetime(), t3lib_iconWorks::getIconImage(), t3lib_BEfunc::getItemLabel(), t3lib_BEfunc::getProcessedValue(), t3lib_BEfunc::getUserNames(), t3lib_extMgm::isLoaded(), nbsp, and noEditIcon().

tx_cms_layout::getProcessedValue ( table,
fieldList,
row,
&$  info 
)

Creates processed values for all fieldnames in $fieldList based on values from $row array. The result is 'returned' through $info which is passed as a reference

Parameters:
string Table name
string Commalist of fields.
array Record from which to take values for processing.
array Array to which the processed values are added.
Returns:
void

Definition at line 2234 of file class.tx_cms_layout.php.

References $row, recordList::$table, and t3lib_BEfunc::getProcessedValue().

Referenced by getTable_sys_note(), tt_content_drawHeader(), and tt_content_drawItem().

tx_cms_layout::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:
pointer SQL result pointer for select query.
string Table name defaulting to tt_content
Returns:
array The selected rows returned in this array.

Definition at line 2023 of file class.tx_cms_layout.php.

References $GLOBALS, $row, recordList::$table, and t3lib_BEfunc::workspaceOL().

Referenced by getNonTranslatedTTcontentUids(), and getTable_tt_content().

tx_cms_layout::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 Table name
array Record array
string Field name
Returns:
array Spec. conf (if available) private
See also:
isRTEforField()

Definition at line 2364 of file class.tx_cms_layout.php.

References $row, recordList::$table, and t3lib_BEfunc::getTCAtypes().

Referenced by isRTEforField().

tx_cms_layout::getTable ( table,
id 
)

Adds the code of a single table

Parameters:
string Table name
integer Current page id
Returns:
string HTML for listing.

Definition at line 180 of file class.tx_cms_layout.php.

References recordList::$id, recordList::$table, getTable_fe_users(), getTable_pages(), getTable_sys_note(), getTable_tt_address(), getTable_tt_board(), getTable_tt_calender(), getTable_tt_content(), getTable_tt_guest(), getTable_tt_links(), getTable_tt_news(), getTable_tt_products(), t3lib_div::loadTCA(), and makeOrdinaryList().

tx_cms_layout::getTable_fe_users ( id  ) 

Renders Frontend Users from the fe_users table from page id

Parameters:
integer Page id
Returns:
string HTML for the listing

Definition at line 752 of file class.tx_cms_layout.php.

References recordList::$id, and makeOrdinaryList().

Referenced by getTable().

tx_cms_layout::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 Page id
Returns:
string HTML for the listing

Definition at line 240 of file class.tx_cms_layout.php.

References $GLOBALS, recordList::$id, $row, $TCA, cleanTableNames(), t3lib_BEfunc::cshItem(), t3lib_BEfunc::deleteClause(), t3lib_recordList::fwd_rwd_nav(), t3lib_BEfunc::getItemLabel(), nbsp, pages_drawItem(), pages_getTree(), t3lib_BEfunc::versioningPlaceholderClause(), and t3lib_BEfunc::workspaceOL().

Referenced by getTable().

tx_cms_layout::getTable_sys_note ( id  ) 

Renders records from the sys_notes table from page id NOTICE: Requires the sys_note extension to be loaded.

Parameters:
integer Page id
Returns:
string HTML for the listing

Definition at line 777 of file class.tx_cms_layout.php.

References $GLOBALS, recordList::$id, recordList::$perms_clause, $row, $TCA, $val, t3lib_BEfunc::deleteClause(), t3lib_recordList::fwd_rwd_nav(), getIcon(), getProcessedValue(), recordList::getTreeObject(), t3lib_extMgm::isLoaded(), and t3lib_BEfunc::workspaceOL().

Referenced by getTable().

tx_cms_layout::getTable_tt_address ( id  ) 

Renders address records from the tt_address table from page id NOTICE: Requires the tt_address extension to be loaded.

Parameters:
integer Page id
Returns:
string HTML for the listing

Definition at line 956 of file class.tx_cms_layout.php.

References $GLOBALS, recordList::$id, and makeOrdinaryList().

Referenced by getTable().

tx_cms_layout::getTable_tt_board ( id  ) 

Renders records from the tt_board table from page id NOTICE: Requires the tt_board extension to be loaded.

Parameters:
integer Page id
Returns:
string HTML for the listing

Definition at line 872 of file class.tx_cms_layout.php.

References $GLOBALS, recordList::$id, $row, t3lib_BEfunc::deleteClause(), t3lib_recordList::fwd_rwd_nav(), recordList::makeQueryArray(), recordList::setTotalItems(), tt_board_drawItem(), tt_board_getTree(), and t3lib_BEfunc::workspaceOL().

Referenced by getTable().

tx_cms_layout::getTable_tt_calender ( id  ) 

Renders calender elements link records from the tt_calender table from page id NOTICE: Requires the tt_calender extension to be loaded.

Parameters:
integer Page id
Returns:
string HTML for the listing

Definition at line 1048 of file class.tx_cms_layout.php.

References $GLOBALS, recordList::$id, and makeOrdinaryList().

Referenced by getTable().

tx_cms_layout::getTable_tt_content ( id  ) 

Renders Content Elements from the tt_content table from page id

Parameters:
integer Page id
Returns:
string HTML for the listing

Definition at line 378 of file class.tx_cms_layout.php.

References $content, t3lib_recordList::$counter, $defLangBinding, $GLOBALS, recordList::$id, $key, $row, $TCA, $val, t3lib_BEfunc::BEenableFields(), t3lib_BEfunc::cshItem(), t3lib_BEfunc::editOnClick(), t3lib_div::fixed_lgd_cs(), t3lib_iconWorks::getIconImage(), t3lib_div::getIndpEnv(), getNonTranslatedTTcontentUids(), t3lib_BEfunc::getProcessedValue(), t3lib_BEfunc::getRecordsByField(), t3lib_BEfunc::getRecordTitle(), t3lib_BEfunc::getRecordWSOL(), getResult(), t3lib_recordList::initializeLanguages(), isRTEforField(), languageSelector(), recordList::makeQueryArray(), nbsp, newContentElementOnClick(), tt_content_drawColHeader(), tt_content_drawHeader(), tt_content_drawItem(), and t3lib_BEfunc::workspaceOL().

Referenced by getTable().

tx_cms_layout::getTable_tt_guest ( id  ) 

Renders link records from the tt_links table from page id NOTICE: Requires the tt_links extension to be loaded.

Parameters:
integer Page id
Returns:
string HTML for the listing

Definition at line 1012 of file class.tx_cms_layout.php.

References recordList::$id, and makeOrdinaryList().

Referenced by getTable().

tx_cms_layout::getTable_tt_links ( id  ) 

Renders link records from the tt_links table from page id NOTICE: Requires the tt_links extension to be loaded.

Parameters:
integer Page id
Returns:
string HTML for the listing

Definition at line 986 of file class.tx_cms_layout.php.

References $GLOBALS, recordList::$id, and makeOrdinaryList().

Referenced by getTable().

tx_cms_layout::getTable_tt_news ( id  ) 

Renders news items from the tt_news table from page id NOTICE: Requires the tt_news extension to be loaded.

Parameters:
integer Page id
Returns:
string HTML for the listing

Definition at line 1027 of file class.tx_cms_layout.php.

References recordList::$id, and makeOrdinaryList().

Referenced by getTable().

tx_cms_layout::getTable_tt_products ( id  ) 

Renders shopping elements from the tt_products table from page id NOTICE: Requires the tt_products extension to be loaded.

Parameters:
integer Page id
Returns:
string HTML for the listing

Definition at line 1098 of file class.tx_cms_layout.php.

References $GLOBALS, recordList::$id, and makeOrdinaryList().

Referenced by getTable().

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

Definition at line 2570 of file class.tx_cms_layout.php.

References $GLOBALS, recordList::$id, $TCA, t3lib_BEfunc::deleteClause(), t3lib_iconWorks::getIconImage(), t3lib_div::inList(), t3lib_extMgm::isLoaded(), nbsp, and t3lib_BEfunc::versioningPlaceholderClause().

tx_cms_layout::headerFields ( fieldArr,
table,
out = array() 
)

Header fields made for the listing of records

Parameters:
array Field names
string The table name
array Array to which the headers are added.
Returns:
array $out returned after addition of the header fields.
See also:
makeOrdinaryList()

Definition at line 1283 of file class.tx_cms_layout.php.

References $GLOBALS, recordList::$table, $TCA, t3lib_div::loadTCA(), and nbsp.

Referenced by makeOrdinaryList().

tx_cms_layout::infoGif ( infoArr  ) 

Returns an icon, which has its title attribute set to a massive amount of information about the element.

Parameters:
array Array where values are human readable output of field values (not htmlspecialchars()'ed though). The values are imploded by a linebreak.
Returns:
string HTML img tag if applicable.

Definition at line 1897 of file class.tx_cms_layout.php.

Referenced by tt_content_drawItem().

tx_cms_layout::isDisabled ( table,
row 
)

Returns true, if the record given as parameters is NOT visible based on hidden/starttime/endtime (if available)

Parameters:
string Tablename of table to test
array Record row.
Returns:
boolean Returns true, if disabled.

Definition at line 2254 of file class.tx_cms_layout.php.

References $row, recordList::$table, and $TCA.

Referenced by dataFields(), and tt_content_drawItem().

tx_cms_layout::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 Table name
array Record row (needed, if there are RTE dependencies based on other fields in the record)
string Field name
Returns:
boolean Returns true if the rich text editor would be enabled/available for the field name specified.

Definition at line 2334 of file class.tx_cms_layout.php.

References $GLOBALS, $row, recordList::$table, t3lib_BEfunc::fixVersioningPid(), t3lib_BEfunc::getPagesTSconfig(), getSpecConfForField(), t3lib_BEfunc::getSpecConfParametersFromArray(), t3lib_BEfunc::getTCAtypeValue(), t3lib_BEfunc::getTSCpid(), and t3lib_BEfunc::RTEsetup().

Referenced by getTable_tt_content().

tx_cms_layout::languageSelector ( id  ) 

Make selector box for creating new translation in a language Displays only languages which are not yet present for the current page.

Parameters:
integer Page 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()

Definition at line 1970 of file class.tx_cms_layout.php.

References $GLOBALS, recordList::$id, $key, $res, $row, $value, and t3lib_div::getIndpEnv().

Referenced by getTable_tt_content().

tx_cms_layout::linkEditContent ( str,
row 
)

Will create a link on the input string and possible 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 String to link. Must be prepared for HTML output.
array The 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()

Definition at line 1931 of file class.tx_cms_layout.php.

References $row, and t3lib_BEfunc::editOnClick().

Referenced by tt_content_drawItem().

tx_cms_layout::linkRTEbutton ( row  ) 

Adds a button to edit the row in RTE wizard

Parameters:
array The row of tt_content element
Returns:
string Button to click if you want to edit in RTE wizard.

Definition at line 1949 of file class.tx_cms_layout.php.

References $GLOBALS, $row, t3lib_div::implodeArrayForUrl(), and t3lib_div::linkThisScript().

Referenced by tt_content_drawItem().

tx_cms_layout::makeOrdinaryList ( table,
id,
fList,
icon = 0,
addWhere = '' 
)

Creates a standard list of elements from a table.

Parameters:
string Table name
integer Page id.
string Comma list of fields to display
boolean If true, icon is shown
string Additional WHERE-clauses.
Returns:
string HTML table

Definition at line 1144 of file class.tx_cms_layout.php.

References $GLOBALS, recordList::$id, $row, recordList::$table, $TCA, dataFields(), t3lib_recordList::fwd_rwd_nav(), getIcon(), headerFields(), recordList::makeQueryArray(), noEditIcon(), recordList::setTotalItems(), and t3lib_BEfunc::workspaceOL().

Referenced by getTable(), getTable_fe_users(), getTable_tt_address(), getTable_tt_calender(), getTable_tt_guest(), getTable_tt_links(), getTable_tt_news(), and getTable_tt_products().

tx_cms_layout::newContentElementOnClick ( id,
colPos,
sys_language 
)

Creates onclick-attribute content for a new content element

Parameters:
integer Page id where to create the element.
integer Preset: Column position value
integer Preset: Sys langauge value
Returns:
string String for onclick attribute.
See also:
getTable_tt_content()

Definition at line 1913 of file class.tx_cms_layout.php.

References recordList::$id, t3lib_BEfunc::editOnClick(), and t3lib_div::getIndpEnv().

Referenced by getTable_tt_content().

tx_cms_layout::newLanguageButton ( defLanguageCount,
lP 
)

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

Parameters:
array Numeric array with uids of tt_content elements in the default language
integer Sys language UID
Returns:
string "Copy languages" button, if available.

Definition at line 1876 of file class.tx_cms_layout.php.

References $GLOBALS.

tx_cms_layout::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 Label key from LOCAL_LANG
Returns:
string IMG tag for icon.

Definition at line 2289 of file class.tx_cms_layout.php.

Referenced by getPageInfoBox(), and makeOrdinaryList().

tx_cms_layout::numberOfRecords ( table,
pid 
)

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

Parameters:
string Table name
integer Page id
Returns:
integer Number of records.

Definition at line 2178 of file class.tx_cms_layout.php.

References $GLOBALS, $pid, $row, recordList::$table, $TCA, t3lib_BEfunc::deleteClause(), and t3lib_BEfunc::versioningPlaceholderClause().

Referenced by pages_drawItem().

tx_cms_layout::pages_drawItem ( row,
fieldArr 
)

Adds a list item for the pages-rendering

Parameters:
array Record array
array Field list
Returns:
string HTML for the item

Definition at line 1360 of file class.tx_cms_layout.php.

References $GLOBALS, $res, $row, $TCA, getIcon(), t3lib_BEfunc::getProcessedValue(), t3lib_extMgm::isLoaded(), nbsp, and numberOfRecords().

Referenced by getTable_pages().

tx_cms_layout::pages_getTree ( theRows,
pid,
qWhere,
treeIcons,
depth 
)

Adds pages-rows to an array, selecting recursively in the page tree.

Parameters:
array Array which will accumulate page rows
integer Pid to select from
string Query-where clause
string Prefixed icon code.
integer Depth (decreasing)
Returns:
array $theRows, but with added rows.

Definition at line 1325 of file class.tx_cms_layout.php.

References $GLOBALS, $pid, $res, $row, and t3lib_BEfunc::workspaceOL().

Referenced by getTable_pages().

tx_cms_layout::renderText ( input  ) 

Processing of larger amounts of text (usually from RTE/bodytext fields) with word wrapping etc.

Parameters:
string Input string
Returns:
string Output string

Definition at line 2197 of file class.tx_cms_layout.php.

References t3lib_div::fixed_lgd_cs(), strip_tags(), and wordWrapper().

Referenced by tt_content_drawItem().

tx_cms_layout::strip_tags ( content,
fillEmptyContent = false 
)

Enhancement for the strip_tags function that provides the feature to fill in empty tags. Example <link email@hostname.com></link> is accepted by TYPO3 but would not displayed in the Backend otherwise.

Parameters:
string Input string
boolean If true, empty tags will be filled with the first attribute of the tag before.
Returns:
string Input string with all HTML and PHP tags stripped

Definition at line 2635 of file class.tx_cms_layout.php.

References $content.

Referenced by renderText().

tx_cms_layout::tt_board_drawItem ( table,
row,
re 
)

Adds an element to the tt_board listing:

Parameters:
string Table name
array The record row
string Reply count, if applicable.
Returns:
string Return content of element (table row)

Definition at line 2131 of file class.tx_cms_layout.php.

References $row, recordList::$table, t3lib_BEfunc::calcAge(), t3lib_BEfunc::datetime(), t3lib_div::fixed_lgd_cs(), getIcon(), and nbsp.

Referenced by getTable_tt_board().

tx_cms_layout::tt_board_getTree ( theRows,
parent,
pid,
qWhere,
treeIcons 
)

Traverses recursively a branch in a message board.

Parameters:
array Array of rows (build up recursively)
integer tt_content parent uid
integer Page id
string Additional query part.
string HTML content to prefix items with (to draw the proper tree-graphics)
Returns:
array $theRows, but with added content

Definition at line 2096 of file class.tx_cms_layout.php.

References $GLOBALS, $pid, $res, $row, and t3lib_iconWorks::skinImg().

Referenced by getTable_tt_board().

tx_cms_layout::tt_content_drawColHeader ( colName,
editParams,
newParams 
)

Draw header for a content element column:

Parameters:
string Column name
string Edit params (Syntax: &edit[...] for alt_doc.php)
string New element params (Syntax: &edit[...] for alt_doc.php)
Returns:
string HTML table

Definition at line 1471 of file class.tx_cms_layout.php.

References $GLOBALS.

Referenced by getTable_tt_content().

tx_cms_layout::tt_content_drawHeader ( row,
space = 0,
disableMoveAndNewButtons = FALSE,
langMode = FALSE 
)

Draw the header for a single tt_content element

Parameters:
array Record array
integer Amount of pixel space above the header.
boolean If set the buttons for creating new elements and moving up and down are not shown.
boolean If set, we are in language mode and flags will be shown for languages
Returns:
string HTML table with the record header.

Definition at line 1523 of file class.tx_cms_layout.php.

References $GLOBALS, $row, $TCA, t3lib_div::callUserFunction(), t3lib_BEfunc::editOnClick(), getIcon(), t3lib_div::getIndpEnv(), getProcessedValue(), t3lib_BEfunc::isRecordLocked(), t3lib_recordList::languageFlag(), t3lib_div::loadTCA(), and nbsp.

Referenced by getTable_tt_content().

tx_cms_layout::tt_content_drawItem ( row,
isRTE = FALSE 
)

Draws the preview content for a content element

Parameters:
string Content element
boolean Set if the RTE link can be created.
Returns:
string HTML

Definition at line 1663 of file class.tx_cms_layout.php.

References $GLOBALS, $row, $TCA, t3lib_div::callUserFunction(), t3lib_BEfunc::date(), t3lib_BEfunc::getItemLabel(), t3lib_BEfunc::getLabelFromItemlist(), getProcessedValue(), infoGif(), isDisabled(), linkEditContent(), linkRTEbutton(), renderText(), and recordList::thumbCode().

Referenced by getTable_tt_content().

tx_cms_layout::wordWrapper ( content,
max = 50,
char = ' -' 
)

Will perform "word-wrapping" on the input string. What it does is to split by space or linebreak, 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 Content to word-wrap.
integer Max number of chars in a word before it will be wrapped.
string Character to insert when wrapping.
Returns:
string Processed output.

Definition at line 2272 of file class.tx_cms_layout.php.

References $content, and $val.

Referenced by renderText().


Member Data Documentation

tx_cms_layout::$activeTables = array()

Definition at line 152 of file class.tx_cms_layout.php.

tx_cms_layout::$agePrefixes = ' min| hrs| days| yrs'

Definition at line 130 of file class.tx_cms_layout.php.

tx_cms_layout::$allowedTableNames = array()

Definition at line 151 of file class.tx_cms_layout.php.

tx_cms_layout::$CType_labels = array()

Definition at line 158 of file class.tx_cms_layout.php.

tx_cms_layout::$defLangBinding = FALSE

Definition at line 133 of file class.tx_cms_layout.php.

Referenced by getTable_tt_content().

tx_cms_layout::$descrTable

Definition at line 132 of file class.tx_cms_layout.php.

tx_cms_layout::$doEdit = 1

Definition at line 129 of file