Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: ./approot/presentation/template.php
SIMU prototüüp nr 4 - Presentation

Template

Template

 

private class Template


 
Direct known subclasses: Component, ListView

Public Method Summary

void

Template([ string $filename ], string $path)

Constructor

Private Method Summary

void

set_path(string $path)

Set the path to the template files.
void

set(string $name, mixed $value)

Set a template variable.
void

set_vars(array $vars, [ boolean $clear ])

Set a bunch of variables at once using an associative array.
string

fetch(string $file_name)

Open, parse, and return the template file.
void

set_tplfile( $filename)

Warning: documentation is missing.
void

def_tplfile( $filename)

Vaikimisi template fail - juhul kui pole juba väärtustatud
void

set_parent( &$parent)

Template :: set_parent()
void

init()

Warning: documentation is missing.
void

set_glue( $name, $value)

Warning: documentation is missing.
void

render()

Warning: documentation is missing.
void

set_template( $name, &$template)

Warning: documentation is missing.
void

add_template( $name, &$template)

Warning: documentation is missing.
void

set_over_template( &$template)

Warning: documentation is missing.

Private Field Summary

unknown

$over_template

template, millega võidakse asendada käesolev template.
unknown

$vars

unknown

$path

unknown

$templates

unknown

$filename

unknown

$glues

unknown

$parent

Public Method Details

Template

public void Template( [ string $filename ], string $path )

  Constructor

Parameter
string $filename = >>null,<<
the path to the templates
string $path
Warning: documentation is missing.
Returns void


Private Method Details

set_path

private void set_path( string $path )

  Set the path to the template files.

Parameter
string $path
path to template files
Returns void


set

private void set( string $name, mixed $value )

  Set a template variable.

Parameter
string $name
name of the variable to set
mixed $value
the value of the variable
Returns void


set_vars

private void set_vars( array $vars, [ boolean $clear ] )

  Set a bunch of variables at once using an associative array.

Parameter
array $vars
array of vars to set
boolean $clear = >>false<<
whether to completely overwrite the existing vars
Returns void


fetch

private string fetch( string $file_name )

  Open, parse, and return the template file.

Parameter
string $file_name
the template file name
Returns string


set_tplfile

private void set_tplfile( $filename )

 

Warning: documentation is missing.

Parameter
$filename
Warning: documentation is missing.
Returns void


def_tplfile

private void def_tplfile( $filename )

  Vaikimisi template fail - juhul kui pole juba väärtustatud

Parameter
$filename
Warning: documentation is missing.
Returns void


set_parent

private void set_parent( &$parent )

  Template :: set_parent()
Vajadusel võivad järglased siin teostada mingeid tegevusi, kui on näiteks mingi inf vaja parentile edasi anda, või ennast kohandada kuidagi parentiga.

Parameter
&$parent
Warning: documentation is missing.
Returns void


init

private void init( )

 

Warning: documentation is missing.

Returns void


set_glue

private void set_glue( $name, $value )

 

Warning: documentation is missing.

Parameter
$name
Warning: documentation is missing.
$value
Warning: documentation is missing.
Returns void


render

private void render( )

 

Warning: documentation is missing.

Returns void


set_template

private void set_template( $name, &$template )

 

Warning: documentation is missing.

Parameter
$name
Warning: documentation is missing.
&$template
Warning: documentation is missing.
Returns void


add_template

private void add_template( $name, &$template )

 

Warning: documentation is missing.

Parameter
$name
Warning: documentation is missing.
&$template
Warning: documentation is missing.
Returns void


set_over_template

private void set_over_template( &$template )

 

Warning: documentation is missing.

Parameter
&$template
Warning: documentation is missing.
Returns void


Private Field Details

$over_template

private unknown $over_template

>><<

template, millega võidakse asendada käesolev template.
'alam'-template, mis katab täielikult antud templeidi, nii et antud templeidi asemel renderdatakse alamtempleit.


$vars

private unknown $vars

>><<



$path

private unknown $path

>><<



$templates

private unknown $templates

>><<



$filename

private unknown $filename

>><<



$glues

private unknown $glues

>><<



$parent

private unknown $parent

>><<




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta