Exponential 6.0.13 Exponential Enterprise Open Source CMS - PHP Class Reference

ezpdfxmloutput.php
Go to the documentation of this file.
1 <?php
11 class eZPDFXMLOutput extends eZXHTMLXMLOutput
12 {
13
14 public function __construct( $xmlData, $aliasedType, $contentObjectAttribute = null )
15 {
16 parent::__construct( $xmlData, $aliasedType, $contentObjectAttribute );
17
18 $this->OutputTags['table']['initHandler'] = 'initHandlerTable';
19 $this->OutputTags['li']['initHandler'] = 'initHandlerLi';
20 }
21
22 function initHandlerTable( $element, &$attributes, &$sibilingParams, &$parentParams )
23 {
24 $ret = array();
25
26 if( !isset( $attributes['width'] ) )
27 $attributes['width'] = '100%';
28
29 if( !isset( $attributes['border'] ) )
30 $attributes['border'] = 1;
31
32 return $ret;
33 }
34
35 function initHandlerLi( $element, &$attributes, &$sibilingParams, &$parentParams )
36 {
37 if( !isset( $sibilingParams['list_count'] ) )
38 $sibilingParams['list_count'] = 1;
39 else
40 $sibilingParams['list_count']++;
41
42 $ret = array( 'tpl_vars' => array( 'list_count' => $sibilingParams['list_count'],
43 'tag_name' => $element->parentNode->nodeName ) );
44 return $ret;
45 }
46
47 public $TemplatesPath = 'design:content/datatype/pdf/ezxmltags/';
48 }
49
50 ?>
eZPDFXMLOutput
Definition: ezpdfxmloutput.php:12
eZPDFXMLOutput\initHandlerTable
initHandlerTable( $element, &$attributes, &$sibilingParams, &$parentParams)
Definition: ezpdfxmloutput.php:22
eZPDFXMLOutput\__construct
__construct( $xmlData, $aliasedType, $contentObjectAttribute=null)
Definition: ezpdfxmloutput.php:14
eZPDFXMLOutput\initHandlerLi
initHandlerLi( $element, &$attributes, &$sibilingParams, &$parentParams)
Definition: ezpdfxmloutput.php:35
eZPDFXMLOutput\$TemplatesPath
$TemplatesPath
Definition: ezpdfxmloutput.php:47
eZXHTMLXMLOutput
Definition: ezxhtmlxmloutput.php:12
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.