Documentation TYPO3 par Ameos

tx_tstemplatestyler_modfunc1 Class Reference

Inheritance diagram for tx_tstemplatestyler_modfunc1:

Inheritance graph
[legend]
Collaboration diagram for tx_tstemplatestyler_modfunc1:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 modMenu ()
 initialize_editor ($pageId, $template_uid=0)
 main ()
 makeCSSTree ($existTemplate=0, $editBranch="")
 makeCSSTree_recursive ($eArr, $lines, $preHTML="", $accSel="", $datObj="", $cc=0, $openBranch=1, $exampleStop=0, $titlePath="")
 getEarr ($eArr)
 joinTSarrays ($conf, $old_conf)
 getInputValue ($objRef)
 insertNewSelector ($inSelector, $inValue, $prevPointer, $comment="")
 wrapExample ($str, $title)
 matchEB ($editBranch, $datObjRef)
 makeStyleDialog ($vArray)
 formFieldName ($datObj, $attrib)
 renderSelector ($name, $optValues, $value, $title, $onChange="")
 styleCode ($v, $style="")
 parseStyleSheet ($input, $fileref, $matchSel=array())
 styleAttributes ($data)
 cleanUpSelector ($selector)
 parseStyleContent_begin ($colParts)
 parseStyleContent ($colParts, $path="")
 prepareStyleContent ($colParts, $path="")
 writeStyleContent ($colParts)
 writeHTMLdocument ($document, $writeArray)
 writeResourceFile ($absFileRef, $content)
 writeStyle ($uid, $currentData, $addData)
 prefixLines ($str, $indent)
 mergeData ($currentData, $addData)
 printAttributes ($arr, $forceOneLine=0)
 makeStyleCollectionSelector ()
 readStylesheets ($collection)
 parseHTMLdocument ($document)
 printCollectionInfo ($colParts, $lines=array(), $pre="")
 getFileName ($resource)
 ext_plusStyle ()

Public Attributes

 $ext_cssMarker = "###CSS_EDITOR STYLE INFORMATION MARKER"
 $HTMLcolorList = "aqua,black,blue,fuchsia,gray,green,lime,maroon,navy,olive,purple,red,silver,teal,yellow,white"
 $ext_makeStyleDialogFlag = 0
 $ext_compiledExamples = array()
 $ext_compiledStylesheet = array()
 $ext_depthKeysValues = array()
 $ext_plusStyleParsed = array()
 $ext_styleItems = array()
 $ext_matchSelector = array()
 $ext_collectionWithContent = array()
 $ext_allwaysCleanUpWrittenStyles = 0
 $ext_oneLineMode = 1
 $ext_addComments = 0

Detailed Description

Module extension (addition to function menu) 'CSS Styler' for the 'tstemplate_styler' extension. This module is a CSS style editor which reads configuration from the "editorcfg" field of templates and according sets up a hierarchy of classes etc to edit. It can edit both inline style set up in a TS template record as well as external files, both css and html files.

Author:
Kasper Skrhj <kasperYYYY@typo3.com>

Definition at line 37 of file class.tx_tstemplatestyler_modfunc1.php.


Member Function Documentation

tx_tstemplatestyler_modfunc1::cleanUpSelector selector  ) 
 

Returns a "clean" selector with equal distances between parts, element names in uppercase

Definition at line 1150 of file class.tx_tstemplatestyler_modfunc1.php.

References t3lib_div::trimExplode().

tx_tstemplatestyler_modfunc1::ext_plusStyle  ) 
 

This returns the CSS codes which are set by default from plugins.

Definition at line 1651 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::formFieldName datObj,
attrib
 

Returns the formfield name for an object.

Definition at line 1031 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::getEarr eArr  ) 
 

Returns oArr.....

Definition at line 571 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::getFileName resource  ) 
 

Returns the resource relative to PATH_site

Definition at line 1635 of file class.tx_tstemplatestyler_modfunc1.php.

References t3lib_div::isFirstPartOfStr().

tx_tstemplatestyler_modfunc1::getInputValue objRef  ) 
 

Returns information of the input value of $objRef

Definition at line 617 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::insertNewSelector inSelector,
inValue,
prevPointer,
comment = ""
 

Inserts a new selector in a stylesheet.

Definition at line 646 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::joinTSarrays conf,
old_conf
 

Joins two TypoScript arrays

Definition at line 600 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::makeCSSTree existTemplate = 0,
editBranch = ""
 

This initializes the proces of rendering the style-editor tree. Finally it's prints all output rows.

Definition at line 336 of file class.tx_tstemplatestyler_modfunc1.php.

Referenced by main().

tx_tstemplatestyler_modfunc1::makeCSSTree_recursive eArr,
lines,
preHTML = "",
accSel = "",
datObj = "",
cc = 0,
openBranch = 1,
exampleStop = 0,
titlePath = ""
 

