Class TestTemplate

Description

Template class.

The interface was originally inspired by PHPLib templates, and the template file formats are quite similar.

  • version: 1.1
  • author: Nathan Codding of the phpBB group

Located in /tests/Core/TemplateTest.php (line 5)

Template
   |
   --TestTemplate
Method Summary
void generateBlockDataRef ( $blockname,  $includeLastIterator)
void generateBlockVarRef ( $namespace,  $varname)
void loadFile ( $handle)
void makeFilename ( $filename)
Methods
generateBlockDataRef (line 12)
  • access: public
void generateBlockDataRef ( $blockname,  $includeLastIterator)
  • $blockname
  • $includeLastIterator

Redefinition of:
Template::generateBlockDataRef()
Generates a reference to the array of data values for the given (possibly nested) block namespace. This is a string of the form: $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['$childN']
generateBlockVarRef (line 15)
  • access: public
void generateBlockVarRef ( $namespace,  $varname)
  • $namespace
  • $varname

Redefinition of:
Template::generateBlockVarRef()
Generates a reference to the given variable inside the given (possibly nested) block namespace. This is a string of the form: ' . $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['varname'] . ' It's ready to be inserted into an "echo" line in one of the templates.
loadFile (line 9)
  • access: public
void loadFile ( $handle)
  • $handle

Redefinition of:
Template::loadFile()
If not already done, load the file for the given handle and populate the uncompiled_code[] hash with its code. Do not compile.
makeFilename (line 6)
  • access: public
void makeFilename ( $filename)
  • $filename

Redefinition of:
Template::makeFilename()
Generates a full path+filename for the given filename, which can either be an absolute name, or a name relative to the rootdir for this Template object.

Inherited Methods

Inherited From Template

Template::Template()
Template::assignBlockVars()
Template::assignVar()
Template::assignVars()
Template::compile()
Template::destroy()
Template::execute()
Template::generateBlockDataRef()
Template::generateBlockVarRef()
Template::getCompiledCode()
Template::getUncompiledCode()
Template::loadFile()
Template::makeFilename()
Template::setFilenames()
Template::setRootdir()

Documentation generated on Mon, 11 Dec 2006 22:42:39 +0300 by phpDocumentor 1.3.0