Class Dwoo_Plugin_capture

Description

Implements interfaces:

Captures all the output within this block and saves it into {$.capture.default} by default, or {$.capture.name} if you provide another name.

  * name : capture name, used to read the value afterwards
  * assign : if set, the value is also saved in the given variable
  * cat : if true, the value is appended to the previous one (if any) instead of overwriting it
If the cat parameter is true, the content will be appended to the existing content

Example :

  1.  {capture "foo"}
  2.    Anything in here wont showit will be saved for later use..
  3.  {/capture}
  4.  Output was {$.capture.foo}

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

This file is released under the LGPL "GNU Lesser General Public License" More information can be found here: http://www.gnu.org/copyleft/lesser.html

Located in /plugins/builtin/blocks/capture.php (line 39)

Dwoo_Plugin
   |
   --Dwoo_Block_Plugin
      |
      --Dwoo_Plugin_capture
Method Summary
static void postProcessing (Dwoo_Compiler $compiler,  $params,  $prepend,  $append,  $content)
static void preProcessing (Dwoo_Compiler $compiler,  $params,  $prepend,  $append,  $type)
void init ([ $name = 'default'], [ $assign = null], [ $cat = false], [ $trim = false])
Variables

Inherited Variables

Inherited from Dwoo_Block_Plugin

Dwoo_Block_Plugin::$buffer

Inherited from Dwoo_Plugin

Dwoo_Plugin::$dwoo
Methods
static postProcessing (line 50)
  • access: public
static void postProcessing (Dwoo_Compiler $compiler,  $params,  $prepend,  $append,  $content)
  • Dwoo_Compiler $compiler
  • array $params
  • $prepend
  • $append
  • $content

Redefinition of:
Dwoo_Block_Plugin::postProcessing()
called at compile time to define what the block should output in the compiled template code, happens when the block is ended
static preProcessing (line 45)
  • access: public
static void preProcessing (Dwoo_Compiler $compiler,  $params,  $prepend,  $append,  $type)

Redefinition of:
Dwoo_Block_Plugin::preProcessing()
called at compile time to define what the block should output in the compiled template code, happens when the block is declared
init (line 41)
  • access: public
void init ([ $name = 'default'], [ $assign = null], [ $cat = false], [ $trim = false])
  • $name
  • $assign
  • $cat
  • $trim

Inherited Methods

Inherited From Dwoo_Block_Plugin

Dwoo_Block_Plugin::buffer()
Dwoo_Block_Plugin::end()
Dwoo_Block_Plugin::postProcessing()
Dwoo_Block_Plugin::preProcessing()
Dwoo_Block_Plugin::process()

Inherited From Dwoo_Plugin

Dwoo_Plugin::__construct()
Dwoo_Plugin::paramsToAttributes()

Documentation generated on Sun, 03 Aug 2008 15:12:19 +0200 by phpDocumentor 1.4.0