mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
30 lines
764 B
PHP
30 lines
764 B
PHP
<?php
|
|
|
|
namespace SilverStripe\UserForms\FormField;
|
|
|
|
|
|
|
|
use SilverStripe\Security\Group;
|
|
use SilverStripe\Dev\Deprecation;
|
|
use SilverStripe\Forms\TreeDropdownField;
|
|
|
|
|
|
|
|
/**
|
|
* {@link TreeDropdownField} subclass for handling loading folders through the
|
|
* nested {@link FormField} instances of the {@link FieldEditor}
|
|
*
|
|
* @deprecated since version 4.0
|
|
* @package userforms
|
|
*/
|
|
class UserformsTreeDropdownField extends TreeDropdownField
|
|
{
|
|
|
|
public function __construct($name, $title = null, $sourceObject = Group::class, $keyField = 'ID', $labelField = 'TreeTitle', $showSearch = true)
|
|
{
|
|
parent::__construct($name, $title, $sourceObject, $keyField, $labelField, $showSearch);
|
|
|
|
Deprecation::notice('4.0', __CLASS__ . " is deprecated");
|
|
}
|
|
}
|