Dynamic\Calendar\Model\Category
Class Category
Synopsis
class Category
extends DataObject
implements
PermissionProvider
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $belongs_many_many = ;
- private static array $extensions = ;
- private static array $indexes = ;
- private static array $summary_fields = ;
- private static array $casting = ;
- private static string $table_name = 'Category';
- // methods
- public FieldList getCMSFields()
- public ValidationResult validate()
- public void onBeforeWrite()
- public bool|int canCreate()
- public bool|int canEdit()
- public bool|int canDelete()
- public bool canView()
- public array providePermissions()
- public bool validURLSegment()
- public bool getIsSubcategory()
- public String Link()
- public bool getIsActiveFilter()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Implements
- SilverStripe\Security\PermissionProvider
Members
private
- $belongs_many_many — array
- $casting — array
- $db — array
- $extensions — array
- $has_one — array
- $indexes — array
- $summary_fields — array
- $table_name — string
Methods
public
- Link()
- canCreate() — This function determines a user's ability to create a new Category
- canDelete() — This function determines a user's ability to delete an existing Category
- canEdit() — This function determines a user's ability to edit an existing Category
- canView() — This function determines a user's ability to view an existing Category
- getCMSFields()
- getIsActiveFilter()
- getIsSubcategory() — Method determining if this category is a sub-category
- onBeforeWrite()
- providePermissions() — This function provides permissions options within the security section of the cms for the Event object. The array keys are referenced when executing the can() function above
- validURLSegment()
- validate() — This function allows the validation of Category data on save attempt