Class Template

Description

Class Template is a View based on a template file.

  • todo: dynamic search&replace patterns
  • todo: think about this again

Located in /template.php (line 16)

PHOOL
   |
   --HTTPResponse
      |
      --View
         |
         --Template
Method Summary
Template Template ([ &$forward = 0])
string parse ()
void render ()
void set_template ( $filename)
Variables
Methods
Constructor Template (line 21)

Templatre constructor

Template Template ([ &$forward = 0])
  • &$forward
parse (line 32)

Parse template and return parsed content

string parse ()
render (line 62)

Render template

void render ()

Redefinition of:
View::render()
Create a valid HTTPResponse from buffered output and return it
set_template (line 49)

Set a template base file

void set_template ( $filename)
  • $filename

Inherited Methods

Inherited From View

View::View()
View::render()

Inherited From HTTPResponse

HTTPResponse::HTTPResponse()
HTTPResponse::appendContent()
HTTPResponse::send()
HTTPResponse::sendBody()
HTTPResponse::sendHeaders()
HTTPResponse::sendStatus()
HTTPResponse::setContent()
HTTPResponse::setEncoding()
HTTPResponse::setHeader()
HTTPResponse::setStatus()
HTTPResponse::__tostring()

Inherited From PHOOL

PHOOL::PHOOL()
PHOOL::debug()
PHOOL::error()
PHOOL::get_errors()
PHOOL::handle_error()
PHOOL::has_error()
PHOOL::log_error()
PHOOL::set_debug()
PHOOL::set_logdir()
PHOOL::set_loglevel()
Class Constants

Inherited Constants

Inherited from PHOOL

PHOOL::ERROR
PHOOL::UNKNOWN
PHOOL::USER
PHOOL::WARNING

Documentation generated on Tue, 12 May 2009 23:09:42 +0200 by phpDocumentor 1.4.1