Class _Cmd_When

Description

Ein bedingter Befehl wie IF, aber ohne ein Block zu sein.

 {#WHEN if=$phpexpression then=first else=second}

Wenn die $phpexpression (siehe #IF-Befehl) wahr ist, wird first ausgegeben. Ansonsten second.

Beispiele:

 {#WHEN $var true false}
 {#WHEN "$var == 1" "eine Stunde" "$var Stunden"}

Located in /web/mod/mod.template.compiler.php (line 865)

_Cmd
   |
   --_Cmd_When
Variable Summary
mixed $_Else
mixed $_If
mixed $_Then
Method Summary
void compile ( $NSIndex,  $Depth)
void init ( $param)
Variables
mixed $_Else = "" (line 869)
mixed $_If = "" (line 867)
mixed $_Then = "" (line 868)
Methods
compile (line 882)
void compile ( $NSIndex,  $Depth)
  • $NSIndex
  • $Depth

Redefinition of:
_Cmd::compile()
init (line 871)
void init ( $param)
  • $param

Redefinition of:
_Cmd::init()

Inherited Methods

Inherited From _Cmd

_Cmd::_Cmd()
_Cmd::compile()
_Cmd::getName()
_Cmd::init()
_Cmd::isBlock()
_Cmd::isValidParent()

Documentation generated on Mon, 22 Oct 2007 17:17:27 +0200 by phpDocumentor 1.3.1