abstract class vB_StyleVar

Class to handle style variable storage

Properties

$registry
$stylevarid
protected $definition
protected $value
protected $inherited
static protected $need_colorpicker
static protected $count
static protected $need_background_preview_js
static protected $need_stylevar_autocomplete_js
static protected $stylevar_cache

Methods

validate()

No description

print_editor()

No description

print_editor_form()

No description

set_value($value)

No description

set_definition($definition)

No description

set_inherited($inherited)

No description

set_stylevarid($stylevarid)

No description

set_styleid($styleid)

No description

get()

No description

fetch_inherit_color()

No description

build()

No description

print_units($current_units, $stylevar_value)

No description

print_border_style($current_style, $stylevar_value)

No description

string
fetch_stylevar_input(string $stylevarid, string $input_type, mixed $stylevar_value, string $inherit_param_value = '')

Returns the UI to display and/or choose a stylevar "part" for this stylevar part to inherit from. If the stylevar part is a color, this also creates the UI to specify the transformation to apply (if any) to the color when inheriting.

print_input_row($title, $stylevarid, $input_type, $value, $stylevar_value)

No description

print_textarea_row($title, $stylevarid, $input_type, $value, $stylevar_value)

No description

print_select_row($title, $stylevarid, $input_type, $array, $value, $stylevar_value)

No description

print_yes_no_row($title, $stylevarid, $input_type, $value, $stylevar_value)

No description

print_color_input_row($title, $stylevarid, $color_value, $stylevar_value, $inherit_param_value = '', $name = 'color')

No description

print_background_output()

No description

Details

at line 47
validate()

at line 52
print_editor()

at line 132
abstract print_editor_form()

at line 134
set_value($value)

Parameters

$value

at line 183
set_definition($definition)

Parameters

$definition

at line 188
set_inherited($inherited)

Parameters

$inherited

at line 193
set_stylevarid($stylevarid)

Parameters

$stylevarid

at line 198
set_styleid($styleid)

Parameters

$styleid

at line 203
get()

at line 208
protected fetch_inherit_color()

at line 228
build()

at line 250
protected print_units($current_units, $stylevar_value)

Parameters

$current_units
$stylevar_value

at line 275
print_border_style($current_style, $stylevar_value)

Parameters

$current_style
$stylevar_value

at line 309
protected string fetch_stylevar_input(string $stylevarid, string $input_type, mixed $stylevar_value, string $inherit_param_value = '')

Returns the UI to display and/or choose a stylevar "part" for this stylevar part to inherit from. If the stylevar part is a color, this also creates the UI to specify the transformation to apply (if any) to the color when inheriting.

This is where the stylevar inheritance UI is generated.

Parameters

string $stylevarid Stylevar ID
string $input_type Stylevar input type
mixed $stylevar_value Stylevar value
string $inherit_param_value The inherit param value

Return Value

string HTML output

at line 1057
protected print_input_row($title, $stylevarid, $input_type, $value, $stylevar_value)

Parameters

$title
$stylevarid
$input_type
$value
$stylevar_value

at line 1082
protected print_textarea_row($title, $stylevarid, $input_type, $value, $stylevar_value)

Parameters

$title
$stylevarid
$input_type
$value
$stylevar_value

at line 1113
protected print_select_row($title, $stylevarid, $input_type, $array, $value, $stylevar_value)

Parameters

$title
$stylevarid
$input_type
$array
$value
$stylevar_value

at line 1135
protected print_yes_no_row($title, $stylevarid, $input_type, $value, $stylevar_value)

Parameters

$title
$stylevarid
$input_type
$value
$stylevar_value

at line 1161
protected print_color_input_row($title, $stylevarid, $color_value, $stylevar_value, $inherit_param_value = '', $name = 'color')

Parameters

$title
$stylevarid
$color_value
$stylevar_value
$inherit_param_value
$name

at line 1242
protected print_background_output()