[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/kernel/classes/datatypes/ezxmltext/handlers/output/ -> ezpdfxmloutput.php (source)

   1  <?php
   2  //
   3  // Definition of eZPDFXMLOutput class
   4  //
   5  // Created on: <25-Sep-2006 15:05:00 ks>
   6  //
   7  // SOFTWARE NAME: eZ publish
   8  // SOFTWARE RELEASE: 3.9.0
   9  // BUILD VERSION: 17785
  10  // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS
  11  // SOFTWARE LICENSE: GNU General Public License v2.0
  12  // NOTICE: >
  13  //   This program is free software; you can redistribute it and/or
  14  //   modify it under the terms of version 2.0  of the GNU General
  15  //   Public License as published by the Free Software Foundation.
  16  //
  17  //   This program is distributed in the hope that it will be useful,
  18  //   but WITHOUT ANY WARRANTY; without even the implied warranty of
  19  //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20  //   GNU General Public License for more details.
  21  //
  22  //   You should have received a copy of version 2.0 of the GNU General
  23  //   Public License along with this program; if not, write to the Free
  24  //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  25  //   MA 02110-1301, USA.
  26  //
  27  //
  28  
  29  /*!
  30  */
  31  
  32  include_once ( 'kernel/classes/datatypes/ezxmltext/handlers/output/ezxhtmlxmloutput.php' );
  33  
  34  class eZPDFXMLOutput extends eZXHTMLXMLOutput
  35  {
  36  
  37      function eZPDFXMLOutput( &$xmlData, $aliasedType, $contentObjectAttribute = null )
  38      {
  39          $this->eZXHTMLXMLOutput( $xmlData, $aliasedType, $contentObjectAttribute );
  40  
  41          $this->OutputTags['table']['initHandler'] = 'initHandlerTable';
  42          $this->OutputTags['li']['initHandler'] = 'initHandlerLi';
  43      }
  44  
  45      function initHandlerTable( &$element, &$attributes, &$sibilingParams, &$parentParams )
  46      {
  47          $ret = array();
  48  
  49          if( !isset( $attributes['width'] ) )
  50              $attributes['width'] = '100%';
  51  
  52          if( !isset( $attributes['border'] ) )
  53              $attributes['border'] = 1;
  54  
  55          return $ret;
  56      }
  57  
  58      function initHandlerLi( &$element, &$attributes, &$sibilingParams, &$parentParams )
  59      {
  60          if( !isset( $sibilingParams['list_count'] ) )
  61              $sibilingParams['list_count'] = 1;
  62          else
  63              $sibilingParams['list_count']++;
  64  
  65          $ret = array( 'tpl_vars' => array( 'list_count' => $sibilingParams['list_count'],
  66                                             'tag_name' => $element->parentNode->nodeName ) );
  67          return $ret;
  68      }
  69  
  70      var $TemplatesPath = 'design:content/datatype/pdf/ezxmltags/';
  71  }
  72  
  73  ?>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7