TextStyle
class TextStyle extends ConfigObject (View source)
Properties
bool | $bold | Text is bold. | |
string | $color | Color of the text. | |
string | $fontName | Font name. | |
int | $fontSize | Size of font, in pixels. | |
bool | $italic | Text is italic. |
Methods
Builds the textStyle object when passed an array of configuration options.
Returns an array representation of the object.
Same as toArray, but without the class name as a key to being multi-dimension.
Details
at line 68
mixed
__construct(
array $config = array())
Builds the textStyle object when passed an array of configuration options.
in
ConfigObject at line 93
array
toArray(
string $keyName = null)
Returns an array representation of the object.
If passed a label, then the array will be returned with the label as the key.
Called with no label returns an array with the classname as the key.
in
ConfigObject at line 115
array
getValues()
Same as toArray, but without the class name as a key to being multi-dimension.
at line 80
TextStyle
bold(
boolean $bold)
Set bold on/off for the text element.
at line 103
TextStyle
color(
string $color)
Set the color for the text element.
valid HTML color string, for example: 'red' OR '#004411'
at line 127
TextStyle
fontName(
string $fontName)
Sets the font to the textStyle object.
Must be a valid font name.
at line 148
TextStyle
fontSize(
int $fontSize)
Sets the font size to the textStyle.
at line 169
TextStyle
italic(
boolean $italic)
Set italic on/off for the text element.