BenManu\StyleGuide\Section
Section
A Comment Block that represents a single section.
Synopsis
class Section
extends ViewableData
{
- // members
- protected string $rawComment = '';
- protected SplFileObject $file = NULL;
- // methods
- public void __construct()
- public string getFilename()
- public String getRenderedTemplate()
Hierarchy
Extends
- SilverStripe\View\ViewableData
Members
protected
- $file
—
\SplFileObject
The file where the Comment Block came from - $rawComment
—
string
The raw Comment Block
Methods
public
- __construct() — Creates a section with the Comment Block and source file
- getFilename() — Returns the source filename for where the comment block was located
- getRenderedTemplate() — Render a SilverStripe template with fixture data if set.