Class TemplateName
Representation of a template name.
-
ICanBoogie\Render\TemplateName
uses
ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\
Render
Package: ICanBoogie\Render
Located at TemplateName.php
Methods summary
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
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
Returns
string
protected
__construct( string $name
)
Initializes the $name property.
Initializes the $name property.
Parameters
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
public read-only
$as_partial
: string
public read-only
$as_layout
: string