SilverStripe\Blog\Model\BlogObject
An object shared by BlogTag and BlogCategory.
Synopsis
trait BlogObject
{
- // methods
- public DataList BlogPosts()
- public void getCMSFields()
- public ValidationResult validate()
- public string getLink()
- public bool canView()
- public void canCreate()
- public bool canDelete()
- public bool canEdit()
- protected void onBeforeWrite()
- public string generateURLSegment()
- protected DataList getDuplicatesByField()
- protected abstract string getListUrlSegment()
- protected abstract string getDuplicateError()
Hierarchy
Methods
protected
- getDuplicateError() — Returns an error message for this object when it tries to write a duplicate.
- getDuplicatesByField() — Looks for objects o the same type and the same value by the given Field
- getListUrlSegment() — This returns the url segment for the listing page.
- onBeforeWrite() — {@inheritdoc}
public
- BlogPosts()
- canCreate() — {@inheritdoc}
- canDelete() — Inherits from the parent blog or can be overwritten using a DataExtension.
- canEdit() — Inherits from the parent blog or can be overwritten using a DataExtension.
- canView() — Inherits from the parent blog or can be overwritten using a DataExtension.
- generateURLSegment() — Generates a unique URLSegment from the title.
- getCMSFields() — {@inheritdoc}
- getLink() — Returns a relative link to this category.
- validate() — {@inheritdoc}