AAAAhome/academiac/www/administrator/components/com_csvi/tables/csvimproved.php 0000604 00000001473 15145302037 0023403 0 ustar 00 loadArray($array['params']);
$array['params'] = $registry->toString();
}
return parent::bind($array, $ignore);
}
}
?> home/academiac/www/administrator/components/com_csvi/helpers/file/export/html/csvimproved.php 0000604 00000005372 15147623572 0027015 0 ustar 00 contents = '
'.chr(10);
$this->contents .= ''.chr(10);
return $this->contents;
}
/**
* Start the table header
*
* @return string start table header
*/
function StartTableHeaderText() {
return '';
}
/**
* End the table header
*
* @return string end table header
*/
function EndTableHeaderText() {
return '
'.chr(10);
}
/**
* Creates the table header
*
* @return string th field
*/
public function TableHeaderText($headers) {
return ''.$headers.' | ';
}
/**
* Start the table body header
*
* @see $contents
* @return string table body header
*/
public function BodyText() {
return '';
}
/**
* Creates the HTML footer
*
* @see $contents
* @return string HTML footer
*/
function FooterText() {
$this->contents = '
'.chr(10);
return $this->contents;
}
/**
* Opens a table row
*
* @see $contents
* @return string tr opening tag
*/
function NodeStart() {
$this->contents = ''.chr(10);
return $this->contents;
}
/**
* Closes a table row
*
* @see $contents
* @return string tr closing tag
*/
function NodeEnd() {
$this->contents = '
'.chr(10);
return $this->contents;
}
/**
* Adds a table td element
*
* @see $node
* @return string td row
*/
function Element($column_header, $cdata=false) {
$this->node = '';
$this->node .= $this->contents;
$this->node .= ' | ';
$this->node .= "\n";
return $this->node;
}
/**
* Handles all content and modifies special cases
*
* @see $contents
* @return string formatted table row
*/
function ContentText($content, $column_header, $fieldname, $cdata=false) {
switch ($fieldname) {
default:
$this->contents = $content;
break;
}
return $this->Element($column_header, $cdata);
}
}
?>
home/academiac/www/administrator/components/com_csvi/helpers/file/export/xml/csvimproved.php 0000604 00000004715 15147637470 0026653 0 ustar 00 contents = ''.chr(10);
$this->contents .= ''.chr(10);
return $this->contents;
}
/**
* Creates the XML footer
*
* @see $contents
* @return string XML header
*/
public function FooterText() {
$this->contents = ''.chr(10);
return $this->contents;
}
/**
* Opens an XML item node
*
* @see $contents
* @return string XML node data
*/
public function NodeStart() {
$this->contents = '- '.chr(10);
return $this->contents;
}
/**
* Closes an XML item node
*
* @see $contents
* @return string XML node data
*/
public function NodeEnd() {
$this->contents = '
'.chr(10);
return $this->contents;
}
/**
* Adds an XML element
*
* @see $node
* @return string XML element
*/
private 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;
}
/**
* Handles all content and modifies special cases
*
* @see $contents
* @return string formatted XML element
*/
public function ContentText($content, $column_header, $fieldname, $cdata=false) {
switch ($fieldname) {
case 'field_default_value':
case 'product_attribute':
$cdata = true;
default:
$this->contents = $content;
break;
}
if (empty($column_header)) $column_header = $fieldname;
return $this->Element($column_header, $cdata);
}
}
?>