"TYPO3 4.0.1: t3lib_parsehtml_proc Class Reference", "datetime" => "Sat Dec 2 19:26:04 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>
Public Member Functions | |
init ($elRef='', $recPid=0) | |
setRelPath ($path) | |
evalWriteFile ($pArr, $currentRecord) | |
RTE_transform ($value, $specConf, $direction='rte', $thisConfig=array()) | |
TS_images_db ($value) | |
TS_images_rte ($value) | |
TS_reglinks ($value, $direction) | |
TS_links_db ($value) | |
TS_links_rte ($value) | |
TS_preserve_db ($value) | |
TS_preserve_rte ($value) | |
TS_transform_db ($value, $css=FALSE) | |
transformStyledATags ($value) | |
TS_transform_rte ($value, $css=0) | |
TS_strip_db ($value) | |
getURL ($url) | |
HTMLcleaner_db ($content, $tagList='') | |
getKeepTags ($direction='rte', $tagList='') | |
divideIntoLines ($value, $count=5, $returnArray=FALSE) | |
setDivTags ($value, $dT='p') | |
internalizeFontTags ($value) | |
siteUrl () | |
rteImageStorageDir () | |
removeTables ($value, $breakChar='< br/>') | |
defaultTStagMapping ($code, $direction='rte') | |
getWHFromAttribs ($attribArray) | |
urlInfoForLinkTags ($url) | |
TS_AtagToAbs ($value, $dontSetRTEKEEP=FALSE) | |
Public Attributes | |
$headListTags = 'PRE,UL,OL,H1,H2,H3,H4,H5,H6,HR,ADDRESS,DL' | |
$recPid = 0 | |
$elRef = '' | |
$relPath = '' | |
$relBackPath = '' | |
$procOptions = '' | |
$TS_transform_db_safecounter = 100 | |
$rte_p = '' | |
$getKeepTags_cache = array() | |
$allowedClasses = array() | |
$preserveTags = '' |
Definition at line 103 of file class.t3lib_parsehtml_proc.php.
|
Default tag mapping for TS
Definition at line 1441 of file class.t3lib_parsehtml_proc.php. |
|
This resolves the $value into parts based on -sections and
-sections and
Definition at line 1200 of file class.t3lib_parsehtml_proc.php. References t3lib_div::trimExplode(). |
|
Evaluate the environment for editing a staticFileEdit file. Called for almost all fields being saved in the database. Is called without an instance of the object: t3lib_parsehtml_proc::evalWriteFile()
Definition at line 174 of file class.t3lib_parsehtml_proc.php. References t3lib_div::validPathStr(). Referenced by t3lib_TCEmain::fillInFieldArray(), t3lib_TCEforms::getSingleField_typeText(), and t3lib_transferData::renderRecord_typesProc(). |
|
Creates an array of configuration for the HTMLcleaner function based on whether content go TO or FROM the Rich Text Editor ($direction) Unless "tagList" is given, the function will cache the configuration for next time processing goes on. (In this class that is the case only if we are processing a bulletlist)
Definition at line 1091 of file class.t3lib_parsehtml_proc.php. References t3lib_div::trimExplode(). |
|
Reads the file or url $url and returns the content
Definition at line 1050 of file class.t3lib_parsehtml_proc.php. References t3lib_div::getURL(). |
|
Finds width and height from attrib-array If the width and height is found in the style-attribute, use that!
Definition at line 1464 of file class.t3lib_parsehtml_proc.php. |
|
Function for cleaning content going into the database. Content is cleaned eg. by removing unallowed HTML and ds-HSC content It is basically calling HTMLcleaner from the parent class with some preset configuration specifically set up for cleaning content going from the RTE into the db
Definition at line 1064 of file class.t3lib_parsehtml_proc.php. |
|
Initialize, setting element reference and record PID
Definition at line 138 of file class.t3lib_parsehtml_proc.php. |
|
This splits the $value in font-tag chunks. If there are any / sections inside of them, the font-tag is wrapped AROUND the content INSIDE of the P/DIV sections and the outer font-tag is removed. This functions seems to be a good choice for pre-processing content if it has been pasted into the RTE from eg. star-office. In that case the font-tags are normally on the OUTSIDE of the sections. This function is used by eg. divideIntoLines() if the procesing option 'internalizeFontTags' is set.
Definition at line 1351 of file class.t3lib_parsehtml_proc.php. |
|
Remove all tables from incoming code The function is trying to to this is some more or less respectfull way. The approach is to resolve each table cells content and implode it all by
Definition at line 1409 of file class.t3lib_parsehtml_proc.php. |
|
Transform value for RTE based on specConf in the direction specified by $direction (rte/db) This is the main function called from tcemain and transfer data classes
Definition at line 232 of file class.t3lib_parsehtml_proc.php. References t3lib_BEfunc::getSpecConfParametersFromArray(), t3lib_div::getUserObj(), and t3lib_div::trimExplode(). |
|
Return the storage folder of RTE image files. Default is $GLOBALS['TYPO3_CONF_VARS']['BE']['RTE_imageStorageDir'] unless something else is configured in the types configuration for the RTE.
Definition at line 1397 of file class.t3lib_parsehtml_proc.php. |
|
Converts all lines into /-sections (unless the line is a div-section already) For processing of content going FROM database TO RTE.
Definition at line 1306 of file class.t3lib_parsehtml_proc.php. |
|
Setting the ->relPath and ->relBackPath to proper values so absolute references to links and images can be converted to relative dittos. This is used when editing files with the RTE
Definition at line 150 of file class.t3lib_parsehtml_proc.php. |
|
Returns SiteURL based on thisScript.
Definition at line 1387 of file class.t3lib_parsehtml_proc.php. References t3lib_div::getIndpEnv(). |
|
Wraps a-tags that contain a style attribute with a span-tag
Definition at line 922 of file class.t3lib_parsehtml_proc.php. |
|
Converting -tags to absolute URLs (+ setting rtekeep attribute)
Definition at line 1550 of file class.t3lib_parsehtml_proc.php. |
|
Transformation handler: 'ts_images' / direction: "db" Processing images inserted in the RTE. This is used when content goes from the RTE to the database. Images inserted in the RTE has an absolute URL applied to the src attribute. This URL is converted to a relative URL If it turns out that the URL is from another website than the current the image is read from that external URL and moved to the local server. Also "magic" images are processed here.
Definition at line 398 of file class.t3lib_parsehtml_proc.php. References t3lib_div::getFileAbsFileName(), t3lib_div::getIndpEnv(), t3lib_div::implodeAttributes(), t3lib_div::inList(), t3lib_div::isFirstPartOfStr(), t3lib_div::makeInstance(), t3lib_div::shortMD5(), and t3lib_div::writeFile(). |
|
Transformation handler: 'ts_images' / direction: "rte" Processing images from database content going into the RTE. Processing includes converting the src attribute to an absolute URL.
Definition at line 550 of file class.t3lib_parsehtml_proc.php. References t3lib_div::getIndpEnv(), and t3lib_div::implodeAttributes(). |
|
Transformation handler: 'ts_links' / direction: "db" Converting -tags to <link tags>="">
Definition at line 626 of file class.t3lib_parsehtml_proc.php. |
|
Transformation handler: 'ts_links' / direction: "rte" Converting <link tags>=""> to -tags
Definition at line 675 of file class.t3lib_parsehtml_proc.php. References t3lib_BEfunc::getRecord(), t3lib_BEfunc::getRecordsByField(), t3lib_div::inList(), t3lib_div::testInt(), t3lib_div::trimExplode(), and t3lib_div::unQuoteFilenames(). |
|
Preserve special tags
Definition at line 760 of file class.t3lib_parsehtml_proc.php. |
|
Preserve special tags
Definition at line 784 of file class.t3lib_parsehtml_proc.php. |
|
Transformation handler: 'ts_reglinks' / direction: "db"+"rte" depending on $direction variable. Converting -tags to/from abs/rel
Definition at line 589 of file class.t3lib_parsehtml_proc.php. |
|
Transformation handler: 'ts_strip' / direction: "db" Removing all non-allowed tags
Definition at line 1019 of file class.t3lib_parsehtml_proc.php. |
|
Transformation handler: 'ts_transform' + 'css_transform' / direction: "db" Cleaning (->db) for standard content elements (ts)
Definition at line 805 of file class.t3lib_parsehtml_proc.php. |
|
Transformation handler: 'ts_transform' + 'css_transform' / direction: "rte" Set (->rte) for standard content elements (ts)
Definition at line 948 of file class.t3lib_parsehtml_proc.php. References t3lib_div::inList(), and t3lib_div::intInRange(). |
|
Parse -tag href and return status of email,external,file or page
Definition at line 1491 of file class.t3lib_parsehtml_proc.php. |