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

Trait TemplateResolverTrait

Support functions for template resolvers.

Direct Known Users

ICanBoogie\Render\BasicTemplateResolver

Namespace: ICanBoogie\Render
Package: ICanBoogie\Render
Located at TemplateResolverTrait.php

Methods summary

protected array
# resolve_tries( array $paths, string $name, array $extensions )

Resolves path tries.

Resolves path tries.

The method resolves a try path collection from a collection of roots, template name, and extension collection.

Parameters

$paths
Template directories paths.
$name
Template name.
$extensions
Supported extensions.

Returns

array
A collection of candidate template pathnames.
protected string|null
# resolve_path( array $tries, array & $tried )

Resolves a template path.

Resolves a template path.

The method returns the pathname of the first file matching the path collection. The tried paths are collected in $tried.

Parameters

$tries
Pathname collection, as returned by ICanBoogie\Render\TemplateResolverTrait::resolve_tries().
$tried
Tried pathname collection.

Returns

string|null
ICanBoogie/Render v0.4.0 API documentation generated by ApiGen