\GE_Skin

GE_Skin is basically structure that is saved in the database. Includes pregenerated CSS and JSON skin data.

Summary

Methods
Properties
Constants
__construct()
get_unique_id()
is_in_database()
is_unique()
get_themes()
save()
add_to_theme()
get_all_data()
get_data()
load_type()
get_id()
get_name()
set_name()
get_type()
get_style()
get_script()
set_data()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
unstrip_array()
$name
$blocks
$css
$data
$id
$js
$type
N/A

Properties

$name

$name : 

Type

$blocks

$blocks : 

Type

$css

$css : 

Type

$data

$data : 

Type

$id

$id : 

Type

$js

$js : 

Type

$type

$type : 

Type

Methods

__construct()

__construct(String  $id = null, String  $type = null, String  $name = null) : void

Creates new empty skin or loads one from database

Parameters

String $id

skin ID

String $type

skin block type

String $name

skin name

get_unique_id()

get_unique_id() : String

Generates pseudo-random alphanumeric ID

Returns

String —

ID

is_in_database()

is_in_database() : boolean

Returns true if already in database else false

Returns

boolean

is_unique()

is_unique() : String

Returns id of skin if exists else null

Returns

String —

skin id

get_themes()

get_themes() : array

Returns themes where is skin used

Returns

array —

array of theme slugs

save()

save() : void

Saves skin and its data to database.

add_to_theme()

add_to_theme(String  $theme_slug) : void

Adds skin to theme

Parameters

String $theme_slug

slug of theme

get_all_data()

get_all_data() : array

Returns existing skin all data else null.

Returns

array

get_data()

get_data() : String

Returns existing skin data else null.

Returns

String

load_type()

load_type() : String

Returns existing skin type else null.

Returns

String

get_id()

get_id() : string

Returns skin id.

Returns

string

get_name()

get_name() : string

Returns skin name.

Returns

string

set_name()

set_name(string  $input) : void

Sets skin name

Parameters

string $input

name

get_type()

get_type() : 

Returns skin type.

Returns

get_style()

get_style() : string

Returns skin CSS.

Returns

string

get_script()

get_script() : string

Returns skin javascript.

Returns

string

set_data()

set_data(String  $data) : void

Sets data.

Parameters

String $data

Skin data

unstrip_array()

unstrip_array(  $array) 

Parameters

$array