Pluf_Template_Tag_Mytag Class Reference

Inheritance diagram for Pluf_Template_Tag_Mytag:

Pluf_Template_Tag

List of all members.

Public Member Functions

 start ($param1, $param2)
 genStart ()
 end ($param1)
 genEnd ()


Detailed Description

Custom tag example.

Member Function Documentation

Pluf_Template_Tag_Mytag::start ( param1,
param2 
)

Perform some operations at the opening of the tag {mytag 'param1', 'param2'}.

You can access the template context through $this->context

Pluf_Template_Tag_Mytag::genStart (  ) 

Generate some valid PHP code to be put in the template.

The code generated by this function is included in the template just after the call to $this->start() if the start() method is implemented.

You cannot access the template context but you can write code that is modifying it through $t

Pluf_Template_Tag_Mytag::end ( param1  ) 

Perform some operations at the closing of the tag {/mytag 'param1'}.

You can access the template context through $this->context

Pluf_Template_Tag_Mytag::genEnd (  ) 

Generate some valid PHP code to be put in the template.

The code generated by this function is included in the template just after the call to $this->end() if the end() method is implemented.

You cannot access the template context but you can write code that is modifying it through $t


The documentation for this class was generated from the following file:

Generated on Wed Feb 3 15:44:52 2010 for Pluf by  doxygen