Restruct\SilverStripe\ORM\FieldType\NamedLinkField
A link field which will store a link in the database.
Synopsis
class NamedLinkField
extends DBComposite
{
- // members
- protected $page_id;
- protected $custom_url;
- protected $shortcode;
- protected $file_id;
- protected $page_anchor;
- protected $title;
- protected $LinkType;
- protected boolean $isChanged = false;
- private static array $composite_db = ;
- // methods
- public NamedLinkFormField scaffoldFormField()
- public void saveInto()
- public boolean exists()
- public void getLinkmode()
- public void Page()
- public void File()
- public void ShortcodeOutput()
- public void getEmail()
- public void getURL()
Hierarchy
Extends
- SilverStripe\ORM\FieldType\DBComposite
Members
private
- $composite_db
—
array
Similiar to {@link DataObject::$db}, holds an array of composite field names.
protected
- $LinkType — string
- $custom_url — string
- $file_id — int
- $isChanged — boolean
- $page_anchor — string
- $page_id — int
- $shortcode — string
- $title — string
Methods
public
- File()
- Page()
- ShortcodeOutput()
- exists() — Determines if any of the properties in this field have a value, meaning at least one of them is not NULL.
- getEmail()
- getLinkmode()
- getURL()
- saveInto()
- scaffoldFormField() — Returns a CompositeField instance used as a default for form scaffolding.