Documentation TYPO3 par Ameos |
Public Member Functions | |
t3lib_xml ($topLevelName) | |
setRecFields ($table, $list) | |
getResult () | |
WAPHeader () | |
renderHeader () | |
renderFooter () | |
newLevel ($name, $beginEndFlag=0, $params=array()) | |
output ($content) | |
indent ($b) | |
renderRecords ($table, $res) | |
addRecord ($table, $row) | |
getRowInXML ($table, $row) | |
utf8 ($content) | |
substNewline ($string) | |
fieldWrap ($field, $value) | |
WAPback () | |
addLine ($str) | |
Public Attributes | |
$topLevelName = 'typo3_test' | |
$XML_recFields = array() | |
$XMLIndent = 0 | |
$Icode = '' | |
$XMLdebug = 0 | |
$includeNonEmptyValues = 0 | |
$lines = array() |
Definition at line 86 of file class.t3lib_xml.php.
|
Constructor, setting topLevelName to the input var
Definition at line 102 of file class.t3lib_xml.php. References $topLevelName. |
|
Add a line to the internal XML structure (automatically prefixed with ->Icode.
Definition at line 315 of file class.t3lib_xml.php. |
|
Adds record, $row, from table, $table, to the internal array of XML-lines
Definition at line 237 of file class.t3lib_xml.php. |
|
Wraps the value in tags with element name, $field.
Definition at line 292 of file class.t3lib_xml.php. |
|
Returns the result of the XML rendering, basically this is imploding the internal ->lines array with linebreaks.
Definition at line 122 of file class.t3lib_xml.php. References output(). |
|
Internal function for adding the actual content of the $row from $table to the internal structure. Notice that only fields from $table that are listed in $this->XML_recFields[$table] (set by setRecFields()) will be rendered (and in the order found in that array!) Content from the row will be htmlspecialchar()'ed, UTF-8 encoded and have chr(10) (newlines) exchanged for '<newline>' tags. The element name for a value equals the fieldname from the record.
Definition at line 255 of file class.t3lib_xml.php. References t3lib_div::trimExplode(). |
|
Increments/Decrements Indentation counter, ->XMLIndent Sets and returns ->Icode variable which is a line prefix consisting of a number of tab-chars corresponding to the indent-levels of the current posision (->XMLindent)
Definition at line 208 of file class.t3lib_xml.php. Referenced by newLevel(). |
|
Indents/Outdents a new level named, $name
Definition at line 167 of file class.t3lib_xml.php. References indent(). Referenced by renderFooter(), renderHeader(), and WAPHeader(). |
|
Function that will return the content from string $content. If the internal ->XMLdebug flag is set the content returned will be formatted in -tags
Definition at line 192 of file class.t3lib_xml.php. Referenced by getResult(). |
|
Sets the footer (of ->topLevelName)
Definition at line 155 of file class.t3lib_xml.php. References newLevel(). |
|
Initialize "anonymous" XML document with <?xml + <!DOCTYPE header tags and setting ->topLevelName as the first level. Encoding is set to UTF-8!
Definition at line 144 of file class.t3lib_xml.php. References newLevel(). |
|
Takes a SQL result for $table and traverses it, adding rows
Definition at line 224 of file class.t3lib_xml.php. |
|
When outputting a input record in XML only fields listed in $this->XML_recFields for the current table will be rendered.
Definition at line 113 of file class.t3lib_xml.php. |
|
Substitutes chr(10) characters with a '<newline>' tag.
Definition at line 281 of file class.t3lib_xml.php. |
|
UTF-8 encodes the input content (from ISO-8859-1!)
Definition at line 271 of file class.t3lib_xml.php. |
|
Creates the BACK button for WAP documents
Definition at line 301 of file class.t3lib_xml.php. |
|
Initialize WML (WAP) document with <?xml + <!DOCTYPE header tags and setting ->topLevelName as the first level.
Definition at line 132 of file class.t3lib_xml.php. References newLevel(). |