PHP Class igaster\laravelTheme\Theme

Inheritance: extends igaster\laravelTheme\Tree\Item
Show file Open project: igaster/laravel-theme Class Usage Examples

Public Properties

Property Type Description
$assetPath
$name
$viewsPath

Public Methods

Method Description
__construct ( $themeName, $assetPath = null, $viewsPath = null )
config ( string $key, mixed $defaultValue = null ) : mixed Return the configuration value of $key for the current theme. Configuration values are stored per theme in themes.php config file.
configSet ( string $key, mixed $value ) : mixed Return the configuration value of $key for the current theme. Configuration values are stored per theme in themes.php config file.
getParent ( )
url ( string $url ) : string Attach theme paths to a local Url. The Url must be a resource located on the asset path of the current theme or it's parents.

Method Details

__construct() public method

public __construct ( $themeName, $assetPath = null, $viewsPath = null )

config() public method

Return the configuration value of $key for the current theme. Configuration values are stored per theme in themes.php config file.
public config ( string $key, mixed $defaultValue = null ) : mixed
$key string
$defaultValue mixed
return mixed

configSet() public method

Return the configuration value of $key for the current theme. Configuration values are stored per theme in themes.php config file.
public configSet ( string $key, mixed $value ) : mixed
$key string
$value mixed
return mixed

getParent() public method

public getParent ( )

url() public method

Attach theme paths to a local Url. The Url must be a resource located on the asset path of the current theme or it's parents.
public url ( string $url ) : string
$url string
return string

Property Details

$assetPath public property

public $assetPath

$name public property

public $name

$viewsPath public property

public $viewsPath