Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

template Class Reference

Inherited by bigDoc, mediumDoc, noDoc, and smallDoc.

List of all members.

Public Member Functions

 template ()
 Constructor Imports relevant parts from global $TBE_STYLES (colorscheme).
 wrapClickMenuOnIcon ($str, $table, $uid='', $listFr=1, $addParams='', $enDisItems='', $returnOnClick=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).

Public Attributes

 $backPath = ''
 $form = ''
 $JScode = ''
 $JScodeArray = array()
 $postCode = ''
 $docType = ''
 $scriptID = ''
 $bodyTagId = ''
 $bodyTagAdditions = ''
 $inDocStyles = ''
 $inDocStylesArray = array()
 $form_rowsToStylewidth = 9.58
 $form_largeComp = 1.33
 $endJS = 1
 $bgColor = '#F7F3EF'
 $bgColor2 = '#9BA1A8'
 $bgColor3 = '#F6F2E6'
 $bgColor4 = '#D9D5C9'
 $bgColor5 = '#ABBBB4'
 $bgColor6 = '#E7DBA8'
 $hoverColor = '#254D7B'
 $styleSheetFile = 'stylesheet.css'
 $styleSheetFile2 = ''
 $styleSheetFile_post = ''
 $backGroundImage = ''
 $inDocStyles_TBEstyle = ''
 $parseTimeFlag = 0
 $charset = 'iso-8859-1'
 $sectionFlag = 0
 $divClass = ''


Constructor & Destructor Documentation

template::template  ) 
 

Constructor Imports relevant parts from global $TBE_STYLES (colorscheme).

Returns:
void

Definition at line 216 of file template.php.

References $TBE_STYLES, PATH_site, PATH_thisScript, and TYPO3_mainDir.

00216                         {
00217       global $TBE_STYLES;
00218 
00219          // Setting default scriptID:
00220       $this->scriptID = ereg_replace('^.*\/(sysext|ext)\/','ext/',substr(PATH_thisScript,strlen(PATH_site)));
00221       if (TYPO3_mainDir!='typo3/' && substr($this->scriptID,0,strlen(TYPO3_mainDir)) == TYPO3_mainDir)   {
00222          $this->scriptID = 'typo3/'.substr($this->scriptID,strlen(TYPO3_mainDir));  // This fixes if TYPO3_mainDir has been changed so the script ids are STILL "typo3/..."
00223       }
00224 
00225       $this->bodyTagId = ereg_replace('[^[:alnum:]-]','-',$this->scriptID);
00226 
00227          // Individual configuration per script? If so, make a recursive merge of the arrays:
00228       if (is_array($TBE_STYLES['scriptIDindex'][$this->scriptID]))   {
00229          $ovr = $TBE_STYLES['scriptIDindex'][$this->scriptID];    // Make copy
00230          $TBE_STYLES = t3lib_div::array_merge_recursive_overrule($TBE_STYLES,$ovr);    // merge styles.
00231          unset($TBE_STYLES['scriptIDindex'][$this->scriptID]); // Have to unset - otherwise the second instantiation will do it again!
00232       }
00233 
00234          // Color scheme:
00235       if ($TBE_STYLES['mainColors']['bgColor']) $this->bgColor=$TBE_STYLES['mainColors']['bgColor'];
00236       if ($TBE_STYLES['mainColors']['bgColor1'])   $this->bgColor1=$TBE_STYLES['mainColors']['bgColor1'];
00237       if ($TBE_STYLES['mainColors']['bgColor2'])   $this->bgColor2=$TBE_STYLES['mainColors']['bgColor2'];
00238       if ($TBE_STYLES['mainColors']['bgColor3'])   $this->bgColor3=$TBE_STYLES['mainColors']['bgColor3'];
00239       if ($TBE_STYLES['mainColors']['bgColor4'])   $this->bgColor4=$TBE_STYLES['mainColors']['bgColor4'];
00240       if ($TBE_STYLES['mainColors']['bgColor5'])   $this->bgColor5=$TBE_STYLES['mainColors']['bgColor5'];
00241       if ($TBE_STYLES['mainColors']['bgColor6'])   $this->bgColor6=$TBE_STYLES['mainColors']['bgColor6'];
00242       if ($TBE_STYLES['mainColors']['hoverColor']) $this->hoverColor=$TBE_STYLES['mainColors']['hoverColor'];
00243 
00244          // Main Stylesheets:
00245       if ($TBE_STYLES['stylesheet'])   $this->styleSheetFile = $TBE_STYLES['stylesheet'];
00246       if ($TBE_STYLES['stylesheet2'])  $this->styleSheetFile2 = $TBE_STYLES['stylesheet2'];
00247       if ($TBE_STYLES['styleSheetFile_post'])   $this->styleSheetFile_post = $TBE_STYLES['styleSheetFile_post'];
00248       if ($TBE_STYLES['inDocStyles_TBEstyle'])  $this->inDocStyles_TBEstyle = $TBE_STYLES['inDocStyles_TBEstyle'];
00249 
00250          // Background image
00251       if ($TBE_STYLES['background'])   $this->backGroundImage = $TBE_STYLES['background'];
00252    }


