ilateral\SilverStripe\SystemMessages\SystemMessage
A system message that can be loaded onto the front end of a site and dismissed via a button click.
- Author: Mo <morven@ilateral.co.uk>
Synopsis
class SystemMessage
extends DataObject
{
- // members
- private static string $table_name = 'SystemMessage';
- private static array $db = ;
- private static array $has_one = ;
- private static array $belongs_many_many = ;
- private static array $field_labels = ;
- private static array $summary_fields = ;
- private static array $defaults = ;
- // methods
- public string CloseLink()
- public Boolean isClosedByMember()
- public Boolean isClosed()
- public Boolean isOpen()
- public NULL Close()
- public Boolean UseBootstrap()
- public void getCMSFields()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $belongs_many_many
- $db
- $defaults
- $field_labels
- $has_one
- $summary_fields
- $table_name
Methods
public
- Close() — Close this message for the current user, either via the database or by a cookie
- CloseLink() — Link to close this message
- UseBootstrap() — Pass the global Bootstrap config (for use in our templates).
- getCMSFields()
- isClosed() — Is the current message closed (either by the passed member or a cookie)
- isClosedByMember() — Has the current message been closed by the selected member
- isOpen() — Is the current message open (either by the passed member or a cookie)