PHP Interface Karlomikus\Theme\Contracts\ThemeInterface

Datei anzeigen Open project: karlomikus/theme

Public Methods

Method Description
all ( ) : array | ThemeInfo[] Get all found themes
get ( $theme = null ) : null | ThemeInfo Returns theme information.
has ( $theme ) : boolean Check if theme exists
set ( string $theme ) Set current active theme
setDefaultThemePath ( $path ) Set base themes folder path

Method Details

all() public method

Get all found themes
public all ( ) : array | ThemeInfo[]
return array | ThemeInfo[]

get() public method

Returns theme information.
public get ( $theme = null ) : null | ThemeInfo
return null | ThemeInfo

has() public method

Check if theme exists
public has ( $theme ) : boolean
$theme
return boolean

set() public method

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

setDefaultThemePath() public method

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