ExternalTreeDropdownField::__construct
Signature
public function __construct(string
$name,
[string
$title = NULL,
[string
$sourceObject = 'Group',
[string
$keyField = 'ID',
[string
$labelField = 'Title',
[boolean
$showChildren = true]]]]] )
Parameters
$name
—
string
- the field name
$title
—
string
- the field label
$sourceObject
—
string
$keyField
—
string
- to field on the source class to save as the field value (default ID).
$labelField
—
string
- the field name to show as the human-readable value on the tree (default Title).
$showChildren
—
boolean
- whether children should be selectable