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

List of all members.

Public Member Functions

 tableRow ($label, $data, $field)
 procesResources ($resources, $func=false)
 resourceListForCopy ($id, $template_uid)
 initialize_editor ($pageId, $template_uid=0)
 processTemplateRowAfterLoading (array $tplRow)
 processTemplateRowBeforeSaving (array $tplRow)
 main ()

Public Attributes

 $tce_processed = false

Detailed Description

This class displays the Info/Modify screen of the Web > Template module

Author:
Kasper Skårhøj <kasperYYYY@typo3.com>
Id:
class.tx_tstemplateinfo.php 10120 2011-01-18 20:03:36Z ohader

Definition at line 53 of file class.tx_tstemplateinfo.php.


Member Function Documentation

tx_tstemplateinfo::initialize_editor ( pageId,
template_uid = 0 
)

Create an instance of t3lib_tsparser_ext in $GLOBALS['tmpl'] and looks for the first (visible) template record. If $template_uid was given and greater than zero, this record will be checked.

Parameters:
integer$id,:The uid of the current page
integer$template_uid,:The uid of the template record to be rendered (only if more than one template on the current page)
Returns:
boolean Returns true if a template record was found, otherwise false

Definition at line 146 of file class.tx_tstemplateinfo.php.

References t3lib_div\makeInstance(), and processTemplateRowAfterLoading().

Referenced by main().

tx_tstemplateinfo::main ( )
tx_tstemplateinfo::procesResources ( resources,
func = false 
)

Renders HTML table with available template resources/files

Parameters:
string$resources,:List of resources/files to be shown (e.g. 'file_01.txt,file.txt')
boolean$func,:Whether to render functions like 'to top' or 'delete' for each resource (default: false)
Returns:
string HTML table with available template resources/files

Definition at line 80 of file class.tx_tstemplateinfo.php.

References $GLOBALS, t3lib_div\formatSize(), t3lib_iconWorks\getSpriteIcon(), t3lib_div\inList(), t3lib_div\split_fileref(), t3lib_BEfunc\thumbCode(), and t3lib_div\trimExplode().

Referenced by main().

tx_tstemplateinfo::processTemplateRowAfterLoading ( array $  tplRow)

Process template row after loading

Parameters:
array$tplRow,:template row
Returns:
array preprocessed template row
Author:
Fabrizio Branca <typo3@fabrizio-branca.de>

Definition at line 170 of file class.tx_tstemplateinfo.php.

References t3lib_TSparser\checkIncludeLines().

Referenced by initialize_editor().

tx_tstemplateinfo::processTemplateRowBeforeSaving ( array $  tplRow)

Process template row before saving

Parameters:
array$tplRow,:template row
Returns:
array preprocessed template row
Author:
Fabrizio Branca <typo3@fabrizio-branca.de>

Definition at line 187 of file class.tx_tstemplateinfo.php.

References t3lib_TSparser\extractIncludes_array().

Referenced by main().

tx_tstemplateinfo::resourceListForCopy ( id,
template_uid 
)

Renders HTML table with all available template resources/files in the current rootline that could be copied

Parameters:
integer$id,:The uid of the current page
integer$template_uid,:The uid of the template record to be rendered (only if more than one template on the current page)
Returns:
string HTML table with all available template resources/files in the current rootline that could be copied

Definition at line 120 of file class.tx_tstemplateinfo.php.

References $GLOBALS, t3lib_div\formatSize(), t3lib_div\inList(), t3lib_div\makeInstance(), t3lib_BEfunc\thumbCode(), and t3lib_div\trimExplode().

Referenced by main().

tx_tstemplateinfo::tableRow ( label,
data,
field 
)

Creates a row for a HTML table

Parameters:
string$label,:The label to be shown (e.g. 'Title:', 'Sitetitle:')
string$data,:The data/information to be shown (e.g. 'Template for my site')
string$field,:The field/variable to be sent on clicking the edit icon (e.g. 'title', 'sitetitle')
Returns:
string A row for a HTML table

Definition at line 65 of file class.tx_tstemplateinfo.php.

References $GLOBALS, and t3lib_iconWorks\getSpriteIcon().

Referenced by main().


Member Data Documentation

tx_tstemplateinfo::$tce_processed = false

Definition at line 55 of file class.tx_tstemplateinfo.php.


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