Class Gadget_Template_Action

Description

Gadget_Template_Action

Base class for Gadget_Template actions. A template action translates a specific part of template code into PHP code. That means e.g. Gadget_Template_Action_if translates {if $foo} into <?php if ($foo) { ?>.

  • since: 1.0

Located in /Gadget/Template/Action.php (line 57)

Gadget_Object
   |
   --Gadget_Template_Action
Direct descendents
Class Description
Gadget_Template_Action_b64 Gadget_Template_Action_b64
Gadget_Template_Action_clean Gadget_Template_Action_clean
Gadget_Template_Action_echo Gadget_Template_Action_echo
Gadget_Template_Action_else Gadget_Template_Action_else
Gadget_Template_Action_elseif Gadget_Template_Action_elseif
Gadget_Template_Action_end Gadget_Template_Action_if
Gadget_Template_Action_foreach Gadget_Template_Action_foreach
Gadget_Template_Action_function Gadget_Template_Action_function
Gadget_Template_Action_gadget Gadget_Template_Action_gadget
Gadget_Template_Action_gettext Gadget_Template_Action_gettext
Gadget_Template_Action_if Gadget_Template_Action_if
Gadget_Template_Action_var Gadget_Template_Action_var
Gadget_Template_Action_while Gadget_Template_Action_while
Variable Summary
Method Summary
void loadActions (array &$actions, array $options)
string parseArg (string $arg)
void perform (string &$data, [bool $phpize = true])
string phpCallback (array $args)
string rawCallback (array $args)
void registerAction (string $name, string $class, [string $file = null])
void unregisterAction (string $name)
Variables
string $composedPattern (line 71)

Composed Pattern

string $patternModifier = 'i' (line 92)

Pattern Modifier

string $pcreDeleimiter = '/' (line 99)

PCRE Delimiter

string $pcreRecursion (line 106)

PCRE Recursion

array $quotedChars (line 113)

Quoted Chars

string $recursivePattern (line 85)

Recursive Pattern


Redefined in descendants as:
string $standardPattern (line 78)

Standard Pattern


Redefined in descendants as:
Methods
loadActions (line 240)

Load Actions

  • access: public
  • static:
void loadActions (array &$actions, array $options)
  • array $actions
  • array $options
onAfterConstruct (line 121)

On After Construct

  • access: protected
void onAfterConstruct ()

Redefinition of:
Gadget_Object::onAfterConstruct()
On After Construct

Redefined in descendants as:
parseArg (line 192)

Parse Arg

  • access: protected
string parseArg (string $arg)
  • string $arg
perform (line 153)

Perform

  • access: public
void perform (string &$data, [bool $phpize = true])
  • string &$data
  • bool $phpize
phpCallback (line 169)

PHP Callback

  • access: protected
string phpCallback (array $args)
  • array $args

Redefined in descendants as:
registerAction (line 212)

Register Action

  • access: public
  • static:
void registerAction (string $name, string $class, [string $file = null])
  • string $name
  • string $class
  • string $file
unregisterAction (line 226)

Unregister Action

  • access: public
  • static:
void unregisterAction (string $name)
  • string $name

Inherited Methods

Inherited From Gadget_Object

Gadget_Object::Gadget_Object()
Gadget_Object::onAfterConstruct()
Gadget_Object::onBeforeConstruct()
Gadget_Object::setOptions()

Documentation generated on Sun, 03 Jul 2005 12:45:31 +0200 by phpDocumentor 1.3.0RC3