TheWebmen\Articles\Models\Tag
Synopsis
class Tag
extends DataObject
{
- // members
- private static array $db = ;
- private static string $table_name = 'Webmen_ArticleTag';
- private static string $singular_name = 'Article tag';
- private static string $plural_name = 'Article tags';
- private static string $icon_class = 'font-icon-rocket';
- private static array $summary_fields = ;
- private static array $has_one = ;
- private static array $many_many = ;
- // methods
- public FieldList getCMSFields()
- protected void onBeforeWrite()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db — array
- $has_one — array
- $icon_class — string
- $many_many — array
- $plural_name — string
- $singular_name — string
- $summary_fields — array
- $table_name — string
Methods
protected
- onBeforeWrite() — This sets the ArticlesPageID in case the Tag is created within an article {@see ArticlePage}, in stead of via the article overview page {@see ArticlesPage}