\FAA\Obj\SysTemplateInclude

Summary

Methods
Properties
Constants
__construct()
IsDirect()
IsJavascript()
IsStylesheet()
IsDynamicStylesheet()
IsExternal()
Relation()
Age()
Content()
Source()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$row
$type
$template_root
$src
N/A

Properties

$row

$row :

Type

$type

$type :

Type

$template_root

$template_root :

Type

$src

$src :

Type

Methods

__construct()

__construct(string  $row,array<mixed,string>|string  $type,string  $template_root = '')

TemplateInclude constructor.

Parameters

string $row

A include line

array<mixed,string>|string $type

The template type

string $template_root

The template root path, absolute

IsDirect()

IsDirect(): boolean

Has redirect Check if attribute for redirect set

Returns

boolean —

True when attribute is set

IsJavascript()

IsJavascript(): boolean

Is javascript Check if include is a script include tag

Returns

boolean —

True when attribute is set

IsStylesheet()

IsStylesheet(): boolean

Is css Check if include is a script include tag

Returns

boolean —

True when attribute is set

IsDynamicStylesheet()

IsDynamicStylesheet(): boolean

Is dynamic css type Depending on the extension the include will be handled as dynamic include

Returns

boolean

IsExternal()

IsExternal(): boolean

Is external Check if the source path uses ann external fetch protocol

Returns

boolean

Relation()

Relation(): null|string

Get the relation content Extracts the value from the rel attribute of the processed tag

Returns

null|string

Age()

Age(): boolean|integer

Age of file Return the age of the file based on last modification.

May return -1 when its no local file

Returns

boolean|integer

Content()

Content(): boolean|null|string

Get content Reads the whole content of the file as string

Returns

boolean|null|string

Source()

Source(boolean  $remove_ext = true): null|string

Get the source path Calculates the absolute storage root path. Will automatically use the root path and fallback to known root paths

Parameters

boolean $remove_ext

Returns

null|string