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.

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/a.php (line 40)

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 55)
  • 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 46)
  • 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 42)
  • 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, 03 Aug 2008 15:12:15 +0200 by phpDocumentor 1.4.0