Sminnee\ModelComments\ModelComment
Synopsis
class ModelComment
extends DataObject
implements
PermissionProvider
{
- // members
- private static string $table_name = 'ModelComment';
- private static array $db = ;
- private static array $has_one = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- // methods
- public void getObjectType()
- public void getObjectLabel()
- public void onBeforeWrite()
- public void onAfterWrite()
- public void getCreatedString()
- public array providePermissions()
- public void canEdit()
- public void canCreate()
- public void canDelete()
- public void canView()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Implements
- SilverStripe\Security\PermissionProvider
Members
private
- $db
- $has_one
- $searchable_fields
- $summary_fields
- $table_name
Methods
public
- canCreate()
- canDelete()
- canEdit()
- canView()
- getCreatedString()
- getObjectLabel() — Create a label for the object being commented on It will use Label if available, otherwise Title It will link it if the CMSEditLink method exists
- getObjectType() — Get the friendly name of the linked object class
- onAfterWrite()
- onBeforeWrite()
- providePermissions() — Provide permission related to managing this model.