Traverses the editorObj hierarchy, generates the basis for the rows in the editor form, renders example code, matches existing selectors etc. Called recursively.

Definition at line 453 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::makeStyleCollectionSelector  ) 
 

Based on the parsed template (setup and editorcfg fields) the available style-sheet collections are returned in an array listing all resource-filenames, information etc from the configuration.

Definition at line 1448 of file class.tx_tstemplatestyler_modfunc1.php.

Referenced by main().

tx_tstemplatestyler_modfunc1::makeStyleDialog vArray  ) 
 

Style editor boxes

Definition at line 706 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::matchEB editBranch,
datObjRef
 

Wrap example in dotted table

Definition at line 675 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::mergeData currentData,
addData
 

Merging the inline-content into the TypoScript setup code (with the markers...)

Definition at line 1391 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::parseHTMLdocument document  ) 
 

Reads <STYLE> section + <LINK>-stylesheets of an HTML-document

Definition at line 1570 of file class.tx_tstemplatestyler_modfunc1.php.

References t3lib_div::makeInstance().

tx_tstemplatestyler_modfunc1::parseStyleContent colParts,
path = ""
 

This parses each content section in the collection array:

Definition at line 1187 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::parseStyleContent_begin colParts  ) 
 

Begin

Definition at line 1169 of file class.tx_tstemplatestyler_modfunc1.php.

Referenced by main().

tx_tstemplatestyler_modfunc1::parseStyleSheet input,
fileref,
matchSel = array()
 

Takes CSS content as input, parses it into an array

Definition at line 1088 of file class.tx_tstemplatestyler_modfunc1.php.

References t3lib_div::revExplode().

tx_tstemplatestyler_modfunc1::prefixLines str,
indent
 

Prefix lines with $indent-string

Definition at line 1380 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::prepareStyleContent colParts,
path = ""
 

This parses each content section in the collection array:

Definition at line 1206 of file class.tx_tstemplatestyler_modfunc1.php.

Referenced by main().

tx_tstemplatestyler_modfunc1::printAttributes arr,
forceOneLine = 0
 

Prints an array of CSS attributes very nicely

Definition at line 1429 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::printCollectionInfo colParts,
lines = array(),
pre = ""
 

Prints information about a style collection

Definition at line 1609 of file class.tx_tstemplatestyler_modfunc1.php.

Referenced by main().

tx_tstemplatestyler_modfunc1::readStylesheets collection  ) 
 

Takes a raw style-collection array as input, resolves all resource filenames, reads their content. Does not parse the stylesheets, just reads the content.

Definition at line 1535 of file class.tx_tstemplatestyler_modfunc1.php.

References t3lib_div::inList().

Referenced by main().

tx_tstemplatestyler_modfunc1::renderSelector name,
optValues,
value,
title,
onChange = ""
 

Renders a selector box

Definition at line 1038 of file class.tx_tstemplatestyler_modfunc1.php.

References t3lib_div::testInt().

tx_tstemplatestyler_modfunc1::styleAttributes data  ) 
 

Taking the content of {...} of a CSS stylesheet, explodes the attributes into an array with attributes/values being keys/values

Definition at line 1135 of file class.tx_tstemplatestyler_modfunc1.php.

References t3lib_div::trimExplode().

tx_tstemplatestyler_modfunc1::styleCode v,
style = ""
 

Returns the style-attribute for background color of an item.

Definition at line 1059 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::wrapExample str,
title
 

Wrap example in dotted table

Definition at line 667 of file class.tx_tstemplatestyler_modfunc1.php.

tx_tstemplatestyler_modfunc1::writeHTMLdocument document,
writeArray
 

Writes <STYLE> section + <LINK>-stylesheets of an HTML-document

Definition at line 1278 of file class.tx_tstemplatestyler_modfunc1.php.

References t3lib_div::makeInstance().

tx_tstemplatestyler_modfunc1::writeResourceFile absFileRef,
content
 

Writing resource file.

Definition at line 1333 of file class.tx_tstemplatestyler_modfunc1.php.

References t3lib_div::isFirstPartOfStr(), and t3lib_div::writeFile().

tx_tstemplatestyler_modfunc1::writeStyle uid,
currentData,
addData
 

Writing $addData into the special CSS_inlineStyle section in the current template record.

Definition at line 1350 of file class.tx_tstemplatestyler_modfunc1.php.

References t3lib_div::makeInstance().

tx_tstemplatestyler_modfunc1::writeStyleContent colParts  ) 
 

Writes the stylesheet content back...

Definition at line 1239 of file class.tx_tstemplatestyler_modfunc1.php.

References t3lib_div::inList().

Referenced by main().


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


Gnr par TYPO3 Ameos avec  doxygen 1.4.6