NZTA\SiteBanner\Models\SiteBanner
Class \NZTA\SiteBanner\Models\SiteBanner
Synopsis
class SiteBanner
extends DataObject
{
- // members
- private static array $db = ;
- private static array $types = ;
- private static bool $embargo_enabled = true;
- private static array $required_permission_codes = ;
- private static bool $allow_html = true;
- private static string $default_sort = 'Sort';
- private static array $summary_fields = ;
- private static string $table_name = 'SiteBanner';
- private static array $extensions = ;
- // methods
- public void fieldLabels()
- public FieldList getCMSFields()
- public array getTypeSource()
- public boolean isActive()
- public bool|int canView()
- public bool|int canCreate()
- public bool|int canEdit()
- public bool|int canDelete()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $allow_html — NZTA\SiteBanner\Models\bool
- $db — array
- $default_sort — string
- $embargo_enabled — NZTA\SiteBanner\Models\bool
- $extensions — array
- $required_permission_codes — array
- $summary_fields — array
- $table_name — string
- $types — array
Methods
public
- canCreate()
- canDelete()
- canEdit()
- canView()
- fieldLabels()
- getCMSFields()
- getTypeSource()
- isActive() — Check if the Site Banner should be displayed. It should be displayed if there is content and the current date/time is within the start and end date/times for the banner.