Member Function Documentation

template::wrapClickMenuOnIcon str,
table,
uid = '',
listFr = 1,
addParams = '',
enDisItems = '',
returnOnClick = 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).

Parameters:
string String to be wrapped in link, typ. image tag.
string Table name/File path. If the icon is for a database record, enter the tablename from $TCA. If a file then enter the absolute filepath
integer If icon is for database record this is the UID for the record from $table
boolean 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 Additional GET parameters for the link to alt_clickmenu.php
string 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.
boolean If set, will return only the onclick JavaScript, not the whole link.
Returns:
string The link-wrapped input string.

Definition at line 290 of file template.php.

References $backPath, and table().


Member Data Documentation

template::$backGroundImage = ''
 

Definition at line 193 of file template.php.

template::$backPath = ''
 

Definition at line 164 of file template.php.

Referenced by wrapClickMenuOnIcon().

template::$bgColor = '#F7F3EF'
 

Definition at line 183 of file template.php.

template::$bgColor2 = '#9BA1A8'
 

Definition at line 184 of file template.php.

template::$bgColor3 = '#F6F2E6'
 

Definition at line 185 of file template.php.

template::$bgColor4 = '#D9D5C9'
 

Definition at line 186 of file template.php.

template::$bgColor5 = '#ABBBB4'
 

Definition at line 187 of file template.php.

template::$bgColor6 = '#E7DBA8'
 

Definition at line 188 of file template.php.

template::$bodyTagAdditions = ''
 

Definition at line 174 of file template.php.

template::$bodyTagId = ''
 

Definition at line 173 of file template.php.

template::$charset = 'iso-8859-1'
 

Definition at line 200 of file template.php.

template::$divClass = ''
 

Reimplemented in bigDoc, noDoc, smallDoc, and mediumDoc.

Definition at line 203 of file template.php.

template::$docType = ''
 

Definition at line 169 of file template.php.

template::$endJS = 1
 

Definition at line 179 of file template.php.

template::$form = ''
 

Definition at line 165 of file template.php.

template::$form_largeComp = 1.33
 

Definition at line 178 of file template.php.

template::$form_rowsToStylewidth = 9.58
 

Definition at line 177 of file template.php.

template::$hoverColor = '#254D7B'
 

Definition at line 189 of file template.php.

template::$inDocStyles = ''
 

Definition at line 175 of file template.php.

template::$inDocStyles_TBEstyle = ''
 

Definition at line 194 of file template.php.

template::$inDocStylesArray = array()
 

Definition at line 176 of file template.php.

template::$JScode = ''
 

Definition at line 166 of file template.php.

template::$JScodeArray = array()
 

Definition at line 167 of file template.php.

template::$parseTimeFlag = 0
 

Definition at line 197 of file template.php.

template::$postCode = ''
 

Definition at line 168 of file template.php.

template::$scriptID = ''
 

Definition at line 172 of file template.php.

template::$sectionFlag = 0
 

Definition at line 202 of file template.php.

template::$styleSheetFile = 'stylesheet.css'
 

Definition at line 190 of file template.php.

template::$styleSheetFile2 = ''
 

Definition at line 191 of file template.php.

template::$styleSheetFile_post = ''
 

Definition at line 192 of file template.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 3 01:07:34 2004 for TYPO3core 3.7.0 dev by  doxygen 1.3.8-20040913