BenManu\StyleGuide\KSSModifier
Synopsis
class KSSModifier
extends ViewableData
{
- // members
- protected KSSSection $section;
- protected string $name = '';
- protected string $description = '';
- protected $markup = NULL;
- protected $extendedClass = NULL;
- private static array $casting = ;
- // methods
- public void __construct()
- public string getName()
- public void setName()
- public string getDescription()
- public void setDescription()
- public string getMarkup()
- public void setMarkup()
- protected $name parseExtend()
- public boolean isExtender()
- public string getExtendedClass()
- public void setExtendedClass()
- public string getExtendedClassName()
- public string getClassName()
- public string getExampleHtml()
- public void getReference()
Hierarchy
Extends
- SilverStripe\View\ViewableData
Members
private
- $casting
protected
- $description
—
string
Description of the modifier - $extendedClass
—
string
Class that this modifier extends from - $markup
—
string
Optional markup for the modifier - $name
—
string
Name of the modifier - $section — BenManu\StyleGuide\KSSSection
Methods
protected
- parseExtend() — Checks the name for any extend notations and parses that information off and stores it in the $this->extendedClass
public
- __construct()
- getClassName() — Returns the class name for the modifier
- getDescription() — Returns the description of the modifier
- getExampleHtml() — Returns a string of specified html with inserted class names in the correct places for modifiers and extenders.
- getExtendedClass() — Returns the extended class
- getExtendedClassName() — Returns the class name for the extended class
- getMarkup() — Returns the markup of the modifier
- getName() — Returns the name of the modifier
- getReference()
- isExtender() — Returns whether the modifier is applied by extension
- setDescription() — Sets the description of the modifier
- setExtendedClass() — Sets the extended class. If the class name is empty, assuming null instead and stop further parsing
- setMarkup() — Sets the markup of the modifier
- setName() — Sets the name of the modifier