ICanBoogie
  • Documentation
  • API Reference
  • Render 0.6.x
Namespaces
  • ICanBoogie
    • Render
      • EngineCollection
      • Renderer
      • TemplateResolver
Classes
  • BasicTemplateResolver
  • EngineCollection
  • EngineNotAvailable
  • EngineNotDefined
  • PHPEngine
  • Renderer
  • StringObject
  • TemplateName
Interfaces
  • Engine
  • Exception
  • TemplateResolver
  • TemplateResolverDecorator
Traits
  • TemplateResolverDecoratorTrait
  • TemplateResolverTrait
Exceptions
  • InvalidRenderTarget
  • TemplateNotFound
Functions
  • get_engines
  • get_renderer
  • get_template_resolver
  • render

Class TemplateName

Representation of a template name.

ICanBoogie\Render\TemplateName uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\Render
Located at TemplateName.php

Methods summary

public static from( string|ICanBoogie\Render\TemplateName $source ) : ICanBoogie\Render\TemplateName

Parameters

$source

Returns

ICanBoogie\Render\TemplateName
public static normalize( string $name ) : string

Normalizes a template name by removing any known prefix.

Normalizes a template name by removing any known prefix.

Parameters

$name

Returns

string
protected get_as_template( void ) : string

Returns the name as template name.

Returns the name as template name.

Returns

string
protected get_as_partial( void ) : string

Returns the name as partial name.

Returns the name as partial name.

Returns

string
protected get_as_layout( void ) : string

Returns the name as layout name.

Returns the name as layout name.

Returns

string
public with_prefix( string $prefix ) : string

Returns the template name with the specified prefix.

Returns the template name with the specified prefix.

Parameters

$prefix

Returns

string
protected __construct( string $name )

Initializes the $name property.

Initializes the $name property.

Parameters

$name
public __toString( void ) : string

Returns the $name property.

Returns the $name property.

Returns

string

Constants summary

TEMPLATE_PREFIX_VIEW : string
''
TEMPLATE_PREFIX_LAYOUT : string
'@'
TEMPLATE_PREFIX_PARTIAL : string
'_'

Properties summary

Magic properties

public read-only $as_template : string

Name as template name.

public read-only $as_partial : string

Name as partial name.

public read-only $as_layout : string

Name as layout name.

Render 0.6.x – Check on GitHub – API documentation generated by ApiGen