phpDocumentor Naos_Template
[ class tree: Naos_Template ] [ index: Naos_Template ] [ all elements ]

Class: Naos_Template_HtmlCompiler_AbstractHandler

Source Location: /Template/HtmlCompiler/AbstractHandler.php

Class Naos_Template_HtmlCompiler_AbstractHandler

Class Overview

Naos_Template_HtmlCompiler_AbstractHandler allows to implement a handler which defines operations on an html document while parsing it.

Warning: attributes and text is provided in encoded form only. Decoding might destroy smarty statements, therefore it is the developer who should decide, if he wants to decode attributes and/or text provided by the handler calls.

You can use the encode*() and decode*() functions for encoding and decoding.

Located in /Template/HtmlCompiler/AbstractHandler.php [line 30]



		
				Author(s):
		
API Tags:
Abstract:  

Information Tags:
Copyright:  Copyright (c) 2008 Jupiter GmbH
License:  http://www.naos-framework.com/website.naos.framework/en/license

Methods

[ Top ]
Descendants
Child Class Description
Naos_Template_SmartyCompiler_DefaultHandler Naos_Template_SmartyCompiler_DefaultHandler

[ Top ]
Method Summary
static void   decodeTagAttribute()   Decodes a tag attribute
static void   decodeText()   Decodes text
static void   encodeTagAttribute()   Encodes a tag attribute
static void   encodeText()   Encodes text
void   documentEnd()   Called by Naos_Template_HtmlCompiler when the document ends
void   documentStart()   Called by Naos_Template_HtmlCompiler when the document starts
void   renderTag()   Renders an tag with text
Naos_Template_HtmlCompiler_HandlerOperation   tagEnd()   Called by Naos_Template_HtmlCompiler when a tag ends
Naos_Template_HtmlCompiler_HandlerOperation   tagStart()   Called by Naos_Template_HtmlCompiler when a new tag starts
Naos_Template_HtmlCompiler_HandlerOperation   text()   Called by Naos_Template_HtmlCompiler when text is available

[ Top ]
Methods
static method decodeTagAttribute  [line 82]

  static void decodeTagAttribute( string $value  )

Decodes a tag attribute

Parameters:
string   $value: 

API Tags:
Access:  public


[ Top ]
static method decodeText  [line 100]

  static void decodeText( $value  )

Decodes text

Parameters:
   $value: 

API Tags:
Access:  public


[ Top ]
static method encodeTagAttribute  [line 72]

  static void encodeTagAttribute( string $value  )

Encodes a tag attribute

Parameters:
string   $value: 

API Tags:
Access:  public


[ Top ]
static method encodeText  [line 92]

  static void encodeText( string $value  )

Encodes text

Parameters:
string   $value: 

API Tags:
Access:  public


[ Top ]
documentEnd  [line 65]

  void documentEnd( )

Called by Naos_Template_HtmlCompiler when the document ends


API Tags:
Abstract:  
Access:  public


Redefined in descendants as:

[ Top ]
documentStart  [line 37]

  void documentStart( )

Called by Naos_Template_HtmlCompiler when the document starts


API Tags:
Abstract:  
Access:  public


Redefined in descendants as:

[ Top ]
renderTag  [line 108]

  void renderTag( $name, $attributes, $text  )

Renders an tag with text

Parameters:
   $name: 
   $attributes: 
   $text: 

API Tags:
Access:  protected


[ Top ]
tagEnd  [line 58]

Called by Naos_Template_HtmlCompiler when a tag ends

Parameters:
   $name: 
array   $attributes: 
Naos_Template_HtmlCompiler_HandlerOperation   $tag_operation: 

API Tags:
Abstract:  
Access:  public


Redefined in descendants as:

[ Top ]
tagStart  [line 44]

  Naos_Template_HtmlCompiler_HandlerOperation tagStart( $name, $attributes  )

Called by Naos_Template_HtmlCompiler when a new tag starts

Parameters:
   $name: 
array   $attributes: 

API Tags:
Abstract:  
Access:  public


Redefined in descendants as:

[ Top ]
text  [line 51]

Called by Naos_Template_HtmlCompiler when text is available

Parameters:
   $text: 

API Tags:
Abstract:  
Access:  public


Redefined in descendants as:

[ Top ]

Documentation generated on Sat, 13 Sep 2008 01:40:33 -0400 by phpDocumentor 1.4.0