zogan
[ class tree: zogan ] [ index: zogan ] [ all elements ]

Class: Zogan

Source Location: /zogan.php

Class Overview

PEAR
   |
   --Zogan

ZOGAN Main Class.


Author(s):

Methods


Child classes:

Zogan_Compiler
ZOGAN user interfase for template compiling

Inherited Variables

Inherited Methods


Class Details

[line 69]
ZOGAN Main Class.



Tags:

access:  public


[ Top ]


Class Methods


constructor Zogan [line 115]

Zogan Zogan( )

constructor



[ Top ]

method compile [line 352]

bool compile( )

compiles the template file



[ Top ]

method display [line 263]

bool|PEARError display( array $data)

displays the template results



Parameters:

array   $data   model data

[ Top ]

method expand [line 338]

bool|PEARError expand( sting &$output, array $data)

gets the template results as string



Parameters:

sting   $output   variable for output
array   $data   model data

[ Top ]

method removeCompiled [line 378]

bool removeCompiled( )

removes the compiled template file



[ Top ]

method setCompileDir [line 160]

true|PEARError setCompileDir( stirng $dirname)

sets the path for the directory where compiled files will be stored



Parameters:

stirng   $dirname   directory name

[ Top ]

method setFormatOption [line 417]

void setFormatOption( mixed $type, mixed $option)

sets option for content formating



[ Top ]

method setFunctions [line 252]

string setFunctions( array $funcs)

sets the function resouces to modify model data



Parameters:

array   $funcs  

[ Top ]

method setNoEscapeVars [line 238]

string setNoEscapeVars( array $vars)

sets the variable names not to be escaped



Parameters:

array   $vars  

[ Top ]

method setOption [line 222]

void setOption( string $key, mixed $val)

sets option

 Key                  Meaning. defalult.
 'force_compile'      when true, template will be compiled everytime. false.
 'check_timestamp'    when true, modified time of template will be checked. true.
 'debug'              when true, debug information displayed and compile file removed. false.
 'mode'               mode for compiled files and directories. 0777.
 




Parameters:

string   $key   key for option
mixed   $val   value of option

[ Top ]

method setTemplateFile [line 136]

void setTemplateFile( mixed $template_file, stirng $template)

sets the path for the template file to display



Parameters:

stirng   $template  

[ Top ]


Documentation generated on Fri, 18 Jun 2004 19:40:21 +0900 by phpDocumentor 1.2.3