ICanBoogie/Render v0.4.0
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Render
      • EngineCollection
      • Renderer
      • TemplateResolver

Classes

  • BasicTemplateResolver
  • EngineCollection
  • EngineNotAvailable
  • EngineNotDefined
  • PHPEngine
  • Renderer
  • TemplateName

Interfaces

  • Engine
  • Exception
  • TemplateResolver

Traits

  • TemplateResolverTrait

Exceptions

  • TemplateNotFound

Functions

  • get_engines
  • get_renderer
  • get_template_resolver

Class BasicTemplateResolver

Resolves templates pathname.

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

Methods summary

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

Parameters

$name
The base name of the template.
$extensions
The supported extensions.
$tried
Tried pathname collection.

Returns

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

Inheritdoc

Implementation of

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

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 array
# get_paths( )

Returns

array

Inheritdoc

Implementation of

ICanBoogie\Render\TemplateResolver::get_paths()

Methods used from ICanBoogie\Render\TemplateResolverTrait

resolve_path(), resolve_tries()

Properties summary

protected array $paths
# []
ICanBoogie/Render v0.4.0 API documentation generated by ApiGen