SilverCart\Admin\Forms\AlertField
Dataless form field to display information alerts.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class AlertField
extends DatalessField
{
- // members
- protected $alertTitle = NULL;
- protected string $alertType = 'info';
- protected $content = NULL;
- // methods
- public void __construct()
- public string getAlertTitle()
- public void setAlertTitle()
- public string getAlertType()
- public void setAlertType()
- public string getContent()
- public void setContent()
Hierarchy
Extends
- SilverStripe\Forms\DatalessField
Members
protected
- $alertTitle
—
string
Alert field title - $alertType
—
string
Alert type (info/warning/danger/success) - $content
—
string
Alert content
Methods
public
- __construct() — Creates a new field.
- getAlertTitle() — Returns the alert title.
- getAlertType() — Returns the alert type.
- getContent() — Returns the content.
- setAlertTitle() — Sets the alert title.
- setAlertType() — Sets the alert type.
- setContent() — Sets the content.