PHP Class igaster\laravelTheme\Theme

Inheritance: extends igaster\laravelTheme\Tree\Item
Afficher le fichier Open project: igaster/laravel-theme Class Usage Examples

Méthodes publiques

Свойство Type Description
$assetPath
$name
$viewsPath

Méthodes publiques

Méthode 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 méthode

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

config() public méthode

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
Résultat mixed

configSet() public méthode

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
Résultat mixed

getParent() public méthode

public getParent ( )

url() public méthode

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
Résultat string

Property Details

$assetPath public_oe property

public $assetPath

$name public_oe property

public $name

$viewsPath public_oe property

public $viewsPath