CyberDuck\LinkItemField\Model\LinkItem
LinkItem
Link Item object class for use as $has_one relation
- Author: <andrewm@cyber-duck.co.uk>
- License: MIT License https://github.com/cyber-duck/silverstripe-linkitemfield/blob/master/LICENSE
Synopsis
class LinkItem
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $owns = ;
- private static array $summary_fields = ;
- private static string $table_name = 'LinkItem';
- private static string $default_sort = 'SortOrder';
- private static string $singular_name = 'Link Item';
- private static string $plural_name = 'Link Items';
- // methods
- public FieldList getCMSFields()
- public RequiredFields getCMSValidator()
- public array Link()
- public array getMenuItems()
- public array getTargets()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db
—
array
db field config - $default_sort
—
array
default_sort db table default sorting columns - $has_one
—
array
has_one relation config - $owns
- $plural_name
—
array
plural_name Object plural name - $singular_name
—
array
singular_name Object singular name - $summary_fields
—
array
summary_fields grid field config - $table_name
—
array
table_name db table name
Methods
public
- Link() — Returns the formatted URL
- getCMSFields() — Returns the object CMS fields
- getCMSValidator() — Returns the object CMS fields validator
- getMenuItems() — Returns an array of Link types.
- getTargets() — Returns an array of Link targets.