Koowa_Template
[ class tree: Koowa_Template ] [ index: Koowa_Template ] [ all elements ]

Class: KTemplateFilterAlias

Source Location: /libraries/koowa/template/filter/alias.php

Class Overview

KObject
   |
   --KTemplateFilterAbstract
      |
      --KTemplateFilterAlias

Template read filter for aliases such as @template, @text, @helper, @route etc


Author(s):

Implements interfaces:

Variables

Methods


Inherited Variables

Inherited Methods

Class: KTemplateFilterAbstract

KTemplateFilterAbstract::__construct()
Constructor.
KTemplateFilterAbstract::execute()
Command handler
KTemplateFilterAbstract::getPriority()
Get the priority of a behavior
KTemplateFilterAbstract::getTemplate()
Get the template object
KTemplateFilterAbstract::_initialize()
Initializes the options for the object
KTemplateFilterAbstract::_parseAttributes()
Method to extract key/value pairs out of a string with xml style attributes

Class: KObject

KObject::__construct()
Constructor
KObject::get()
Get the object properties
KObject::getHandle()
Get a handle for this object
KObject::getIdentifier()
Gets the service identifier.
KObject::getMethods()
Get a list of all the available methods
KObject::getService()
Get an instance of a class based on a class identifier only creating it if it does not exist yet.
KObject::inherits()
Checks if the object or one of it's mixin's inherits from a class.
KObject::mixin()
Mixin an object
KObject::set()
Set the object properties
KObject::_initialize()
Initializes the options for the object
KObject::__call()
Search the mixin method map and call the method or trigger an error
KObject::__clone()
Preform a deep clone of the object.

Class Details

[line 18]
Template read filter for aliases such as @template, @text, @helper, @route etc



Tags:

author:  Johan Janssens <johan@nooku.org>


[ Top ]


Class Variables

$_alias_read = array(
        '@helper('      => '$this->renderHelper(',
       '@service('     => '$this->getService(',
        '@date('        => '$this->renderHelper(\'date.format\',',
        '@overlay('     => '$this->renderHelper(\'behavior.overlay\', ',
        '@text('        => 'JText::_(',
        '@template('    => '$this->loadIdentifier(',
        '@route('       => '$this->getView()->getRoute(',
        '@escape('      => '$this->getView()->escape(',
    )

[line 25]

The alias read map



Tags:

access:  protected

Type:   array


[ Top ]

$_alias_write = array()

[line 41]

The alias write map



Tags:

access:  protected

Type:   array


[ Top ]



Class Methods


method append [line 49]

KTemplateFilterAlias append( $alias, [ $mode = KTemplateFilter::MODE_READ])

Append an alias



Tags:

access:  public


Parameters:

array   $alias   An array of aliases to be appended
   $mode  

[ Top ]

method read [line 68]

KTemplateFilterAlias read( string &$text)

Convert the alias



Tags:

access:  public



Implementation of:
KTemplateFilterRead::read()
Parse the text and filter it

Parameters:

string   &$text  

[ Top ]

method write [line 84]

KTemplateFilterAlias write( string &$text)

Convert the alias



Tags:

access:  public



Implementation of:
KTemplateFilterWrite::write()
Parse the text and filter it

Parameters:

string   &$text  

[ Top ]


Documentation generated on Sat, 18 May 2013 03:02:42 +0200 by phpDocumentor 1.4.3