class Theme

Properties

string $name
string $label
string $description
string $author
string $parentName
string $requires
string $path
string $publicPath
bool $active
string $locked
string $screenshot
$config
protected array $configCache
static protected $allowedTemplateModels

Methods

__construct($path, array $config = [])

No description

boot()

Boots the theme.

string
getName()

No description

string
getPath()

No description

string
getDirName()

No description

getParentPath()

No description

getParentName()

No description

getParent()

No description

hasParent()

No description

requires($require)

No description

screenshot($name)

No description

isActive()

No description

loadThemeFile()

No description

getConfig()

No description

getFormConfig()

No description

getConfigValue($name, $default = null)

No description

hasCustomData()

No description

getCustomData()

No description

array
getAssetVariables()

Returns variables that should be passed to the asset combiner.

fillFromConfig()

No description

listPages()

No description

listPartials()

No description

listLayouts()

No description

getPagesOptions()

No description

void
registerAsSource()

Ensures this theme is registered as a Pagic source.

onTemplate($dirName)

No description

newTemplate($dirName)

No description

mixed
getTemplateClass($dirName)

No description

void
__get(string $name)

Implements the getter functionality.

bool
__isset(string $key)

Determine if an attribute exists on the object.

getFindInPaths()

No description

Details

at line 87
__construct($path, array $config = [])

No description

Parameters

$path
array $config

at line 99
Theme boot()

Boots the theme.

Return Value

Theme

at line 110
string getName()

No description

Return Value

string

at line 118
string getPath()

No description

Return Value

string

at line 126
string getDirName()

No description

Return Value

string

at line 131
getParentPath()

No description

at line 136
getParentName()

No description

at line 141
getParent()

No description

at line 146
hasParent()

No description

at line 151
requires($require)

No description

Parameters

$require

at line 161
screenshot($name)

No description

Parameters

$name

at line 175
isActive()

No description

at line 180
loadThemeFile()

No description

at line 193
getConfig()

No description

at line 221
getFormConfig()

No description

at line 230
getConfigValue($name, $default = null)

No description

Parameters

$name
$default

at line 235
hasCustomData()

No description

at line 240
getCustomData()

No description

at line 249
array getAssetVariables()

Returns variables that should be passed to the asset combiner.

Return Value

array

at line 268
fillFromConfig()

No description

at line 298
listPages()

No description

at line 303
listPartials()

No description

at line 308
listLayouts()

No description

at line 313
getPagesOptions()

No description

at line 325
void registerAsSource()

Ensures this theme is registered as a Pagic source.

Return Value

void

at line 349
Model|Finder onTemplate($dirName)

No description

Parameters

$dirName

Return Value

Model|Finder

at line 360
Model newTemplate($dirName)

No description

Parameters

$dirName

Return Value

Model

at line 372
mixed getTemplateClass($dirName)

No description

Parameters

$dirName

Return Value

mixed

Exceptions

Exception

at line 387
void __get(string $name)

Implements the getter functionality.

Parameters

string $name

Return Value

void

at line 403
bool __isset(string $key)

Determine if an attribute exists on the object.

Parameters

string $key

Return Value

bool

at line 412
protected getFindInPaths()

No description