Overview   Package   Tree   Index 
Tv2 documentation
PREV  NEXT FRAMES  NO FRAME 
SUMMARY:  FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

pyramid-framework
Class ctlViewService

ctlTpl
  |
  +--ctlViewService

class ctlViewService
extends ctlTpl

View service class for Pyramid framework

Authors:
Emilis Dambauskas (emilis@gildija.lt)
Version:
$Id: ctlViewService.class.php,v 1.4 2003/08/04 15:36:14 lunaticlt Exp $
Copyright:
2002–2003 Emilis Dambauskas under Artistic license

Change logs
2003-08-04 Template checking is performed by default.


Constructor Summary
void ctlViewService()
Calls ctlTpl constructor and sets default template directory to TPL_DIR

Method Summary
string process(string $name, [boolean $clr_vars], [string $par2])
Parses the given template file and clears vars if needed.
string template(string $name, [string $myname], [boolean $clr_vars], [string $par2])
Includes the result from the template script that is being parsed now into template specified by $name.

Methods inherited from class ctlTpl and not overridden
checkTpl, checkVars, clearVars, loadLibrary, regVar, setVar, setVars, unsetAllVars, unsetVar

Constructor Detail

ctlViewService()

void ctlViewService()

Calls ctlTpl constructor and sets default template directory to TPL_DIR

Uses the global variables:
TPL_DIR

Method Detail

process()

string process(string $name, [boolean $clr_vars], [string $par2])

Parses the given template file and clears vars if needed.

Parameters:
name - template file name or function name.
clr_vars - should the variables be cleared after parsing? Default: FALSE.
par2 - function library name. If set function library is included and function specified by $name called.
Returns:
output from template

template()

string template(string $name, [string $myname], [boolean $clr_vars], [string $par2])

Includes the result from the template script that is being parsed now into template specified by $name. The result is stored in a variable specified by $myname. NOTICE: this method should be called AT THE END of any template script.

Parameters:
name - template file name or function name.
myname - variable name for included text.
clr_vars - should the variables be cleared after parsing? Default: FALSE.
par2 - function library name. If set function library is included and function specified by $name called.
Returns:
output from template

 Overview   Package   Tree   Index 
Tv2 documentation
PREV  NEXT FRAMES  NO FRAME 
SUMMARY:  FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Submit a bug

This document was generated by phpdocgen 0.17-rc3.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)