CodeCraft\Announce\Model\Action
Synopsis
class Action
extends ViewableData
{
- // constants
- const DEFAULT = 'default';
- const BUTTON = 'button';
- const ANCHOR = 'anchor';
- // members
- protected $name;
- protected $content;
- protected $type;
- protected $link;
- protected array $extraClasses = ;
- protected array $attributes = ;
- private static array $casting = ;
- // methods
- public void __construct()
- public Action setName()
- public string getName()
- public Announcement setContent()
- public string getContent()
- public void setType()
- public string getType()
- public Action setLink()
- public string getLink()
- public array getExtraClasses()
- public string getExtraClassesString()
- public Action addExtraClass()
- public $this removeExtraClass()
- public Action setAttribute()
- public string getAttribute()
- public array getAttributes()
- public string getAttributesHTML()
- public string forTemplate()
Hierarchy
Extends
- SilverStripe\View\ViewableData
Constants
Name | Value |
---|---|
DEFAULT | 'default' |
BUTTON | 'button' |
ANCHOR | 'anchor' |
Members
private
- $casting
protected
- $attributes — array
- $content — string
- $extraClasses — array
- $link — string
- $name — string
- $type — string
Methods
public
- __construct()
- addExtraClass() — Add one or more CSS-classes to the FormField container.
- forTemplate()
- getAttribute()
- getAttributes()
- getAttributesHTML()
- getContent()
- getExtraClasses()
- getExtraClassesString() — Get all extra classes compiled into a single string
- getLink()
- getName()
- getType()
- removeExtraClass() — Remove one or more CSS-classes from the FormField container.
- setAttribute() — Set an HTML attribute on the action element, mostly an input tag.
- setContent() — Set the content of this announcement
- setLink() — Set the link of this action
- setName() — Set the name of this action
- setType()