XOOPS  2.6.0
XoopsThemeFactory Class Reference
Inheritance diagram for XoopsThemeFactory:
Inheritance graph

Public Member Functions

 createInstance ($options=array())
 
 isThemeAllowed ($name)
 

Public Attributes

 $allowedThemes = array()
 
 $allowUserSelection = true
 
 $defaultTheme = 'default'
 
 $xoBundleIdentifier = 'XoopsThemeFactory'
 

Detailed Description

XoopsThemeFactory

Author
Skalpa Keo
Since
2.3.0

Definition at line 32 of file theme.php.

Member Function Documentation

XoopsThemeFactory::createInstance (   $options = array())

Instantiate the specified theme

Parameters
array$optionsoptions array
Returns
XoopsTheme

Definition at line 67 of file theme.php.

References $_SESSION, $defaultTheme, $options, $xoBundleIdentifier, $xoops, XoopsBaseConfig\get(), Xoops\getInstance(), and isThemeAllowed().

Here is the call graph for this function:

XoopsThemeFactory::isThemeAllowed (   $name)

Checks if the specified theme is enabled or not

Parameters
string$nametheme name
Returns
bool

Definition at line 104 of file theme.php.

References $name.

Referenced by createInstance().

Here is the caller graph for this function:

Member Data Documentation

XoopsThemeFactory::$allowedThemes = array()

Definition at line 44 of file theme.php.

XoopsThemeFactory::$allowUserSelection = true

Definition at line 58 of file theme.php.

XoopsThemeFactory::$defaultTheme = 'default'

Definition at line 51 of file theme.php.

Referenced by createInstance().

XoopsThemeFactory::$xoBundleIdentifier = 'XoopsThemeFactory'

Definition at line 37 of file theme.php.

Referenced by createInstance().


The documentation for this class was generated from the following file: