\KapostConversionHistory
Class KapostConversionHistory
Synopsis
class KapostConversionHistory
extends DataObject
{
- // members
- private static integer $expires_days = 30;
- private static array $db = ;
- private static array $indexes = ;
- private static string $default_sort = 'Created DESC';
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- // methods
- public final bool canCreate()
- public final bool canEdit()
- public final bool canDelete()
- public FieldList getCMSFields()
- public string getDestinationLink()
- public string getKapostChangeTypeNice()
- public string getDestinationTypeNice()
- public array summaryFields()
- public string CMSEditLink()
- protected void onAfterWrite()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $default_sort
-
$expires_days
Number of days that conversion history records are kept - $indexes
- $searchable_fields
- $summary_fields
Methods
protected
- onAfterWrite() — Cleans up the conversion history records after X days, after writing to the database where X is defined in the config
public
- CMSEditLink() — Gets the edit link for this conversion history record
- canCreate() — Prevent creation of the KapostConversionHistory
- canDelete() — Prevent deleting of the KapostConversionHistory
- canEdit() — Prevent editing of the KapostConversionHistory
- getCMSFields() — Gets fields used in the cms
- getDestinationLink() — Gets the link to the desination in the cms
- getDestinationTypeNice() — Gets the singular name of the destination type or just returs what was stored for the destination type if the class does not have one of i18n_singular_name or singular_name or the class does not exist
- getKapostChangeTypeNice() — Gets the change type's friendly label
- summaryFields() — Gets the summary fields for this object