class Preset (View source)

Constants

PRESET_RULE_NAME

PRESET_RULE_ICON

PRESET_RULE_ICON_FUNCTION

Properties

protected $filename
protected $name
protected $styleValueList

Methods

static Preset
getFromFile($lessFile, $urlroot)

No description

getStyleValueList()

Gets the style value list object for this preset.

getPresetFilename()

No description

getPresetName()

No description

string
getPresetDisplayName(string $format = 'html')

Returns the display name for this preset (localized and escaped accordingly to $format)

isDefaultPreset()

No description

getPresetHandle()

No description

getPresetColor1()

No description

getPresetColor2()

No description

getPresetColor3()

No description

getPresetIconHTML()

No description

Details

static Preset getFromFile($lessFile, $urlroot)

No description

Parameters

$lessFile
$urlroot

Return Value

Preset

ValueList getStyleValueList()

Gets the style value list object for this preset.

Return Value

ValueList

getPresetFilename()

No description

getPresetName()

No description

string getPresetDisplayName(string $format = 'html')

Returns the display name for this preset (localized and escaped accordingly to $format)

Parameters

string $format

= 'html' Escape the result in html format (if $format is 'html'). If $format is 'text' or any other value, the display name won't be escaped

Return Value

string

isDefaultPreset()

No description

getPresetHandle()

No description

getPresetColor1()

No description

getPresetColor2()

No description

getPresetColor3()

No description

getPresetIconHTML()

No description