\BlogCategory
an extension to the @see DataObject class Blog Categories are created and maintained through the BlogHolder class through a has_many relationship.
BlogCategories can then be assigned to individual
blog entires through a many_many relationship
- Author: Ryan McLaren
Synopsis
class BlogCategory
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $belongs_many_many = ;
- private static array $summary_fields = ;
- // methods
- public {FieldList} getCMSFields()
- public void onBeforeWrite()
- public void LookForExistingURLSegment()
- public string getLink()
- public void canCreate()
- public void canView()
- public void canEdit()
- public void canDelete()
Hierarchy
Extends
- DataObject
Members
private
- $belongs_many_many
- $db
- $has_one
- $summary_fields
Methods
public
- LookForExistingURLSegment()
- canCreate()
- canDelete()
- canEdit()
- canView()
- getCMSFields() — fields used the in the CMS
- getLink() — returns the the full URL to this category
- onBeforeWrite()