TYPO3
7.6
|
Public Member Functions | |
__construct () | |
getPageRenderer () | |
setExtDirectStateProvider () | |
wrapClickMenuOnIcon ($content, $table, $uid=0, $listFr=true, $addParams= '', $enDisItems= '', $returnTagParameters=false) | |
viewPageIcon ($id, $_= '') | |
issueCommand ($params, $redirectUrl= '') | |
getHeader ($table, $row, $path, $noViewPageIcon=false, $tWrap=array('', ''), $enableClickMenu=true) | |
getResourceHeader (\TYPO3\CMS\Core\Resource\ResourceInterface $resource, $tWrap=array('', ''), $enableClickMenu=true) | |
makeShortcutIcon ($gvList, $setList, $modName, $motherModName= '', $classes= '') | |
makeShortcutUrl ($gvList, $setList) | |
formWidth ($size=48, $textarea=false, $styleOverride= '') | |
redirectUrls ($thisLocation= '') | |
formatTime ($tstamp, $type) | |
parseTime () | |
useCompatibilityTag ($useCompatibilityTag=true) | |
startPage ($title) | |
endPage () | |
render ($title, $content) | |
header ($text) | |
section ($label, $text, $nostrtoupper=false, $sH=false, $type=0, $allowHTMLinHeader=false) | |
divider ($dist) | |
spacer ($dist) | |
sectionHeader ($label, $sH=false, $addAttrib= '') | |
sectionBegin () | |
sectionEnd () | |
endPageJS () | |
docBodyTagBegin () | |
docStyle () | |
addStyleSheet ($key, $href, $title= '', $relation= 'stylesheet') | |
addStyleSheetDirectory ($path) | |
insertStylesAndJS ($content) | |
getSkinStylesheetDirectories () | |
generator () | |
xUaCompatible ($content= 'IE=8') | |
icons ($type, $styleAttribValue= '') | |
t3Button ($onClick, $label) | |
dfw ($string) | |
rfw ($string) | |
wrapInCData ($string) | |
wrapScriptTags ($string, $linebreak=true) | |
table ($data, $layout=null) | |
menuTable ($arr1, $arr2=array(), $arr3=array()) | |
funcMenu ($content, $menu) | |
loadJavascriptLib ($lib) | |
getContextMenuCode () | |
getDragDropCode ($table, $additionalJavaScriptCode= '') | |
getTabMenu ($mainParams, $elementName, $currentValue, $menuItems, $script= '', $addparams= '') | |
getTabMenuRaw ($menuItems) | |
getDynamicTabMenu (array $menuItems, $identString, $defaultTabIndex=1, $collapseable=false, $wrapContent=true, $storeLastActiveTab=true) | |
getDynTabMenu ($menuItems, $identString, $toggle=0, $foldout=false, $noWrap=true, $fullWidth=false, $defaultTabIndex=1, $tabBehaviour=1) | |
getDynTabMenuId ($identString) | |
getVersionSelector ($id, $noAction=false) | |
getHtmlTemplate ($filename) | |
setModuleTemplate ($filename) | |
moduleBody ($pageRecord=array(), $buttons=array(), $markerArray=array(), $subpartArray=array()) | |
Public Attributes | |
$form = '' | |
$JScodeLibArray = array() | |
$JScode = '' | |
$extJScode = '' | |
$JScodeArray | |
$postCode = '' | |
$docType = '' | |
$moduleTemplate = '' | |
$scriptID = '' | |
$bodyTagId = '' | |
$bodyTagAdditions = '' | |
$inDocStyles = '' | |
$inDocStylesArray = array() | |
$form_largeComp = 1.33 | |
$endJS = 1 | |
$bgColor = '#F7F3EF' | |
$bgColor2 = '#9BA1A8' | |
$bgColor3 = '#F6F2E6' | |
$bgColor4 = '#D9D5C9' | |
$bgColor5 = '#ABBBB4' | |
$bgColor6 = '#E7DBA8' | |
$hoverColor = '#254D7B' | |
$styleSheetFile = '' | |
$styleSheetFile2 = '' | |
$styleSheetFile_post = '' | |
$backGroundImage = '' | |
$inDocStyles_TBEstyle = '' | |
$parseTimeFlag = false | |
$sectionFlag = 0 | |
$divClass = '' | |
$pageHeaderBlock = '' | |
$endOfPageJsBlock = '' | |
$hasDocheader = true | |
$showFlashMessages = true | |
const | STATUS_ICON_ERROR = 3 |
const | STATUS_ICON_WARNING = 2 |
const | STATUS_ICON_NOTIFICATION = 1 |
const | STATUS_ICON_OK = -1 |
$tableLayout | |
$table_TR = '<tr>' | |
$table_TABLE = '<table border="0" cellspacing="0" cellpadding="0" class="typo3-dblist" id="typo3-tmpltable">' | |
Protected Member Functions | |
initPageRenderer () | |
getDocHeaderButtons ($buttons) | |
getPagePath ($pageRecord) | |
getPageInfo ($pageRecord) | |
getBackendFavicon () | |
Protected Attributes | |
$moduleTemplateFilename = '' | |
$useCompatibilityTag = true | |
$xUaCompatibilityVersion = 'IE=edge' | |
$stylesheetsCore | |
$stylesheetsSkins | |
$jsFiles = array() | |
$jsFilesNoConcatenation = array() | |
$charset = 'utf-8' | |
$pageRenderer = null | |
$pageHeaderFooterTemplateFile = '' | |
$extDirectStateProvider = false | |
$iconFactory | |
$templateService | |
This class contains functions for starting and ending the HTML of backend modules It also contains methods for outputting sections of content. Further there are functions for making icons, links, setting form-field widths etc. Color scheme and stylesheet definitions are also available here. Finally this file includes the language class for TYPO3's backend.
After this file $LANG and $TBE_TEMPLATE are global variables / instances of their respective classes.
Please refer to Inside TYPO3 for a discussion of how to use this API.
Definition at line 41 of file DocumentTemplate.php.
__construct | ( | ) |
Constructor
Definition at line 389 of file DocumentTemplate.php.
References $GLOBALS, DocumentTemplate\$scriptID, GeneralUtility\_GET(), GeneralUtility\deprecationLog(), DocumentTemplate\getSkinStylesheetDirectories(), DocumentTemplate\initPageRenderer(), and GeneralUtility\makeInstance().
addStyleSheet | ( | $key, | |
$href, | |||
$title = '' , |
|||
$relation = 'stylesheet' |
|||
) |
Insert additional style sheet link
string | $key | some key identifying the style sheet |
string | $href | uri to the style sheet file |
string | $title | value for the title attribute of the link element |
string | $relation | value for the rel attribute of the link element |
Definition at line 1145 of file DocumentTemplate.php.
addStyleSheetDirectory | ( | $path | ) |
Add all *.css files of the directory $path to the stylesheets
string | $path | directory to add |
Definition at line 1156 of file DocumentTemplate.php.
References $GLOBALS, GeneralUtility\getFilesInDir(), GeneralUtility\getIndpEnv(), and GeneralUtility\resolveBackPath().
dfw | ( | $string | ) |
Dimmed-fontwrap. Returns the string wrapped in a -tag defining the color to be gray/dimmed
string | $string | Input string |
Definition at line 1313 of file DocumentTemplate.php.
References GeneralUtility\logDeprecatedFunction().
divider | ( | $dist | ) |
Inserts a divider image Ends a section (if open) before inserting the image
int | $dist | The margin-top/-bottom of the ruler. |
Definition at line 984 of file DocumentTemplate.php.
References DocumentTemplate\sectionEnd().
docBodyTagBegin | ( | ) |
Creates the bodyTag. You can add to the bodyTag by $this->bodyTagAdditions
Definition at line 1102 of file DocumentTemplate.php.
Referenced by DocumentTemplate\startPage().
docStyle | ( | ) |
Outputting document style
Definition at line 1112 of file DocumentTemplate.php.
References DocumentTemplate\$inDocStyles.
Referenced by DocumentTemplate\startPage().
endPage | ( | ) |
Returns page end; This includes finishing form, div, body and html tags.
Definition at line 892 of file DocumentTemplate.php.
References GeneralUtility\devLog(), BackendUtility\getUpdateSignalCode(), DocumentTemplate\header(), DocumentTemplate\sectionEnd(), and DocumentTemplate\wrapScriptTags().
Referenced by DocumentTemplate\render().
endPageJS | ( | ) |
If a form-tag is defined in ->form then and end-tag for that <form> element is outputted Further a JavaScript section is outputted which will update the top.busy session-expiry object (unless $this->endJS is set to FALSE)
Definition at line 1090 of file DocumentTemplate.php.
References GeneralUtility\logDeprecatedFunction().
formatTime | ( | $tstamp, | |
$type | |||
) |
Returns a formatted string of $tstamp Uses $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'] and $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] to format date and time
int | $tstamp | UNIX timestamp, seconds since 1970 |
int | $type | How much data to show: $type = 1: hhmm, $type = 10: ddmmmyy |
Definition at line 737 of file DocumentTemplate.php.
References $GLOBALS, and GeneralUtility\logDeprecatedFunction().
formWidth | ( | $size = 48 , |
|
$textarea = false , |
|||
$styleOverride = '' |
|||
) |
Returns <input> attributes to set the width of an text-type input field. For client browsers with no CSS support the cols/size attribute is returned. For CSS compliant browsers (recommended) a ' style="width: ...px;"' is returned.
int | $size | A relative number which multiplied with approx. 10 will lead to the width in pixels |
bool | $textarea | A flag you can set for textareas - DEPRECATED as there is no difference any more between the two |
string | $styleOverride | A string which will be returned as attribute-value for style="" instead of the calculated width (if CSS is enabled) |
Definition at line 700 of file DocumentTemplate.php.
funcMenu | ( | $content, | |
$menu | |||
) |
Returns a one-row/two-celled table with $content and $menu side by side. The table is a 100% width table and each cell is aligned left / right
string | $content | Content cell content (left) |
string | $menu | Menu cell content (right) |
Definition at line 1473 of file DocumentTemplate.php.
generator | ( | ) |
Returns generator meta tag
Definition at line 1234 of file DocumentTemplate.php.
Referenced by DocumentTemplate\startPage().
|
protected |
Retrieves configured favicon for backend (with fallback)
Definition at line 1994 of file DocumentTemplate.php.
References $GLOBALS.
Referenced by DocumentTemplate\startPage().
getContextMenuCode | ( | ) |
Includes the necessary Javascript function for the clickmenu (context sensitive menus) in the document
Definition at line 1501 of file DocumentTemplate.php.
|
protected |
Fill the button lists with the defined HTML
array | $buttons | HTML for all buttons |
Definition at line 1817 of file DocumentTemplate.php.
References $GLOBALS, and GeneralUtility\callUserFunction().
Referenced by DocumentTemplate\moduleBody().
getDragDropCode | ( | $table, | |
$additionalJavaScriptCode = '' |
|||
) |
Includes the necessary javascript file for use on pages which have the drag and drop functionality (legacy folder tree)
string | $table | indicator of which table the drag and drop function should work on (pages or folders) |
string | $additionalJavaScriptCode | adds more code to the additional javascript code |
Definition at line 1515 of file DocumentTemplate.php.
getDynamicTabMenu | ( | array | $menuItems, |
$identString, | |||
$defaultTabIndex = 1 , |
|||
$collapseable = false , |
|||
$wrapContent = true , |
|||
$storeLastActiveTab = true |
|||
) |
Creates a DYNAMIC tab-menu where the tabs or collapseable are rendered with bootstrap markup
array | $menuItems | Numeric array where each entry is an array in itself with associative keys: "label" contains the label for the TAB, "content" contains the HTML content that goes into the div-layer of the tabs content. "description" contains description text to be shown in the layer. "linkTitle" is short text for the title attribute of the tab-menu link (mouse-over text of tab). "stateIcon" indicates a standard status icon (see ->icon(), values: -1, 1, 2, 3). "icon" is an image tag placed before the text. |
string | $identString | Identification string. This should be unique for every instance of a dynamic menu! |
int | $defaultTabIndex | Default tab to open (for toggle <=0). Value corresponds to integer-array index + 1 (index zero is "1", index "1" is 2 etc.). A value of zero (or something non-existing) will result in no default tab open. |
bool | $collapseable | If set, the tabs are rendered as headers instead over each sheet. Effectively this means there is no tab menu, but rather a foldout/foldin menu. |
bool | $wrapContent | If set, the content is wrapped in div structure which provides a padding and border style. Set this FALSE to get unstyled content pane with fullsize content area. |
bool | $storeLastActiveTab | If set, the last open tab is stored in local storage and will be re-open again. If you don't need this feature, e.g. for wizards like import/export you can disable this behaviour. |
Definition at line 1601 of file DocumentTemplate.php.
References $GLOBALS, GeneralUtility\getFileAbsFileName(), GeneralUtility\logDeprecatedFunction(), GeneralUtility\makeInstance(), and GeneralUtility\shortMD5().
Referenced by DocumentTemplate\getDynTabMenu().
getDynTabMenu | ( | $menuItems, | |
$identString, | |||
$toggle = 0 , |
|||
$foldout = false , |
|||
$noWrap = true , |
|||
$fullWidth = false , |
|||
$defaultTabIndex = 1 , |
|||
$tabBehaviour = 1 |
|||
) |
Creates a DYNAMIC tab-menu where the tabs are switched between with DHTML. Should work in MSIE, Mozilla, Opera and Konqueror. On Konqueror I did find a serious problem: <textarea> fields loose their content when you switch tabs!
array | $menuItems | Numeric array where each entry is an array in itself with associative keys: "label" contains the label for the TAB, "content" contains the HTML content that goes into the div-layer of the tabs content. "description" contains description text to be shown in the layer. "linkTitle" is short text for the title attribute of the tab-menu link (mouse-over text of tab). "stateIcon" indicates a standard status icon (see ->icon(), values: -1, 1, 2, 3). "icon" is an image tag placed before the text. |
string | $identString | Identification string. This should be unique for every instance of a dynamic menu! |
int | $toggle | If "1", then enabling one tab does not hide the others - they simply toggles each sheet on/off. This makes most sense together with the $foldout option. If "-1" then it acts normally where only one tab can be active at a time BUT you can click a tab and it will close so you have no active tabs. |
bool | $foldout | If set, the tabs are rendered as headers instead over each sheet. Effectively this means there is no tab menu, but rather a foldout/foldin menu. Make sure to set $toggle as well for this option. |
bool | $noWrap | Deprecated - delivered by CSS |
bool | $fullWidth | If set, the tabs will span the full width of their position |
int | $defaultTabIndex | Default tab to open (for toggle <=0). Value corresponds to integer-array index + 1 (index zero is "1", index "1" is 2 etc.). A value of zero (or something non-existing) will result in no default tab open. |
int | $tabBehaviour | If set to '1' empty tabs will be remove, If set to '2' empty tabs will be disabled. setting this option to '2' is deprecated since TYPO3 CMS 7, and will be removed iwth CMS 8 |
Definition at line 1634 of file DocumentTemplate.php.
References DocumentTemplate\getDynamicTabMenu(), and GeneralUtility\logDeprecatedFunction().
getDynTabMenuId | ( | $identString | ) |
Creates the id for dynTabMenus.
string | $identString | Identification string. This should be unique for every instance of a dynamic menu! |
Definition at line 1647 of file DocumentTemplate.php.
References GeneralUtility\logDeprecatedFunction(), and GeneralUtility\shortMD5().
getHeader | ( | $table, | |
$row, | |||
$path, | |||
$noViewPageIcon = false , |
|||
$tWrap = array('', '') , |
|||
$enableClickMenu = true |
|||
) |
Makes the header (icon+title) for a page (or other record). Used in most modules under Web>* $table and $row must be a tablename/record from that table $path will be shown as alt-text for the icon. The title will be truncated to 45 chars.
string | $table | Table name |
array | $row | Record row |
string | $path | Alt text |
bool | $noViewPageIcon | Set $noViewPageIcon TRUE if you don't want a magnifier-icon for viewing the page in the frontend |
array | $tWrap | is an array with indexes 0 and 1 each representing HTML-tags (start/end) which will wrap the title |
bool | $enableClickMenu | If TRUE, render click menu code around icon image |
Definition at line 580 of file DocumentTemplate.php.
References $GLOBALS, GeneralUtility\fixed_lgd_cs(), BackendUtility\getRecordTitle(), Icon\SIZE_SMALL, DocumentTemplate\viewPageIcon(), and BackendUtility\wrapClickMenuOnIcon().
getHtmlTemplate | ( | $filename | ) |
Function to load a HTML template file with markers. When calling from own extension, use syntax getHtmlTemplate('EXT:extkey/template.html')
string | $filename | tmpl name, usually in the typo3/template/ directory |
Definition at line 1680 of file DocumentTemplate.php.
References $filename, $GLOBALS, elseif, GeneralUtility\getFileAbsFileName(), GeneralUtility\getUrl(), GeneralUtility\isAbsPath(), GeneralUtility\isAllowedAbsPath(), GeneralUtility\isFirstPartOfStr(), and GeneralUtility\resolveBackPath().
Referenced by DocumentTemplate\setModuleTemplate().
|
protected |
Setting page icon with clickmenu + uid for docheader
array | $pageRecord | Current page |
Definition at line 1896 of file DocumentTemplate.php.
References $GLOBALS, BackendUtility\getRecordIconAltText(), BackendUtility\getRecordTitle(), Icon\SIZE_SMALL, and BackendUtility\wrapClickMenuOnIcon().
Referenced by DocumentTemplate\moduleBody().
|
protected |
Generate the page path for docheader
array | $pageRecord | Current page |
Definition at line 1863 of file DocumentTemplate.php.
References $GLOBALS, and GeneralUtility\fixed_lgd_cs().
Referenced by DocumentTemplate\moduleBody().
getPageRenderer | ( | ) |
Gets instance of PageRenderer configured with the current language, file references and debug settings
Definition at line 483 of file DocumentTemplate.php.
References DocumentTemplate\$pageRenderer, DocumentTemplate\initPageRenderer(), and GeneralUtility\logDeprecatedFunction().
getResourceHeader | ( | \TYPO3\CMS\Core\Resource\ResourceInterface | $resource, |
$tWrap = array('', '') , |
|||
$enableClickMenu = true |
|||
) |
Like ->getHeader() but for files and folders Returns the icon with the path of the file/folder set in the alt/title attribute. Shows the name after the icon.
\TYPO3\CMS\Core\Resource\ResourceInterface | $resource | |
array | $tWrap | is an array with indexes 0 and 1 each representing HTML-tags (start/end) which will wrap the title |
bool | $enableClickMenu | If TRUE, render click menu code around icon image |
Definition at line 608 of file DocumentTemplate.php.
References GeneralUtility\fixed_lgd_cs(), Icon\SIZE_SMALL, and BackendUtility\wrapClickMenuOnIcon().
getSkinStylesheetDirectories | ( | ) |
Returns an array of all stylesheet directories belonging to core and skins
Definition at line 1193 of file DocumentTemplate.php.
References $GLOBALS, DocumentTemplate\$stylesheetsSkins, ExtensionManagementUtility\extRelPath(), and ExtensionManagementUtility\isLoaded().
Referenced by DocumentTemplate\__construct().
getTabMenu | ( | $mainParams, | |
$elementName, | |||
$currentValue, | |||
$menuItems, | |||
$script = '' , |
|||
$addparams = '' |
|||
) |
Creates a tab menu from an array definition
Returns a tab menu for a module Requires the JS function jumpToUrl() to be available
mixed | $mainParams | is the "&id=" parameter value to be sent to the module, but it can be also a parameter array which will be passed instead of the &id=... |
string | $elementName | it the form elements name, probably something like "SET[...] |
string | $currentValue | is the value to be selected currently. |
array | $menuItems | is an array with the menu items for the selector box |
string | $script | is the script to send the &id to, if empty it's automatically found |
string | $addparams | is additional parameters to pass to the script. |
Definition at line 1537 of file DocumentTemplate.php.
References DocumentTemplate\getTabMenuRaw(), and GeneralUtility\implodeArrayForUrl().
getTabMenuRaw | ( | $menuItems | ) |
Creates the HTML content for the tab menu
array | $menuItems | Menu items for tabs |
Definition at line 1566 of file DocumentTemplate.php.
References $url.
Referenced by DocumentTemplate\getTabMenu().
getVersionSelector | ( | $id, | |
$noAction = false |
|||
) |
Creates the version selector for the page id inputted. Requires the core version management extension, "version" to be loaded.
int | $id | Page id to create selector for. |
bool | $noAction | If set, there will be no button for swapping page. |
Definition at line 1662 of file DocumentTemplate.php.
References ExtensionManagementUtility\isLoaded(), and GeneralUtility\makeInstance().
header | ( | $text | ) |
Returns the header-bar in the top of most backend modules Closes section if open.
string | $text | The text string for the header |
Definition at line 937 of file DocumentTemplate.php.
References DocumentTemplate\sectionEnd().
Referenced by DocumentTemplate\endPage(), and DocumentTemplate\startPage().
icons | ( | $type, | |
$styleAttribValue = '' |
|||
) |
Returns an image-tag with an 18x16 icon of the following types:
$type: -1: OK icon (Check-mark) 1: Notice (Speach-bubble) 2: Warning (Yellow triangle) 3: Fatal error (Red stop sign)
int | $type | See description |
string | $styleAttribValue | Value for style attribute |
Definition at line 1270 of file DocumentTemplate.php.
References Icon\SIZE_SMALL.
Referenced by DocumentTemplate\section().
|
protected |
Initializes the page renderer object
Definition at line 447 of file DocumentTemplate.php.
References $GLOBALS, and GeneralUtility\makeInstance().
Referenced by DocumentTemplate\__construct(), and DocumentTemplate\getPageRenderer().
insertStylesAndJS | ( | $content | ) |
Insert post rendering document style into already rendered content This is needed for extobjbase
string | $content | style-content to insert. |
Definition at line 1177 of file DocumentTemplate.php.
References DocumentTemplate\wrapScriptTags().
Referenced by DocumentTemplate\render().
issueCommand | ( | $params, | |
$redirectUrl = '' |
|||
) |
Returns a URL with a command to TYPO3 Core Engine (tce_db.php) See description of the API elsewhere.
string | $params | is a set of GET params to send to tce_db.php. Example: "&cmd[tt_content][123][move]=456" or "&data[tt_content][123][hidden]=1&data[tt_content][123][title]=Hello%20World |
string | int | $redirectUrl | Redirect URL, default is to use GeneralUtility::getIndpEnv('REQUEST_URI'), -1 means to generate an URL for JavaScript using T3_THIS_LOCATION |
Definition at line 560 of file DocumentTemplate.php.
References BackendUtility\getLinkToDataHandlerAction(), and GeneralUtility\logDeprecatedFunction().
loadJavascriptLib | ( | $lib | ) |
Includes a javascript library that exists in the core /typo3/ directory
string | $lib,: | Library name. Call it with the full path like "sysext/core/Resources/Public/JavaScript/QueryGenerator.js" to load it |
Definition at line 1490 of file DocumentTemplate.php.
makeShortcutIcon | ( | $gvList, | |
$setList, | |||
$modName, | |||
$motherModName = '' , |
|||
$classes = '' |
|||
) |
Returns a linked shortcut-icon which will call the shortcut frame and set a shortcut there back to the calling page/module
string | $gvList | Is the list of GET variables to store (if any) |
string | $setList | Is the list of SET[] variables to store (if any) - SET[] variables a stored in $GLOBALS["SOBE"]->MOD_SETTINGS for backend modules |
string | $modName | Module name string |
string | int | $motherModName | Is used to enter the "parent module name" if the module is a submodule under eg. Web>* or File>*. You can also set this value to 1 in which case the currentLoadedModule is sent to the shortcut script (so - not a fixed value!) - that is used in file_edit and wizard_rte modules where those are really running as a part of another module. |
string | $classes |
Definition at line 635 of file DocumentTemplate.php.
References $GLOBALS, $url, GeneralUtility\_GET(), elseif, GeneralUtility\getIndpEnv(), DocumentTemplate\makeShortcutUrl(), GeneralUtility\quoteJSvalue(), BackendUtility\shortcutExists(), and Icon\SIZE_SMALL.
makeShortcutUrl | ( | $gvList, | |
$setList | |||
) |
MAKE url for storing Internal func
string | $gvList | Is the list of GET variables to store (if any) |
string | $setList | Is the list of SET[] variables to store (if any) - SET[] variables a stored in $GLOBALS["SOBE"]->MOD_SETTINGS for backend modules |
Definition at line 682 of file DocumentTemplate.php.
References $GLOBALS, GeneralUtility\_GET(), GeneralUtility\compileSelectedGetVarsFromArray(), and GeneralUtility\implodeArrayForUrl().
Referenced by DocumentTemplate\makeShortcutIcon().
menuTable | ( | $arr1, | |
$arr2 = array() , |
|||
$arr3 = array() |
|||
) |
Constructs a table with content from the $arr1, $arr2 and $arr3.
array | $arr1 | Menu elements on first level |
array | $arr2 | Secondary items |
array | $arr3 | Third-level items |
Definition at line 1439 of file DocumentTemplate.php.
References GeneralUtility\logDeprecatedFunction().
moduleBody | ( | $pageRecord = array() , |
|
$buttons = array() , |
|||
$markerArray = array() , |
|||
$subpartArray = array() |
|||
) |
Put together the various elements for the module <body> using a static HTML template
array | $pageRecord | Record of the current page, used for page path and info |
array | $buttons | HTML for all buttons |
array | $markerArray | HTML for all other markers |
array | $subpartArray | HTML for the subparts |
Definition at line 1722 of file DocumentTemplate.php.
References $GLOBALS, GeneralUtility\callUserFunction(), DocumentTemplate\getDocHeaderButtons(), DocumentTemplate\getPageInfo(), and DocumentTemplate\getPagePath().
parseTime | ( | ) |
Returns script parsetime IF ->parseTimeFlag is set and user is "admin" Automatically outputted in page end
-tags
Definition at line 759 of file DocumentTemplate.php.
References $GLOBALS, GeneralUtility\getIndpEnv(), GeneralUtility\logDeprecatedFunction(), and GeneralUtility\milliseconds().
redirectUrls | ( | $thisLocation = '' | ) |
Returns JavaScript variables setting the returnUrl and thisScript location for use by JavaScript on the page. Used in fx. db_list.php (Web>List)
string | $thisLocation | URL to "this location" / current script |
Definition at line 713 of file DocumentTemplate.php.
References GeneralUtility\_GP(), GeneralUtility\linkThisScript(), GeneralUtility\quoteJSvalue(), and GeneralUtility\sanitizeLocalUrl().
render | ( | $title, | |
$content | |||
) |
Shortcut for render the complete page of a module
string | $title | page title |
string | $content | page content |
Definition at line 922 of file DocumentTemplate.php.
References DocumentTemplate\endPage(), DocumentTemplate\insertStylesAndJS(), and DocumentTemplate\startPage().
rfw | ( | $string | ) |
red-fontwrap. Returns the string wrapped in a -tag defining the color to be red
string | $string | Input string |
Definition at line 1326 of file DocumentTemplate.php.
References GeneralUtility\logDeprecatedFunction().
section | ( | $label, | |
$text, | |||
$nostrtoupper = false , |
|||
$sH = false , |
|||
$type = 0 , |
|||
$allowHTMLinHeader = false |
|||
) |
Begins an output section and sets header and content
string | $label | The header |
string | $text | The HTML-content |
bool | $nostrtoupper | A flag that will prevent the header from being converted to uppercase |
bool | $sH | Defines the type of header (if set, "<h3>" rather than the default "h4") |
int | $type | The number of an icon to show with the header (see the icon-function). -1,1,2,3 |
bool | $allowHTMLinHeader | If set, HTML tags are allowed in $label (otherwise this value is by default htmlspecialchars()'ed) |
Definition at line 959 of file DocumentTemplate.php.
References DocumentTemplate\icons(), DocumentTemplate\sectionBegin(), and DocumentTemplate\sectionHeader().
sectionBegin | ( | ) |
Begins an output section. Returns the
Definition at line 1044 of file DocumentTemplate.php.
Referenced by DocumentTemplate\section(), and DocumentTemplate\sectionHeader().
sectionEnd | ( | ) |
Ends and output section Returns the -end tag AND clears the ->sectionFlag (but does so only IF the sectionFlag is set - that is a section is 'open') See sectionBegin() also.
Definition at line 1068 of file DocumentTemplate.php.
Referenced by DocumentTemplate\divider(), DocumentTemplate\endPage(), and DocumentTemplate\header().
sectionHeader | ( | $label, | |
$sH = false , |
|||
$addAttrib = '' |
|||
) |
Make a section header. Begins a section if not already open.
string | $label | The label between the or tags. (Allows HTML) bool $sH If set, is used, otherwise string $addAttrib Additional attributes to h-tag, eg. ' class=""' string HTML content |
Definition at line 1023 of file DocumentTemplate.php.
References DocumentTemplate\sectionBegin().
Referenced by DocumentTemplate\section().
setExtDirectStateProvider | ( | ) |
setModuleTemplate | ( | $filename | ) |
Define the template for the module
string | $filename | filename |
Definition at line 1707 of file DocumentTemplate.php.
References $filename, and DocumentTemplate\getHtmlTemplate().
spacer | ( | $dist | ) |
Returns a blank
int | $dist | Padding-top for the div-section (should be margin-top but konqueror (3.1) doesn't like it :-( |
Definition at line 1002 of file DocumentTemplate.php.
References GeneralUtility\logDeprecatedFunction().
startPage | ( | $title | ) |
Returns page start This includes the proper header with charset, title, meta tag and beginning body-tag.
string | $title | HTML Page title for the header |
Definition at line 793 of file DocumentTemplate.php.
References $GLOBALS, GeneralUtility\callUserFunction(), GeneralUtility\deprecationLog(), DocumentTemplate\docBodyTagBegin(), DocumentTemplate\docStyle(), DocumentTemplate\generator(), DocumentTemplate\getBackendFavicon(), GeneralUtility\getFileAbsFileName(), DocumentTemplate\header(), PageRenderer\PART_FOOTER, PageRenderer\PART_HEADER, DocumentTemplate\useCompatibilityTag(), and DocumentTemplate\xUaCompatible().
Referenced by DocumentTemplate\render().
t3Button | ( | $onClick, | |
$label | |||
) |
Returns an <input> button with the $onClick action and $label
string | $onClick | The value of the onclick attribute of the input tag (submit type) |
string | $label | The label for the button (which will be htmlspecialchar'ed) |
Definition at line 1300 of file DocumentTemplate.php.
table | ( | $data, | |
$layout = null |
|||
) |
Returns a table based on the input $data
array | $data | Multidim array with first levels = rows, second levels = cells |
array | $layout | If set, then this provides an alternative layout array instead of $this->tableLayout |
Definition at line 1394 of file DocumentTemplate.php.
References DocumentTemplate\$tableLayout, and GeneralUtility\logDeprecatedFunction().
useCompatibilityTag | ( | $useCompatibilityTag = true | ) |
Defines whether to use the X-UA-Compatible meta tag.
bool | $useCompatibilityTag | Whether to use the tag |
Definition at line 774 of file DocumentTemplate.php.
References DocumentTemplate\$useCompatibilityTag.
Referenced by DocumentTemplate\startPage().
viewPageIcon | ( | $id, | |
$_ = '' |
|||
) |
Makes link to page $id in frontend (view page) Returns an icon which links to the frontend index.php document for viewing the page with id $id $id must be a page-uid If the BE_USER has access to Web>List then a link to that module is shown as well (with return-url)
int | $id | The page id |
string | $_,\xrefitem | deprecated 63. |
Definition at line 538 of file DocumentTemplate.php.
References $GLOBALS, BackendUtility\BEgetRootLine(), GeneralUtility\getIndpEnv(), Icon\SIZE_SMALL, and BackendUtility\viewOnClick().
Referenced by DocumentTemplate\getHeader().
wrapClickMenuOnIcon | ( | $content, | |
$table, | |||
$uid = 0 , |
|||
$listFr = true , |
|||
$addParams = '' , |
|||
$enDisItems = '' , |
|||
$returnTagParameters = false |
|||
) |
Makes click menu link (context sensitive menu) Returns $str (possibly an <|img> tag/icon) wrapped in a link which will activate the context sensitive menu for the record ($table/$uid) or file ($table = file) The link will load the top frame with the parameter "&item" which is the table,uid and listFr arguments imploded by "|": rawurlencode($table.'|'.$uid.'|'.$listFr)
string | $str | String to be wrapped in link, typ. image tag. |
string | $table | Table name/File path. If the icon is for a database record, enter the tablename from $GLOBALS['TCA']. If a file then enter the absolute filepath |
int | $uid | If icon is for database record this is the UID for the record from $table |
bool | $listFr | Tells the top frame script that the link is coming from a "list" frame which means a frame from within the backend content frame. |
string | $addParams | Additional GET parameters for the link to the ClickMenu AJAX request |
string | $enDisItems | Enable / Disable click menu items. Example: "+new,view" will display ONLY these two items (and any spacers in between), "new,view" will display all BUT these two items. |
bool | $returnTagParameters | If set, will return only the onclick JavaScript, not the whole link. |
Definition at line 522 of file DocumentTemplate.php.
References GeneralUtility\logDeprecatedFunction(), and BackendUtility\wrapClickMenuOnIcon().
wrapInCData | ( | $string | ) |
Returns string wrapped in CDATA "tags" for XML / XHTML (wrap content of <script> and <style> sections in those!)
string | $string | Input string |
Definition at line 1338 of file DocumentTemplate.php.
wrapScriptTags | ( | $string, | |
$linebreak = true |
|||
) |
Wraps the input string in script tags. Automatic re-identing of the JS code is done by using the first line as ident reference. This is nice for identing JS code with PHP code on the same level.
string | $string | Input string |
bool | $linebreak | Wrap script element in linebreaks? Default is TRUE. |
Definition at line 1353 of file DocumentTemplate.php.
Referenced by DocumentTemplate\endPage(), and DocumentTemplate\insertStylesAndJS().
xUaCompatible | ( | $content = 'IE=8' | ) |
Returns X-UA-Compatible meta tag
string | $content | Content of the compatible tag (default: IE-8) |
Definition at line 1246 of file DocumentTemplate.php.
Referenced by DocumentTemplate\startPage().
$backGroundImage = '' |
Definition at line 242 of file DocumentTemplate.php.
$bgColor = '#F7F3EF' |
Light background color
Definition at line 173 of file DocumentTemplate.php.
$bgColor2 = '#9BA1A8' |
Steel-blue
Definition at line 180 of file DocumentTemplate.php.
$bgColor3 = '#F6F2E6' |
dok.color
Definition at line 187 of file DocumentTemplate.php.
$bgColor4 = '#D9D5C9' |
light tablerow background, brownish
Definition at line 194 of file DocumentTemplate.php.
$bgColor5 = '#ABBBB4' |
light tablerow background, greenish
Definition at line 201 of file DocumentTemplate.php.
$bgColor6 = '#E7DBA8' |
light tablerow background, yellowish, for section headers. Light.
Definition at line 208 of file DocumentTemplate.php.
$bodyTagAdditions = '' |
Definition at line 133 of file DocumentTemplate.php.
$bodyTagId = '' |
Definition at line 126 of file DocumentTemplate.php.
|
protected |
Definition at line 315 of file DocumentTemplate.php.
$divClass = '' |
Definition at line 330 of file DocumentTemplate.php.
$docType = '' |
Doc-type used in the header. Default is xhtml_trans. You can also set it to 'html_3', 'xhtml_strict' or 'xhtml_frames'.
Definition at line 98 of file DocumentTemplate.php.
$endJS = 1 |
Definition at line 163 of file DocumentTemplate.php.
$endOfPageJsBlock = '' |
Definition at line 340 of file DocumentTemplate.php.
|
protected |
Definition at line 362 of file DocumentTemplate.php.
$extJScode = '' |
Definition at line 73 of file DocumentTemplate.php.
$form = '' |
Definition at line 50 of file DocumentTemplate.php.
$form_largeComp = 1.33 |
Definition at line 155 of file DocumentTemplate.php.
$hasDocheader = true |
Definition at line 345 of file DocumentTemplate.php.
$hoverColor = '#254D7B' |
Definition at line 213 of file DocumentTemplate.php.
|
protected |
Definition at line 374 of file DocumentTemplate.php.
$inDocStyles = '' |
Additional CSS styles which will be added to the <style> section in the header
Definition at line 140 of file DocumentTemplate.php.
Referenced by DocumentTemplate\docStyle().
$inDocStyles_TBEstyle = '' |
Definition at line 250 of file DocumentTemplate.php.
$inDocStylesArray = array() |
Definition at line 148 of file DocumentTemplate.php.
$JScode = '' |
Definition at line 66 of file DocumentTemplate.php.
$JScodeArray |
Definition at line 80 of file DocumentTemplate.php.
$JScodeLibArray = array() |
Similar to $JScode (see below) but used as an associative array to prevent double inclusion of JS code. This is used to include certain external Javascript libraries before the inline JS code. <script>-Tags are not wrapped around automatically
Definition at line 59 of file DocumentTemplate.php.
|
protected |
Definition at line 291 of file DocumentTemplate.php.
|
protected |
Definition at line 298 of file DocumentTemplate.php.
$moduleTemplate = '' |
Definition at line 105 of file DocumentTemplate.php.
|
protected |
Definition at line 112 of file DocumentTemplate.php.
$pageHeaderBlock = '' |
Definition at line 335 of file DocumentTemplate.php.
|
protected |
Definition at line 357 of file DocumentTemplate.php.
|
protected |
Definition at line 350 of file DocumentTemplate.php.
Referenced by DocumentTemplate\getPageRenderer().
$parseTimeFlag = false |
Definition at line 307 of file DocumentTemplate.php.
$postCode = '' |
Definition at line 92 of file DocumentTemplate.php.
$scriptID = '' |
Definition at line 119 of file DocumentTemplate.php.
Referenced by DocumentTemplate\__construct().
$sectionFlag = 0 |
Definition at line 323 of file DocumentTemplate.php.
bool $showFlashMessages = true |
Whether flashmessages should be rendered or not
Definition at line 369 of file DocumentTemplate.php.
$styleSheetFile = '' |
Definition at line 220 of file DocumentTemplate.php.
$styleSheetFile2 = '' |
Definition at line 227 of file DocumentTemplate.php.
$styleSheetFile_post = '' |
Definition at line 234 of file DocumentTemplate.php.
|
protected |
Definition at line 272 of file DocumentTemplate.php.
|
protected |
Definition at line 281 of file DocumentTemplate.php.
Referenced by DocumentTemplate\getSkinStylesheetDirectories().
$table_TABLE = '<table border="0" cellspacing="0" cellpadding="0" class="typo3-dblist" id="typo3-tmpltable">' |
Definition at line 1383 of file DocumentTemplate.php.
$table_TR = '<tr>' |
Definition at line 1381 of file DocumentTemplate.php.
$tableLayout |
Definition at line 1375 of file DocumentTemplate.php.
Referenced by DocumentTemplate\table().
|
protected |
Definition at line 379 of file DocumentTemplate.php.
|
protected |
Definition at line 257 of file DocumentTemplate.php.
Referenced by DocumentTemplate\useCompatibilityTag().
|
protected |
Definition at line 264 of file DocumentTemplate.php.
const STATUS_ICON_ERROR = 3 |
Definition at line 381 of file DocumentTemplate.php.
Referenced by ErrorIconViewHelper\renderStatic().
const STATUS_ICON_NOTIFICATION = 1 |
Definition at line 383 of file DocumentTemplate.php.
const STATUS_ICON_OK = -1 |
Definition at line 384 of file DocumentTemplate.php.
const STATUS_ICON_WARNING = 2 |
Definition at line 382 of file DocumentTemplate.php.
Referenced by ErrorIconViewHelper\renderStatic().