XML_Transformer
[ class tree: XML_Transformer ] [ index: XML_Transformer ] [ all elements ]

Class: XML_Transformer_Namespace_PHP

Source Location: /XML_Transformer-1.1.2/XML/Transformer/Namespace/PHP.php

Class Overview

XML_Transformer_Namespace
   |
   --XML_Transformer_Namespace_PHP

Handler for the PHP Namespace.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: XML_Transformer_Namespace

XML_Transformer_Namespace::endElement()
Wrapper for endElement handler.
XML_Transformer_Namespace::getLock()
Lock all other namespace handlers.
XML_Transformer_Namespace::initObserver()
Called by XML_Transformer at initialization time.
XML_Transformer_Namespace::releaseLock()
Releases a lock.
XML_Transformer_Namespace::startElement()
Wrapper for startElement handler.

Class Details

[line 76]
Handler for the PHP Namespace.

Example

  1.  <?php
  2.  require_once 'XML/Transformer_OutputBuffer.php';
  3.  require_once 'XML/Transformer/Namespace/PHP.php';
  4.  
  5.  $t = new XML_Transformer_OutputBuffer;
  6.  $t->overloadNamespace('php'new XML_Transformer_Namespace_PHP);
  7.  $t->start();
  8.  ?>
  9.  <html>
  10.    <body>
  11.      <dl>
  12.        <dd>Current time: <php:expr>time()</php:expr></dd>
  13.        <php:setvariable name="foo">bar</php:setvariable>
  14.        <dd>foo = <php:getvariable name="foo"/></dd>
  15.      </dl>
  16.  
  17.      <php:namespace name="my">
  18.        <php:define name="tag">
  19.          <h1 align="$align">$content</h1>
  20.        </php:define>
  21.      </php:namespace>
  22.  
  23.      <my:tag align="center">Some Text</my:tag>
  24.    </body>
  25.  </html>

Output

  1.  <html>
  2.    <body>
  3.      <dl>
  4.        <dd>Current time: 1032158587</dd>
  5.        <dd>foo = bar</dd>
  6.      </dl>
  7.  
  8.      <h1 align="center">Some Text</h1>
  9.    </body>
  10.  </html>



[ Top ]


Class Variables

$defaultNamespacePrefix =  'php'

[line 83]

  • Access: public

Type:   boolean
Overrides:   Array


[ Top ]



Method Detail

end_cookievariable   [line 342]

string end_cookievariable( string $cdata)

  • Access: public

Parameters:

string   $cdata   — 

[ Top ]

end_define   [line 140]

string end_define( string $cdata)

  • Access: public

Parameters:

string   $cdata   — 

[ Top ]

end_expr   [line 241]

string end_expr( string $cdata)

  • Access: public

Parameters:

string   $cdata   — 

[ Top ]

end_getparameter   [line 294]

string end_getparameter( string $cdata)

  • Access: public

Parameters:

string   $cdata   — 

[ Top ]

end_getvariable   [line 414]

string end_getvariable( string $cdata)

  • Access: public

Parameters:

string   $cdata   — 

[ Top ]

end_logic   [line 263]

string end_logic( string $cdata)

  • Access: public

Parameters:

string   $cdata   — 

[ Top ]

end_namespace   [line 205]

string end_namespace( string $cdata)

  • Access: public

Parameters:

string   $cdata   — 

[ Top ]

end_postparameter   [line 318]

string end_postparameter( string $cdata)

  • Access: public

Parameters:

string   $cdata   — 

[ Top ]

end_servervariable   [line 366]

string end_servervariable( string $cdata)

  • Access: public

Parameters:

string   $cdata   — 

[ Top ]

end_sessionvariable   [line 390]

string end_sessionvariable( string $cdata)

  • Access: public

Parameters:

string   $cdata   — 

[ Top ]

end_setvariable   [line 440]

string end_setvariable( string $cdata)

  • Access: public

Parameters:

string   $cdata   — 

[ Top ]

start_cookievariable   [line 330]

string start_cookievariable( array $attributes)

  • Access: public

Parameters:

array   $attributes   — 

[ Top ]

start_define   [line 123]

string start_define( array $attributes)

  • Access: public

Parameters:

array   $attributes   — 

[ Top ]

start_expr   [line 231]

string start_expr( array $attributes)

  • Access: public

Parameters:

array   $attributes   — 

[ Top ]

start_getparameter   [line 282]

string start_getparameter( array $attributes)

  • Access: public

Parameters:

array   $attributes   — 

[ Top ]

start_getvariable   [line 402]

string start_getvariable( array $attributes)

  • Access: public

Parameters:

array   $attributes   — 

[ Top ]

start_logic   [line 253]

string start_logic( array $attributes)

  • Access: public

Parameters:

array   $attributes   — 

[ Top ]

start_namespace   [line 183]

string start_namespace( array $attributes)

  • Access: public

Parameters:

array   $attributes   — 

[ Top ]

start_postparameter   [line 306]

string start_postparameter( array $attributes)

  • Access: public

Parameters:

array   $attributes   — 

[ Top ]

start_servervariable   [line 354]

string start_servervariable( array $attributes)

  • Access: public

Parameters:

array   $attributes   — 

[ Top ]

start_sessionvariable   [line 378]

string start_sessionvariable( array $attributes)

  • Access: public

Parameters:

array   $attributes   — 

[ Top ]

start_setvariable   [line 426]

string start_setvariable( array $attributes)

  • Access: public

Parameters:

array   $attributes   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:48:10 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.