a SENSIOLABS Product
Symfony

Templating
Simple yet powerful templating framework

sfTemplateHelperAssets Class

All Classes

RELEASE INFORMATION

You are currently browsing the API for the trunk version.
sfTemplateHelperAssets is the base class for all helper classes that manages assets.


Usage:



Inheritence

sfTemplateHelperAssets  <  sfTemplateHelper
METHODS
__construct()  constructor.
getVersion()  gets the version to add to public URL.
setVersion()  sets the version that is added to each public URL.
getBasePath()  gets the base path.
setBasePath()  sets the base path.
getBaseURL()  gets the base URL.
getBaseURLs()  gets the base URLs.
setBaseURLs()  sets the base URLs.
getUrl()  returns the public path.
getName()  returns the canonical name of this helper.

Methods inherited from sfTemplateHelper

setHelperSet , getHelperSet
  • __construct($basePath, $baseURLs, $version)

    Constructor.

    ARGUMENTS
    $basePath The base path
    $baseURLs The domain URL or an array of domain URLs
    $version The version
  • (string) getVersion()

    Gets the version to add to public URL.

    returns The current version

  • setVersion($id)

    Sets the version that is added to each public URL.

    ARGUMENTS
    $id The version
  • (string) getBasePath()

    Gets the base path.

    returns The base path

  • setBasePath($basePath)

    Sets the base path.

    ARGUMENTS
    $basePath The base path
  • (string) getBaseURL($path)

    Gets the base URL.

    ARGUMENTS
    $path The path

    returns The base URL

  • (array) getBaseURLs()

    Gets the base URLs.

    returns The base URLs

  • setBaseURLs($baseURLs)

    Sets the base URLs.


    If you pass an array, the getBaseURL() will return a
    random one each time it is called.

    ARGUMENTS
    $baseURLs The base URLs
  • (string) getUrl($path)

    Returns the public path.

    ARGUMENTS
    $path A public path

    returns A public path which takes into account the base path and URL path

  • (string) getName()

    Returns the canonical name of this helper.

    returns The canonical name

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.