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

Class: Naos_Template_HtmlCompiler_HandlerOperation

Source Location: /Template/HtmlCompiler/HandlerOperation.php

Class Naos_Template_HtmlCompiler_HandlerOperation

Class Overview

Naos_Template_HtmlCompiler_HandlerOperation defines an operation on an tag for Naos_Template_HtmlCompiler

Attention, we operate only with encoded data!

Located in /Template/HtmlCompiler/HandlerOperation.php [line 27]



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

Methods

[ Top ]
Method Summary
bool   checkOperation()   Checks if a given operation is enabled
string   getAppendData()   Returns data for O_APPEND_CONTENT
array   getAttributesData()   Get attributes for O_SET_ATTRIBUTES
string   getNameData()   Get tag name for O_SET_NAME
string   getPrependData()   Returns data for O_PREPEND_CONTENT
string   getReplaceData()   Gets data for replace operation
Naos_Template_HtmlCompiler_HandlerOperation   merge()   Merges two TagOperations
void   __construct()   Constructor
void   setAppendData()   Set data for O_APPEND_CONTENT
void   setAttributesData()   Set attributes for O_SET_ATTRIBUTES
void   setNameData()   Set tag name for O_SET_NAME
void   setPrependData()   Set data for O_PREPEND_CONTENT
void   setReplaceData()   Sets data for replace operation. Data should be encoded.

[ Top ]
Methods
checkOperation  [line 123]

  bool checkOperation( $operation  )

Checks if a given operation is enabled

Parameters:
   $operation: 

API Tags:
Access:  public


[ Top ]
getAppendData  [line 203]

  string getAppendData( )

Returns data for O_APPEND_CONTENT


API Tags:
Access:  public


[ Top ]
getAttributesData  [line 183]

  array getAttributesData( )

Get attributes for O_SET_ATTRIBUTES


API Tags:
Access:  public


[ Top ]
getNameData  [line 163]

  string getNameData( )

Get tag name for O_SET_NAME


API Tags:
Access:  public


[ Top ]
getPrependData  [line 223]

  string getPrependData( )

Returns data for O_PREPEND_CONTENT


API Tags:
Access:  public


[ Top ]
getReplaceData  [line 143]

  string getReplaceData( )

Gets data for replace operation


API Tags:
Access:  public


[ Top ]
merge  [line 233]

Merges two TagOperations

Parameters:
self   $other: 

API Tags:
Access:  public


[ Top ]
Constructor __construct  [line 86]

  void __construct( $operation, [ $data = null]  )

Constructor

Instantiates a TagOperation with a set of given operations O_*

Parameters:
   $operation: 
   $data: 

API Tags:
Access:  public


[ Top ]
setAppendData  [line 193]

  void setAppendData( string $data  )

Set data for O_APPEND_CONTENT

Parameters:
string   $data: 

API Tags:
Access:  public


[ Top ]
setAttributesData  [line 173]

  void setAttributesData( $attributes  )

Set attributes for O_SET_ATTRIBUTES

Parameters:
array   $attributes: 

API Tags:
Access:  public


[ Top ]
setNameData  [line 153]

  void setNameData( $name  )

Set tag name for O_SET_NAME

Parameters:
   $name: 

API Tags:
Access:  public


[ Top ]
setPrependData  [line 213]

  void setPrependData( string $data  )

Set data for O_PREPEND_CONTENT

Parameters:
string   $data: 

API Tags:
Access:  public


[ Top ]
setReplaceData  [line 133]

  void setReplaceData( $data  )

Sets data for replace operation. Data should be encoded.

Parameters:
   $data: 

API Tags:
Access:  public


[ Top ]
Constants
O_APPEND_CONTENT = 64 [line 38]

[ Top ]
O_IGNORE = 1 [line 32]

Type constants


[ Top ]
O_IGNORE_CONTENT = 8 [line 35]

[ Top ]
O_INNER_REPLACE = 2 [line 33]

[ Top ]
O_OUTER_REPLACE = 4 [line 34]

[ Top ]
O_PREPEND_CONTENT = 128 [line 39]

[ Top ]
O_SET_ATTRIBUTES = 32 [line 37]

[ Top ]
O_SET_NAME = 16 [line 36]

[ Top ]

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