Color
class Color extends ConfigObject (View source)
Properties
string | $color | Foreground color. | |
string | $backgroundColor | Background color. |
Methods
mixed
__construct(
array $config = array())
Builds the Color object with specified options
array
toArray(
string $keyName = null)
Returns an array representation of the object.
from
ConfigObject
array
getValues()
Same as toArray, but without the class name as a key to being multi-dimension.
from
ConfigObject
backgroundColor(
string $bgColor)
Specifies the background color.
Details
at line 46
mixed
__construct(
array $config = array())
Builds the Color object with specified 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 59
Color
color(
string $fgColor)
Specifies the foreground color.
at line 81
Color
backgroundColor(
string $bgColor)
Specifies the background color.