Class Savant3_Filter_trimwhitespace

Description

Filter to remove extra white space within the text.

Located in /Savant3/resources/Savant3_Filter_trimwhitespace.php (line 35)

Savant3_Filter
   |
   --Savant3_Filter_trimwhitespace
Method Summary
static string filter (string $buffer)
static string replace (string $search, string $replace, string &$buffer)
Variables

Inherited Variables

Inherited from Savant3_Filter

Savant3_Filter::$Savant
Methods
static method filter (line 55)

Removes extra white space within the text.

Trim leading white space and blank lines from template source after it gets interpreted, cleaning up code and saving bandwidth. Does not affect

, <script></script>, or  <textarea></textarea> blocks.

  • return: The filtered text.
  • access: public
static string filter (string $buffer)
  • string $buffer: The source text to be filtered.

Redefinition of:
Savant3_Filter::filter()
Stub method for extended behaviors.
static method replace (line 129)

Does a simple search-and-replace on the source text.

  • return: The text after search-and-replace.
  • access: protected
static string replace (string $search, string $replace, string &$buffer)
  • string $search: The string to search for.
  • string $replace: Replace with this text.
  • string &$buffer: The source text.

Inherited Methods

Inherited From Savant3_Filter

Savant3_Filter::__construct()
Savant3_Filter::filter()

Documentation generated on Tue, 31 Mar 2009 16:24:42 -0500 by phpDocumentor 1.4.2