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 ]

get_content

array get_content ( )

returns the Content

Tags:

  • Desc - returns the content
  • Access - private

Parameters:

[ Top ]

get_loop

string get_loop ( $string )

returns first loop in $string

Tags:

  • Desc - returns first loop in $string
  • Access - private

Parameters:

  • string $string - string String, in which a loop could hide

[ Top ]

get_loopname

string get_loopname ( $string )

liefert name of the first loop in $string

Tags:

  • Desc - liefert name of the first loop in $string
  • Access - private

Parameters:

  • string $string - string String, in which a loop could hide

[ 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 ]

process_loop

string process_loop ( $string, $content )

processes loops

Tags:

  • Desc - processes loops
  • Access - private

Parameters:

  • string $string - string String, in which loops could hide
  • content $content - array associative content-array

[ Top ]

process_ssis

void process_ssis ( )

processes Server Side Includes

Tags:

  • Desc - processes Server Side Includes
  • Access - private

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 ]

replace_template_tags

string replace_template_tags ( $content, $string )

replaces all content tags in $string with content

Tags:

  • Desc - replaces all content tags in $string with content
  • Access - private

Parameters:

  • content $content - array associative array
  • string $string - string string, in which content tags could hide

[ Top ]

strip_looptag

string strip_looptag ( $loopname, $string )

renoves the loop tags of the loop $loop in $string

Tags:

  • Desc - renoves the loop tags of the loop $loop in $string
  • Access - private

Parameters:

  • loopname $loopname - string name of the loop whose tags to be removed
  • string $string - string string in which the loop could hide

[ Top ]


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