TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController Class Reference
Inheritance diagram for TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController:
TYPO3\CMS\Backend\Module\AbstractFunctionModule tx_tstemplateinfo

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)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Module\AbstractFunctionModule
 init (&$pObj, $conf)
 
 handleExternalFunctionValue ()
 
 incLocalLang ()
 
 checkExtObj ()
 
 extObjContent ()
 
 modMenu ()
 

Public Attributes

 $tce_processed = FALSE
 
- Public Attributes inherited from TYPO3\CMS\Backend\Module\AbstractFunctionModule
 $pObj
 
 $thisPath = ''
 
 $localLangFile = 'locallang.php'
 
 $extClassConf
 
 $function_key = ''
 

Detailed Description

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

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 25 of file TypoScriptTemplateInformationModuleFunctionController.php.

Member Function Documentation

◆ initialize_editor()

TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::initialize_editor (   $pageId,
  $template_uid = 0 
)

Create an instance of 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$pageIdThe 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
Todo:
Define visibility

Definition at line 136 of file TypoScriptTemplateInformationModuleFunctionController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\processTemplateRowAfterLoading().

Referenced by TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\processTemplateRowBeforeSaving().

◆ procesResources()

TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::procesResources (   $resources,
  $func = FALSE 
)

Renders HTML table with available template resources/files

Parameters
string$resourcesList of resources/files to be shown (e.g. 'file_01.txt,file.txt')
boolean$funcWhether to render functions like 'to top' or 'delete' for each resource (default: FALSE)
Returns
string HTML table with available template resources/files
Todo:
Define visibility

Definition at line 62 of file TypoScriptTemplateInformationModuleFunctionController.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\formatSize(), TYPO3\CMS\Backend\Utility\BackendUtility\getModuleUrl(), TYPO3\CMS\Backend\Utility\IconUtility\getSpriteIcon(), TYPO3\CMS\Core\Utility\GeneralUtility\inList(), TYPO3\CMS\Core\Utility\GeneralUtility\split_fileref(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

◆ processTemplateRowAfterLoading()

TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::processTemplateRowAfterLoading ( array  $tplRow)

Process template row after loading

Parameters
array$tplRowTemplate row
Returns
array Preprocessed template row
Author
Fabrizio Branca typo3.nosp@m.@fab.nosp@m.rizio.nosp@m.-bra.nosp@m.nca.d.nosp@m.e
Todo:
Define visibility

Definition at line 161 of file TypoScriptTemplateInformationModuleFunctionController.php.

References TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\checkIncludeLines().

Referenced by TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\initialize_editor().

◆ processTemplateRowBeforeSaving()

TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::processTemplateRowBeforeSaving ( array  $tplRow)

◆ resourceListForCopy()

TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::resourceListForCopy (   $id,
  $template_uid 
)

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

Parameters
integer$idThe uid of the current page
integer$template_uidThe 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
Todo:
Define visibility

Definition at line 107 of file TypoScriptTemplateInformationModuleFunctionController.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\formatSize(), TYPO3\CMS\Core\Utility\GeneralUtility\inList(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

◆ tableRow()

TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::tableRow (   $label,
  $data,
  $field 
)

Creates a row for a HTML table

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

Definition at line 43 of file TypoScriptTemplateInformationModuleFunctionController.php.

References $GLOBALS, TYPO3\CMS\Backend\Utility\BackendUtility\getModuleUrl(), and TYPO3\CMS\Backend\Utility\IconUtility\getSpriteIcon().

Referenced by TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\processTemplateRowBeforeSaving().

Member Data Documentation

◆ $tce_processed

TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::$tce_processed = FALSE