a SENSIOLABS Product
Symfony

Templating
Simple yet powerful templating framework

sfTemplateHelperSet Class

All Classes

RELEASE INFORMATION

You are currently browsing the API for the trunk version.
sfTemplateHelperSet represents a set of helpers to be used with a templating engine.

METHODS
__construct()  
set()  sets a helper.
has()  returns true if the helper if defined.
get()  gets a helper value.
setEngine()  sets the template engine associated with this helper set.
getEngine()  gets the template engine associated with this helper set.
  • __construct()

  • set($value, $alias)

    Sets a helper.

    ARGUMENTS
    $value The helper instance
    $alias An alias
  • (Boolean) has($name)

    Returns true if the helper if defined.

    ARGUMENTS
    $name The helper name

    returns true if the helper is defined, false otherwise

  • (sfTemplateHelperInterface) get($name)

    Gets a helper value.

    ARGUMENTS
    $name The helper name

    returns The helper instance

    throws InvalidArgumentException if the helper is not defined

  • setEngine($engine)

    Sets the template engine associated with this helper set.

    ARGUMENTS
    $engine A sfTemplateEngine instance
  • (sfTemplateEngine) getEngine()

    Gets the template engine associated with this helper set.

    returns A sfTemplateEngine instance

powered by symfony - "symfony" is a trademark of Fabien Potencier, all rights reserved - The components "animals" are © 2009 Sensio Labs

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.