Class Dwoo_Plugin_if

Description

Implements interfaces:

Conditional block, the syntax is very similar to the php one, allowing () || && and other php operators. Additional operators and their equivalent php syntax are as follow :

eq -> == neq or ne -> != gte or ge -> >= lte or le -> <= gt -> > lt -> < mod -> % not -> ! X is [not] div by Y -> (X % Y) == 0 X is [not] even [by Y] -> (X % 2) == 0 or ((X/Y) % 2) == 0 X is [not] odd [by Y] -> (X % 2) != 0 or ((X/Y) % 2) != 0

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/if.php (line 35)

Dwoo_Plugin
   |
   --Dwoo_Block_Plugin
      |
      --Dwoo_Plugin_if
Direct descendents
Class Description
Dwoo_Plugin_elseif Acts as a php elseif block, allowing you to add one more condition if the previous one(s) didn't match. See the {if} plugin for syntax details
Method Summary
static void postProcessing (Dwoo_Compiler $compiler,  $params,  $prepend,  $append,  $content)
static void preProcessing (Dwoo_Compiler $compiler,  $params,  $prepend,  $append,  $type)
static void replaceKeywords ( $params, Dwoo_Compiler $compiler)
void init ( $rest)
Variables

Inherited Variables

Inherited from Dwoo_Block_Plugin

Dwoo_Block_Plugin::$buffer

Inherited from Dwoo_Plugin

Dwoo_Plugin::$dwoo
Methods
static postProcessing (line 171)
  • 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

Redefined in descendants as:
static preProcessing (line 161)
  • 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

Redefined in descendants as:
static replaceKeywords (line 41)
  • access: public
static void replaceKeywords ( $params, Dwoo_Compiler $compiler)
init (line 37)
  • access: public
void init ( $rest)
  • array $rest

Redefined in descendants as:

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:39 +0200 by phpDocumentor 1.4.0