SilverCart\Model\BlacklistEntry
Represents a blacklist entry to prevent repeating spam.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2020 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class BlacklistEntry
extends DataObject
{
- // members
- private static string $table_name = 'SilverCart_BlackListEntry';
- private static array $db = ;
- private static array $casting = ;
- private static array $summary_fields = ;
- // methods
- public static void getBlackListCMSFields()
- public static bool isSpam()
- public string getIsPartialMatchNice()
- public string getTitle()
- public array fieldLabels()
- public FieldList getCMSFields()
- // Inherited methods from ExtensibleDataObject
- protected void beforeRequireDefaultRecords()
- protected void beforeUpdateCMSActions()
- protected void beforeUpdateFieldLabels()
- protected void beforeUpdateProvidePermissions()
- public array defaultFieldLabels()
- public static void reset_field_labels()
- protected array scaffoldFieldLabels()
Hierarchy
Members
private
- $casting
—
array
Casted attributes. - $db
—
array
DB attributes. - $summary_fields
—
array
Summary fields. - $table_name
—
string
DB table name
protected
- $defaultFieldLabels
—
array
Default field labels.
Methods
public
- fieldLabels() — Returns the field labels.
- getBlackListCMSFields() — Adds the blacklist management fields to the given CMS $fields.
- getCMSFields() — Returns the CMS fields.
- getIsPartialMatchNice() — Returns the content limited to 5 words.
- getTitle() — Returns the content limited to 5 words.
- isSpam() — Returns whether the given content is matching with any blacklist entry.
Inherited from SilverCart\ORM\ExtensibleDataObject
protected
- beforeRequireDefaultRecords() — Allows user code to hook into DataObject::requireDefaultRecords() prior to requireDefaultRecords being called on extensions.
- beforeUpdateCMSActions() — Allows user code to hook into DataObject::getCMSActions prior to updateCMSActions being called on extensions.
- beforeUpdateFieldLabels() — Allows user code to hook into DataObject::fieldLabels() prior to updateFieldLabels being called on extensions.
- beforeUpdateProvidePermissions() — Allows user code to hook into DataObject::updateProvidePermissions() prior to providePermissions being called on extensions.
- scaffoldFieldLabels() — Returns the default field labels for this DataObject.
public
- defaultFieldLabels() — Returns the default field labels.
- reset_field_labels() — Resets the field label cache.