[ Index ]
 

Code source de eZ Publish 3.9.0

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

title

Body

[fermer]

/lib/eztemplate/classes/ -> eztemplatetextelement.php (source)

   1  <?php
   2  //
   3  // Definition of eZTemplateTextElement class
   4  //
   5  // Created on: <01-Mar-2002 13:50:45 amos>
   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    \class eZTemplateTextElement eztemplatetextelement.php
  31    \ingroup eZTemplateElements
  32    \brief Represents a text element in the template tree.
  33  
  34   This class containst the text of a text element.
  35  */
  36  
  37  class eZTemplateTextElement
  38  {
  39      /*!
  40       Initializes the object with the text.
  41      */
  42      function eZTemplateTextElement( $text )
  43      {
  44          $this->Text = $text;
  45      }
  46  
  47      /*!
  48       Returns #text.
  49      */
  50      function name()
  51      {
  52          return "#text";
  53      }
  54  
  55      function serializeData()
  56      {
  57          return array( 'class_name' => 'eZTemplateTextElement',
  58                        'parameters' => array( 'text' ),
  59                        'variables' => array( 'text' => 'Text' ) );
  60      }
  61  
  62      /*!
  63       Appends the element text to $text.
  64      */
  65      function process( &$tpl, &$text )
  66      {
  67          $text .= $this->Text;
  68      }
  69  
  70      /*!
  71       Returns a reference to the element text.
  72      */
  73      function &text()
  74      {
  75          return $this->Text;
  76      }
  77  
  78      /// The element text
  79      var $Text;
  80  }
  81  
  82  ?>


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