abstract 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.

static Value[]
getValuesFromVariables(mixed $rules)

No description

Details

abstract render($value = false)

No description

Parameters

$value

abstract getValueFromRequest(ParameterBag $request)

No description

Parameters

ParameterBag $request

getValueFromList(ValueList $list)

No description

Parameters

ValueList $list

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

No description

Parameters

$class
$suffix

setName($name)

No description

Parameters

$name

getName()

No description

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)

No description

Parameters

$variable

getVariable()

No description

string getFormElementPath()

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

Return Value

string

static Value[] getValuesFromVariables(mixed $rules)

No description

Parameters

mixed $rules

Return Value

Value[]