\CSSBlubberFile
Synopsis
class CSSBlubberFile
extends Object
{
- // members
- protected $path;
- protected Parser $leanCSS;
- protected Parser $blubberCSS;
- // methods
- public void __construct()
- public void parse()
- public string getDirname()
- public string getBlubberName()
- public string getLeanName()
- public CSSList getBlocks()
- public void removeBlubber()
- public void removeLean()
- public void saveBlubber()
- public void saveLean()
Hierarchy
Extends
- Object
Members
protected
- $blubberCSS
—
Sabberworm\CSS\Parser
A reference to the parsed CSS object containing all the "bad" rules - $leanCSS
—
Sabberworm\CSS\Parser
A reference to the parsed CSS object containing all the "good" rules - $path
—
string
The absolute path to the CSS file
Methods
public
- __construct() — Constructor
- getBlocks() — Gets all the declaration blocks in the subject CSS file
- getBlubberName() — Gets the file name for the "blubber" file, containing all the unused rules
- getDirname() — Gets the directory name of the CSS file
- getLeanName() — Gets the file name for the "leadn" file, containing all the used rules
- parse() — Begins parsing the CSS file
- removeBlubber() — Removes a declaration block from the "blubber" CSS file
- removeLean() — Removes a declaration block from the "lean" CSS file
- saveBlubber() — Saves the "blubber" CSS to the filesystem
- saveLean() — Saves the "lean" CSS to the filesystem