SilverWare\FontIcons\Extensions\FontIconExtension
A data extension class which allows extended objects to use font icons.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class FontIconExtension
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $casting = ;
- private static array $summary_fields = ;
- private static array $dependencies = ;
- // methods
- public void updateCMSFields()
- public void updateFieldLabels()
- public string getFontIconClass()
- public array getFontIconClassNames()
- public boolean getFontIconListItem()
- public boolean getFontIconFixedWidth()
- public boolean hasFontIcon()
- public DBHTMLText|string getFontIconTag()
- public string getFontIconTagCMS()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $casting
—
array
Maps field and method names to the class names of casting objects. - $db
—
array
Maps field names to field types for the extended object. - $dependencies
—
array
Defines the injector dependencies for this object. - $summary_fields
—
array
Defines the summary fields of this object.
Methods
public
- getFontIconClass() — Answers a string of font icon class names for the extended object.
- getFontIconClassNames() — Answers an array of font icon class names for the extended object.
- getFontIconFixedWidth() — Answers true to enable fixed width mode.
- getFontIconListItem() — Answers true to enable list item mode.
- getFontIconTag() — Renders the font icon tag for the HTML template.
- getFontIconTagCMS() — Renders the font icon tag for the CMS interface.
- hasFontIcon() — Answers true if the extended object has a font icon defined.
- updateCMSFields() — Updates the CMS fields of the extended object.
- updateFieldLabels() — Updates the field labels of the extended object.