Sabberworm\CSS\Rule\Rule
RuleSets contains Rule objects which always have a key and a value.
In CSS, Rules are expressed as follows: “key: value[0][0] value[0][1], value[1][0] value[1][1];”
Synopsis
class Rule
implements
Renderable,Commentable
{
- // members
- private $sRule;
- private $mValue;
- private $bIsImportant;
- private $aIeHack;
- protected $iLineNo;
- protected $aComments;
- // methods
- public void __construct()
- public int getLineNo()
- public void setRule()
- public void getRule()
- public void getValue()
- public void setValue()
- public void setValues()
- public void getValues()
- public void addValue()
- public void addIeHack()
- public void setIeHack()
- public void getIeHack()
- public void setIsImportant()
- public void getIsImportant()
- public void __toString()
- public void render()
- public void addComments()
- public array getComments()
- public void setComments()
Hierarchy
Members
private
- $aIeHack
- $bIsImportant
- $mValue
- $sRule
protected
- $aComments
- $iLineNo
Methods
public
- __construct()
- __toString()
- addComments()
- addIeHack()
- addValue() — Adds a value to the existing value. Value will be appended if a RuleValueList exists of the given type. Otherwise, the existing value will be wrapped by one.
- getComments()
- getIeHack()
- getIsImportant()
- getLineNo()
- getRule()
- getValue()
- getValues() — @deprecated Old-Style 2-dimensional array returned. Retained for (some) backwards-compatibility. Use getValue() instead and check for the existance of a (nested set of) ValueList object(s).
- render()
- setComments()
- setIeHack()
- setIsImportant()
- setRule()
- setValue()
- setValues() — @deprecated Old-Style 2-dimensional array given. Retained for (some) backwards-compatibility. Use setValue() instead and wrapp the value inside a RuleValueList if necessary.