ICanBoogie
  • Documentation
  • API Reference
  • Render v0.3.1
Namespaces
  • ICanBoogie
    • Render
      • EngineCollection
      • Renderer
      • TemplateResolver
Classes
  • BasicTemplateResolver
  • EngineCollection
  • EngineNotAvailable
  • EngineNotDefined
  • PHPEngine
  • Renderer
  • TemplateName
Interfaces
  • Engine
  • Exception
  • TemplateResolver
Exceptions
  • TemplateNotFound

Class BasicTemplateResolver

Resolve templates pathname.

ICanBoogie\Render\BasicTemplateResolver implements ICanBoogie\Render\TemplateResolver
Namespace: ICanBoogie\Render
Package: ICanBoogie\Render
Located at BasicTemplateResolver.php

Methods summary

public resolve( string $name, array $extensions, array & $tries = [] ) : string|false

Parameters

$name
The base name of the template.
$extensions
The supported extensions.
$tries
Path name tried.

Returns

string|false
The pathname to the matching template or false if none match.

Inheritdoc

Implementation of

ICanBoogie\Render\TemplateResolver::resolve()
public add_path( string $path, integer $weight = 0 ) : string|false

Parameters

$path
$weight

Returns

string|false
The real path, or false if the path was not added.

Inheritdoc

Implementation of

ICanBoogie\Render\TemplateResolver::add_path()
public get_paths( void ) : array

Returns

array

Inheritdoc

Implementation of

ICanBoogie\Render\TemplateResolver::get_paths()

Properties summary

protected $paths : array
[]
Render v0.3.1 – Check on GitHub – API documentation generated by ApiGen