Class _Cmd_Action

Description

Generiert einen Button inklusive Form, welcher beim Clicken eine Action ausführt.

 {#ACTION caption=caption action=action uri=uri params=paramarray right=right condition=phpexpression else=else confirmation=conf formattrs=array buttonattrs=array}

caption ist der Titel des Buttons.

action ist der Name der Action welche ausgeführt wird.

uri ist die URI der Seite, welche vom Button aufgerufen wird.

params ist ein key-value-array, welches der Action als Parameter übergeben wird. (Sie werden als POST-Variablen gespeichert)

right ist ein recht, welches der Betrachter haben muss, um den Button sehen zu dürfen.

condition ist eine PHP-Expression, welche erfüllt sein muss, damit der Button angezeigt wird.

else ist ein String, welcher ausgegeben wird, wenn der Button nicht angezeigt wird.

confirmation ist ein String welcher eine Frage enthält, die der User mit Ja beantworten muss, um die Action aus zu führen.

formattrs ist ein key-value-array, dessen Keys weitere Attribute der HTML-Form sind.

buttonattrs ist ein key-value-array, dessen Keys weitere Attribute des HTML-Input-Tags (welches den Typ submit hat) sind.

shortcut ist ein einzelnes Zeichen, das das Absendenden des Formulesres mit Alt+ZEICHEN bewirkt.

Located in /web/mod/mod.template.flipcompiler.php (line 414)

_Cmd
   |
   --_Cmd_Action
Variable Summary
mixed $_Action
mixed $_Caption
mixed $_Condition
mixed $_Else
mixed $_FormAttrs
mixed $_Params
mixed $_Right
mixed $_Shortcut
mixed $_Uri
Method Summary
void compile ( $NSIndex,  $Depth)
void init ( $param)
Variables
mixed $_Action = '' (line 417)
mixed $_ButtonAttrs = '' (line 425)
mixed $_Caption = '' (line 416)
mixed $_Condition = '' (line 421)
mixed $_Confirmation = '' (line 423)
mixed $_Else = '' (line 422)
mixed $_FormAttrs = '' (line 424)
mixed $_Params = '' (line 419)
mixed $_Right = '' (line 420)
mixed $_Shortcut (line 426)
mixed $_Uri = '' (line 418)
Methods
compile (line 450)
void compile ( $NSIndex,  $Depth)
  • $NSIndex
  • $Depth

Redefinition of:
_Cmd::compile()
init (line 428)
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