AAAAhome/academiac/www/administrator/components/com_csvi/helpers/file/export/xml/beslist.php 0000604 00000004002 15147636750 0025744 0 ustar 00 contents = ''.chr(10);
$this->contents .= ''.chr(10);
return $this->contents;
}
function FooterText() {
$this->contents = ''.chr(10);
return $this->contents;
}
function NodeStart() {
$this->contents = ''.chr(10);
return $this->contents;
}
function NodeEnd() {
$this->contents = ''.chr(10);
return $this->contents;
}
function Element($column_header, $cdata=false) {
$this->node = '<'.$column_header.'>';
if ($cdata) $this->node .= 'node .= $this->contents;
if ($cdata) $this->node .= ']]>';
$this->node .= ''.$column_header.'>';
$this->node .= "\n";
return $this->node;
}
function ContentText($content, $column_header, $fieldname, $cdata=false) {
switch ($fieldname) {
case 'category_path':
$this->CategoryPath($content);
break;
case 'manufacturer_name':
case 'product_url':
$cdata = true;
default:
$this->contents = $content;
break;
}
if (empty($column_header)) $column_header = $fieldname;
return $this->Element($column_header, $cdata);
}
function CategoryPath($category) {
$this->contents = str_replace("/", " > ", trim($category));
}
}
?>