Sheadawson\Linkable\Forms\LinkField
Class LinkField
- Author: <shea@silverstripe.com.au>
- License: BSD License http://www.silverstripe.org/bsd-license
Synopsis
class LinkField
extends TextField
{
- // members
- private static array $allowed_actions = ;
- protected bool $isFrontend = false;
- protected Link $linkObject;
- protected $allowed_types = NULL;
- // methods
- public DBHTMLText Field()
- public Form LinkForm()
- public DBHTMLText doSaveLink()
- public DBHTMLText doRemoveLink()
- public Link getLinkObject()
- public DBHTMLText LinkFormHTML()
- public bool getIsFrontend()
- public $this setIsFrontend()
- public $this setAllowedTypes()
- public array getAllowedTypes()
Hierarchy
Extends
- SilverStripe\Forms\TextField
Members
private
- $allowed_actions — array
protected
- $allowed_types
—
array
List the allowed included link types. If null all are allowed. - $isFrontend — Sheadawson\Linkable\Forms\bool
- $linkObject — Sheadawson\Linkable\Models\Link
Methods
public
- Field()
- LinkForm() — The LinkForm for the dialog window
- LinkFormHTML() — Returns the HTML of the LinkForm for the dialog
- doRemoveLink() — Delete link action - TODO
- doSaveLink() — Either updates the current link or creates a new one Returns field template to update the interface
- getAllowedTypes()
- getIsFrontend()
- getLinkObject() — Returns the current link object
- setAllowedTypes()
- setIsFrontend()