class Style (View source)

Properties

protected $variable
protected $name

Methods

render($value = false)

No description

getValueFromRequest(ParameterBag $request)

No description

getValueFromList(ValueList $list)

No description

static 
getTypeFromClass($class, $suffix = 'Style')

No description

setName($name)

No description

getName()

No description

string
getDisplayName(string $format = 'html')

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

setVariable($variable)

No description

getVariable()

No description

string
getFormElementPath()

Returns a path to an elements directory for this Style. Might not be used by all styles.

Details

abstract render($value = false)

Parameters

$value

abstract getValueFromRequest(ParameterBag $request)

Parameters

ParameterBag $request

getValueFromList(ValueList $list)

Parameters

ValueList $list

static protected getTypeFromClass($class, $suffix = 'Style')

Parameters

$class
$suffix

setName($name)

Parameters

$name

getName()

string getDisplayName(string $format = 'html')

Returns the display name for this style (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

setVariable($variable)

Parameters

$variable

getVariable()

string getFormElementPath()

Returns a path to an elements directory for this Style. Might not be used by all styles.

Return Value

string