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. |
ctlViewService()
void ctlViewService()
Calls ctlTpl constructor and sets default template directory to TPL_DIR
- Uses the global variables:
- TPL_DIR
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
Submit a bug
This document was generated by phpdocgen 0.17-rc3.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)