Documentation TYPO3 par Ameos |
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) | |
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) | |
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) | |
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' | |
$recPid = 0 | |
$elRef = '' | |
$relPath = '' | |
$relBackPath = '' | |
$procOptions = '' | |
$TS_transform_db_safecounter = 100 | |
$rte_p = '' | |
$getKeepTags_cache = array() | |
$allowedClasses = array() | |
$preserveTags = '' |
Definition at line 102 of file class.t3lib_parsehtml_proc.php.
|
Default tag mapping for TS
Definition at line 1376 of file class.t3lib_parsehtml_proc.php. |
|
Default tag mapping for TS
Definition at line 1376 of file class.t3lib_parsehtml_proc.php. |
|
This resolves the $value into parts based on -sections and
-sections and
Definition at line 1137 of file class.t3lib_parsehtml_proc.php. References t3lib_div::trimExplode(). |
|
This resolves the $value into parts based on -sections and
-sections and
Definition at line 1137 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 173 of file class.t3lib_parsehtml_proc.php. References t3lib_div::validPathStr(). |
|
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 173 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 1028 of file class.t3lib_parsehtml_proc.php. References t3lib_div::trimExplode(). |
|
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 1028 of file class.t3lib_parsehtml_proc.php. References t3lib_div::trimExplode(). |
|
Reads the file or url $url and returns the content
Definition at line 993 of file class.t3lib_parsehtml_proc.php. References t3lib_div::getURL(). |
|
Reads the file or url $url and returns the content
Definition at line 993 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 1399 of file class.t3lib_parsehtml_proc.php. |
|
Finds width and height from attrib-array If the width and height is found in the style-attribute, use that!
Definition at line 1399 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 1007 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 1007 of file class.t3lib_parsehtml_proc.php. |
|
Initialize, setting element reference and record PID
Definition at line 137 of file class.t3lib_parsehtml_proc.php. |
|
Initialize, setting element reference and record PID
Definition at line 137 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 1286 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 1286 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 1344 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 1344 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 231 of file class.t3lib_parsehtml_proc.php. References t3lib_BEfunc::getSpecConfParametersFromArray(), t3lib_div::getUserObj(), and t3lib_div::trimExplode(). |
|
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 231 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 1332 of file class.t3lib_parsehtml_proc.php. |
|
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 1332 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 1241 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 1241 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 149 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 149 of file class.t3lib_parsehtml_proc.php. |
|
Returns SiteURL based on thisScript.
Definition at line 1322 of file class.t3lib_parsehtml_proc.php. References t3lib_div::getIndpEnv(). |
|
Returns SiteURL based on thisScript.
Definition at line 1322 of file class.t3lib_parsehtml_proc.php. References t3lib_div::getIndpEnv(). |
|
Converting -tags to absolute URLs (+ setting rtekeep attribute)
Definition at line 1484 of file class.t3lib_parsehtml_proc.php. |
|
Converting -tags to absolute URLs (+ setting rtekeep attribute)
Definition at line 1484 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 397 of file class.t3lib_parsehtml_proc.php. References t3lib_div::getFileAbsFileName(), t3lib_div::implodeAttributes(), t3lib_div::inList(), t3lib_div::isFirstPartOfStr(), t3lib_div::makeInstance(), t3lib_div::shortMD5(), and t3lib_div::writeFile(). |
|
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 397 of file class.t3lib_parsehtml_proc.php. References t3lib_div::getFileAbsFileName(), 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 538 of file class.t3lib_parsehtml_proc.php. References t3lib_div::implodeAttributes(). |
|
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 538 of file class.t3lib_parsehtml_proc.php. References t3lib_div::implodeAttributes(). |
|
Transformation handler: 'ts_links' / direction: "db" Converting -tags to <LINK tags>="">
Definition at line 606 of file class.t3lib_parsehtml_proc.php. |
|
Transformation handler: 'ts_links' / direction: "db" Converting -tags to <LINK tags>="">
Definition at line 606 of file class.t3lib_parsehtml_proc.php. |
|
Transformation handler: 'ts_links' / direction: "rte" Converting <LINK tags>=""> to -tags
Definition at line 654 of file class.t3lib_parsehtml_proc.php. References t3lib_BEfunc::getRecord(), t3lib_BEfunc::getRecordsByField(), t3lib_div::inList(), t3lib_div::testInt(), and t3lib_div::trimExplode(). |
|
Transformation handler: 'ts_links' / direction: "rte" Converting <LINK tags>=""> to -tags
Definition at line 654 of file class.t3lib_parsehtml_proc.php. References t3lib_BEfunc::getRecord(), t3lib_BEfunc::getRecordsByField(), t3lib_div::inList(), t3lib_div::testInt(), and t3lib_div::trimExplode(). |
|
Preserve special tags
Definition at line 735 of file class.t3lib_parsehtml_proc.php. |
|
Preserve special tags
Definition at line 735 of file class.t3lib_parsehtml_proc.php. |
|
Preserve special tags
Definition at line 759 of file class.t3lib_parsehtml_proc.php. |
|
Preserve special tags
Definition at line 759 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 572 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 572 of file class.t3lib_parsehtml_proc.php. |
|
Transformation handler: 'ts_strip' / direction: "db" Removing all non-allowed tags
Definition at line 962 of file class.t3lib_parsehtml_proc.php. |
|
Transformation handler: 'ts_strip' / direction: "db" Removing all non-allowed tags
Definition at line 962 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 780 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 780 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 891 of file class.t3lib_parsehtml_proc.php. References t3lib_div::inList(), and t3lib_div::intInRange(). |
|
Transformation handler: 'ts_transform' + 'css_transform' / direction: "rte" Set (->rte) for standard content elements (ts)
Definition at line 891 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 1425 of file class.t3lib_parsehtml_proc.php. |
|
Parse -tag href and return status of email,external,file or page
Definition at line 1425 of file class.t3lib_parsehtml_proc.php. |