Class Dwoo_Plugin_a

Description

Implements interfaces:

Outputs a html <a> tag

  * href : the target URI where the link must point
  * rest : any other attributes you want to add to the tag can be added as named parameters

Example :

  1.  {Create a simple link out of an url variable and add a special class attribute: *}
  2.  
  3.  {$url class="external" /}
  4.  
  5.  {Mark a link as active depending on some other variable : *}
  6.  
  7.  {$link.url class=tif($link.active "active")$link.title /}
  8.  
  9.  {This is similar to: <a href="{$link.url}class="{if $link.active}active{/if}">{$link.title}</a> *}

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.

Located in /plugins/builtin/blocks/a.php (line 35)

Dwoo_Plugin
   |
   --Dwoo_Block_Plugin
      |
      --Dwoo_Plugin_a
Method Summary
static void postProcessing (Dwoo_Compiler $compiler,  $params,  $prepend,  $append,  $content)
static void preProcessing (Dwoo_Compiler $compiler,  $params,  $prepend,  $append,  $type)
void init ( $href, [ $rest = array()])
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 41)
  • 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 37)
  • access: public
void init ( $href, [ $rest = array()])
  • $href
  • array $rest

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, 07 Feb 2010 17:53:06 +0000 by phpDocumentor 1.4.0