PHP Класс Karlomikus\Theme\Theme

Автор: Karlo Mikuš
Наследование: implements Karlomikus\Theme\Contracts\ThemeInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Illuminate\Contracts\Container\Container $app ) Setup default view finder and view paths.
all ( ) : array | ThemeInfo[] Get all found themes
get ( $theme = null ) : null | ThemeInfo Returns theme information.
getThemes ( )
has ( $theme ) : boolean Check if theme exists
set ( string $theme ) Set current active theme
setDefaultThemePath ( $path ) Set base themes folder path
themeExists ( $theme )

Приватные методы

Метод Описание
findPath ( $namespace ) : string Find theme views path
findThemeByNamespace ( string $namespace ) : null | ThemeInfo Find a theme from all scanned themes
loadTheme ( string $theme ) Load a theme
parseThemeInfo ( array $info ) : ThemeInfoInterface Parse theme json file
scanThemes ( ) Scan for all available themes

Описание методов

__construct() публичный Метод

Setup default view finder and view paths.
public __construct ( Illuminate\Contracts\Container\Container $app )
$app Illuminate\Contracts\Container\Container

all() публичный Метод

Get all found themes
public all ( ) : array | ThemeInfo[]
Результат array | ThemeInfo[]

get() публичный Метод

Returns theme information.
public get ( $theme = null ) : null | ThemeInfo
Результат null | ThemeInfo

getThemes() публичный Метод

public getThemes ( )

has() публичный Метод

Check if theme exists
public has ( $theme ) : boolean
$theme
Результат boolean

set() публичный Метод

Set current active theme
public set ( string $theme )
$theme string Theme namespace

setDefaultThemePath() публичный Метод

Set base themes folder path
public setDefaultThemePath ( $path )
$path

themeExists() публичный Метод

public themeExists ( $theme )