Class: pet

Source Location: Program_Root/class_pet.eng.inc.php

Class Overview

pet

P.E.T.: Processor Engine for Templates

Author(s):

Version:

  • 1.4

Copyright:

  • GNU-GPL

Variables

Methods


Child classes:

Inherited Variables

Inherited Methods



Class Details

P.E.T.: Processor Engine for Templates
This class is published under the GNU license. Verbatim copying and dis-
tribution is permitted in any medium, as long as this notice is preserved
and the original author is mentioned. The author is always curious in which
projects this class is used, so sending a short email would be great.

Tags:

[ Top ]


Class Variables

$content =

Tags:

Type: mixed

Overrides:

[ Top ]

$debug = FALSE

Tags:

Type: mixed

Overrides:

[ Top ]

$file =

Tags:

Type: mixed

Overrides:

[ Top ]


Class Methods

add_content

void add_content ( $content, $name )

assigns content to a content tag

Tags:

  • Desc - assigns content to a content tag
  • Access - public

Parameters:

  • content $content - string content, can also be an array
  • name $name - string

[ Top ]

assign

void assign ( $content, $name )

alias for add_content

Tags:

  • Desc - alias for add_content
  • Access - public

Parameters:

  • content $content - string content, can also be an array
  • name $name - string

[ Top ]

debugging

void debugging ( $switch )

turns debugging on or of

Tags:

  • Desc - turns debugging on or of
  • Access - public

Parameters:

  • switch $switch - boolean TRUE oder FALSE for on or off

[ Top ]

dump

void dump ( $filename )

writes the tempalte to a new file at $filename

Tags:

  • Desc - writes the tempalte to a new file at $filename
  • Access - public

Parameters:

  • filename $filename - string

[ Top ]

get

string get ( )

returns the template

Tags:

  • Desc - returns the template
  • Access - public

Parameters:

[ Top ]

output

void output ( )

sends the template to the browser for displaying

Tags:

  • Desc - sends the template to the browser for displaying
  • Access - public

Parameters:

[ Top ]

parse

boolean parse ( )

processes the template: inserts content and SSIs

Tags:

  • Desc - processes the template: inserts content and SSIs
  • Access - public

Parameters:

[ Top ]

constructor pet

void constructor pet ( )

class constructor

Tags:

  • Desc - class constructor
  • Access - public

Parameters:

[ Top ]

read_file

boolean read_file ( $filename )

reads the given file as template

Tags:

  • Desc - reads the given file as template
  • Access - public

Parameters:

  • filename $filename - string filename incl. relative path

[ Top ]


Documention generated on Thu, 9 Jan 2003 08:22:13 +0100 by phpDocumentor 1.1.0