Skin_Default
extends Core_Skin
in package
Skin.
Tags
Table of Contents
Properties
- $instance : array<string|int, mixed>
- The singleton instances.
- $skinModuleInstance : array<string|int, mixed>
- SkinModule singleton instances.
- $_answer : object
- Answer
- $_config : mixed
- Skin config
- $_css : array<string|int, mixed>
- List of CSS files
- $_js : array<string|int, mixed>
- List of JS files
- $_lng : string
- Language
- $_mode : string
- Mode
- $_skinName : string
- Name of the skin
- $_title : string
- Skin title
Methods
- __construct() : mixed
- Constructor.
- _getAllowedModules() : array<string|int, mixed>
- Get modules list which has been approved for current user
- addCss() : self
- Add CSS file path
- addJs() : self
- Add JS file path
- answer() : string
- Set answer
- authorization() : mixed
- Show authorization form
- changeLanguage() : mixed
- Change language
- footer() : mixed
- Show footer
- frontend() : mixed
- Show Front End panels
- getConfig() : mixed
- Get skin config
- getCss() : array<string|int, mixed>
- Get array of CSS's paths
- getImageHref() : string
- Get image href
- getJs() : array<string|int, mixed>
- Get array of JS's paths
- getLng() : string
- Get language
- getMessage() : string
- Get message.
- getMode() : string
- Get mode
- getSkinModule() : Core_Module|null
- Get skin's module
- getSkinModuleName() : string
- Get skin's module name
- getSkinName() : string
- Get skin name
- header() : mixed
- Show header
- index() : self
- Show back-end index page
- instance() : mixed
- Get instance of object
- setConfig() : self
- Set skin config
- setLng() : self
- Set language
- setMode() : self
- Set mode
- showHead() : mixed
- Show HTML head
- skinName() : self
- Set skin name
- title() : self
- Set title
- _getTimestamp() : int
- Mark of current version
- _themeSelector() : mixed
- Show theme selector
Properties
$instance
The singleton instances.
public
static array<string|int, mixed>
$instance
= array()
$skinModuleInstance
SkinModule singleton instances.
public
static array<string|int, mixed>
$skinModuleInstance
= array()
$_answer
Answer
protected
object
$_answer
= \NULL
$_config
Skin config
protected
mixed
$_config
= array()
$_css
List of CSS files
protected
array<string|int, mixed>
$_css
= array()
$_js
List of JS files
protected
array<string|int, mixed>
$_js
= array()
$_lng
Language
protected
string
$_lng
= \NULL
$_mode
Mode
protected
string
$_mode
= \NULL
$_skinName
Name of the skin
protected
string
$_skinName
= 'default'
$_title
Skin title
protected
string
$_title
Methods
__construct()
Constructor.
public
__construct() : mixed
_getAllowedModules()
Get modules list which has been approved for current user
public
_getAllowedModules() : array<string|int, mixed>
Return values
array<string|int, mixed>addCss()
Add CSS file path
public
addCss(string $path) : self
Parameters
- $path : string
-
file path
Return values
selfaddJs()
Add JS file path
public
addJs(string $path) : self
Parameters
- $path : string
-
file path
Return values
selfanswer()
Set answer
public
answer() : string
Return values
stringauthorization()
Show authorization form
public
authorization() : mixed
changeLanguage()
Change language
public
changeLanguage() : mixed
footer()
Show footer
public
footer() : mixed
frontend()
Show Front End panels
public
frontend() : mixed
getConfig()
Get skin config
public
getConfig() : mixed
getCss()
Get array of CSS's paths
public
getCss() : array<string|int, mixed>
Return values
array<string|int, mixed>getImageHref()
Get image href
public
getImageHref() : string
Return values
stringgetJs()
Get array of JS's paths
public
getJs() : array<string|int, mixed>
Return values
array<string|int, mixed>getLng()
Get language
public
getLng() : string
Return values
stringgetMessage()
Get message.
public
getMessage( $message[, $type = 'message' ]) : string
echo Core_Message::get(Core::_('constant.name'));
echo Core_Message::get(Core::_('constant.message', 'value1', 'value2'));
Parameters
Tags
Return values
stringgetMode()
Get mode
public
getMode() : string
Return values
stringgetSkinModule()
Get skin's module
public
getSkinModule(string $modulePath) : Core_Module|null
Parameters
- $modulePath : string
-
module path
Return values
Core_Module|nullgetSkinModuleName()
Get skin's module name
public
getSkinModuleName(string $modulePath) : string
Parameters
- $modulePath : string
-
module path
Return values
stringgetSkinName()
Get skin name
public
getSkinName() : string
Return values
stringheader()
Show header
public
header() : mixed
index()
Show back-end index page
public
index() : self
Return values
selfinstance()
Get instance of object
public
static instance([string $name = NULL ]) : mixed
Parameters
- $name : string = NULL
-
name of skin
setConfig()
Set skin config
public
setConfig(mixed $config) : self
Parameters
- $config : mixed
Return values
selfsetLng()
Set language
public
setLng(string $lng) : self
Parameters
- $lng : string
-
language
Return values
selfsetMode()
Set mode
public
setMode(string $mode) : self
Parameters
- $mode : string
-
mode
Return values
selfshowHead()
Show HTML head
public
showHead() : mixed
skinName()
Set skin name
public
skinName(string $skinName) : self
Parameters
- $skinName : string
-
skin name
Return values
selftitle()
Set title
public
title(string $title) : self
Parameters
- $title : string
-
title
Return values
self_getTimestamp()
Mark of current version
protected
_getTimestamp() : int
Return values
int_themeSelector()
Show theme selector
protected
_themeSelector() : mixed