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

Class: KTemplateFilterScript

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

Class Overview

KObject
   |
   --KTemplateFilterAbstract
      |
      --KTemplateFilterScript

Template filter to parse script tags


Author(s):

Implements interfaces:

Methods


Child classes:

Script Filter

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 filter to parse script tags



Tags:

author:  Johan Janssens <johan@nooku.org>


[ Top ]


Class Methods


method write [line 45]

KTemplateFilterLink write( string &$text)

Find any <script src="" /> or <script></script> elements and render them

<script inline></script> can be used for inline scripts




Tags:

access:  public



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

Parameters:

string   &$text   Block of text to parse

[ Top ]

method _initialize [line 28]

void _initialize( $config)

Initializes the options for the object

Called from __construct() as a first step of object instantiation.




Tags:

access:  protected


Overrides KTemplateFilterAbstract::_initialize() (Initializes the options for the object)

Parameters:

object An   $config   optional KConfig object with configuration options

[ Top ]

method _parseScripts [line 62]

string _parseScripts( string &$text)

Parse the text for script tags



Tags:

access:  protected


Parameters:

string   &$text   Block of text to parse

[ Top ]

method _renderScript [line 103]

string _renderScript( string $script, boolean $link, [array $attribs = array()])

Render script information



Tags:

access:  protected


Overridden in child classes as:

ComDefaultTemplateFilterScript::_renderScript()
Render script information

Parameters:

string   $script   The script information
boolean   $link   True, if the script information is a URL.
array   $attribs   Associative array of attributes

[ Top ]


Documentation generated on Tue, 21 May 2013 03:04:31 +0200 by phpDocumentor 1.4.3