class TemplateLocator (View source)

Properties

protected $template
protected $locations

Methods

createTemplateFromInput($input)

No description

createLocationFromInput($input)

No description

__construct($template = null)

No description

getTemplate()

No description

setTemplate($template)

No description

addLocation($location)

Adding a location tells our locator to look in an additional spot.

prependLocation($location)

Adds a new place to look at the front of the line

getPath(TemplateLocation $location, Template $template)

No description

getFile()

No description

array
getLocations()

No description

getLocation()

No description

Details

protected createTemplateFromInput($input)

Parameters

$input

protected createLocationFromInput($input)

Parameters

$input

__construct($template = null)

Parameters

$template

Template getTemplate()

Return Value

Template

setTemplate($template)

Parameters

$template

addLocation($location)

Adding a location tells our locator to look in an additional spot.

Parameters

$location

prependLocation($location)

Adds a new place to look at the front of the line

Parameters

$location

protected getPath(TemplateLocation $location, Template $template)

Parameters

TemplateLocation $location
Template $template

getFile()

array getLocations()

Return Value

array

getLocation()