/lib/mtemplate.inc.php

Description

Helper functions & classes to build web pages based on template documents

  • author: Pascal (Meta) Havelange (havelangep@gmail.com)
  • copyright: © 2007 All rights reserved
Classes
Class Description
MTemplate Helper class for template document creation
MTemplateObject Interface for objects used by the MTemplate class
MTemplateObject_mysql Specialize MTemplateObject class to help handle MySQL queries
Functions
cb_crlf_to_br (line 614)

Convert CR & LF to HTML paragraphs

string cb_crlf_to_br (string $data)
  • string $data
cb_html_attribute_value (line 580)

Escapes a string so that it can be used as an attribute value in an HTML document

string cb_html_attribute_value (string $data)
  • string $data
cb_html_escape (line 571)

Escapes HTML special characters

string cb_html_escape (string $data)
  • string $data
cb_html_tidy (line 589)

Cleanup HTML data to make it fits strictly with XHTML format

string cb_html_tidy (string $data)
  • string $data
load_file (line 418)

Reads an entire file and returns it's content

  • author: Pascal (Meta) Havelange (havelangep@gmail.com)
  • copyright: © 2007 All rights reserved
string load_file (string $filename, [integer $block_size = 8192])
  • string $filename: Full path of the file
  • integer $block_size: Default size of the block for read operation

Documentation generated on Thu, 10 Dec 2009 15:21:31 +0100 by phpDocumentor 1.4.1