class vB_StyleVar_padding extends vB_StyleVar

Properties

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

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

in vB_StyleVar at line 47
validate()

in vB_StyleVar at line 52
print_editor()

at line 1413
print_editor_form()

in vB_StyleVar at line 134
set_value($value)

Parameters

$value

in vB_StyleVar at line 183
set_definition($definition)

Parameters

$definition

in vB_StyleVar at line 188
set_inherited($inherited)

Parameters

$inherited

in vB_StyleVar at line 193
set_stylevarid($stylevarid)

Parameters

$stylevarid

in vB_StyleVar at line 198
set_styleid($styleid)

Parameters

$styleid

in vB_StyleVar at line 203
get()

in vB_StyleVar at line 208
protected fetch_inherit_color()

in vB_StyleVar at line 228
build()

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

Parameters

$current_units
$stylevar_value

in vB_StyleVar at line 275
print_border_style($current_style, $stylevar_value)

Parameters

$current_style
$stylevar_value

in vB_StyleVar 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

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

Parameters

$title
$stylevarid
$input_type
$value
$stylevar_value

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

Parameters

$title
$stylevarid
$input_type
$value
$stylevar_value

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

Parameters

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

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

Parameters

$title
$stylevarid
$input_type
$value
$stylevar_value

in vB_StyleVar 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

in vB_StyleVar at line 1242
protected print_background_output()