mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
API Replace Extension subclasses
This commit is contained in:
parent
6eb29d35bd
commit
07d875dbd7
@ -4,7 +4,7 @@ namespace SilverStripe\UserForms\Extension;
|
|||||||
|
|
||||||
use SilverStripe\Control\Director;
|
use SilverStripe\Control\Director;
|
||||||
use SilverStripe\Core\Injector\Injector;
|
use SilverStripe\Core\Injector\Injector;
|
||||||
use SilverStripe\ORM\DataExtension;
|
use SilverStripe\Core\Extension;
|
||||||
use SilverStripe\ORM\DataList;
|
use SilverStripe\ORM\DataList;
|
||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\ORM\ValidationException;
|
use SilverStripe\ORM\ValidationException;
|
||||||
@ -24,9 +24,9 @@ use SilverStripe\UserForms\UserForm;
|
|||||||
*
|
*
|
||||||
* @internal This API is likely to be removed in later major versions of silverstripe/userforms
|
* @internal This API is likely to be removed in later major versions of silverstripe/userforms
|
||||||
*
|
*
|
||||||
* @extends DataExtension<UserDefinedForm>
|
* @extends Extension<UserDefinedForm>
|
||||||
*/
|
*/
|
||||||
class UpgradePolymorphicExtension extends DataExtension
|
class UpgradePolymorphicExtension extends Extension
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* A list of userforms classes that have had polymorphic relationships added in SilverStripe 4, and the fields
|
* A list of userforms classes that have had polymorphic relationships added in SilverStripe 4, and the fields
|
||||||
|
@ -13,7 +13,7 @@ use SilverStripe\Forms\GridField\GridFieldEditButton;
|
|||||||
use SilverStripe\Forms\GridField\GridFieldDeleteAction;
|
use SilverStripe\Forms\GridField\GridFieldDeleteAction;
|
||||||
use SilverStripe\Forms\GridField\GridFieldDetailForm;
|
use SilverStripe\Forms\GridField\GridFieldDetailForm;
|
||||||
use SilverStripe\Forms\GridField\GridFieldToolbarHeader;
|
use SilverStripe\Forms\GridField\GridFieldToolbarHeader;
|
||||||
use SilverStripe\ORM\DataExtension;
|
use SilverStripe\Core\Extension;
|
||||||
use SilverStripe\ORM\DataList;
|
use SilverStripe\ORM\DataList;
|
||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\ORM\HasManyList;
|
use SilverStripe\ORM\HasManyList;
|
||||||
@ -32,7 +32,7 @@ use Symbiote\GridFieldExtensions\GridFieldOrderableRows;
|
|||||||
/**
|
/**
|
||||||
* @method HasManyList<EditableFormField> Fields()
|
* @method HasManyList<EditableFormField> Fields()
|
||||||
*/
|
*/
|
||||||
class UserFormFieldEditorExtension extends DataExtension
|
class UserFormFieldEditorExtension extends Extension
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
|
@ -5,7 +5,7 @@ namespace SilverStripe\UserForms\Extension;
|
|||||||
use SilverStripe\Assets\File;
|
use SilverStripe\Assets\File;
|
||||||
use SilverStripe\Assets\Folder;
|
use SilverStripe\Assets\Folder;
|
||||||
use SilverStripe\Core\Convert;
|
use SilverStripe\Core\Convert;
|
||||||
use SilverStripe\ORM\DataExtension;
|
use SilverStripe\Core\Extension;
|
||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\ORM\Queries\SQLUpdate;
|
use SilverStripe\ORM\Queries\SQLUpdate;
|
||||||
use SilverStripe\UserForms\Control\UserDefinedFormController;
|
use SilverStripe\UserForms\Control\UserDefinedFormController;
|
||||||
@ -15,9 +15,9 @@ use SilverStripe\UserForms\Model\Submission\SubmittedFileField;
|
|||||||
* @property string $UserFormUpload
|
* @property string $UserFormUpload
|
||||||
* @method SubmittedFileField SubmittedFileField()
|
* @method SubmittedFileField SubmittedFileField()
|
||||||
*
|
*
|
||||||
* @extends DataExtension<File&static>
|
* @extends Extension<File&static>
|
||||||
*/
|
*/
|
||||||
class UserFormFileExtension extends DataExtension
|
class UserFormFileExtension extends Extension
|
||||||
{
|
{
|
||||||
|
|
||||||
public const USER_FORM_UPLOAD_UNKNOWN = null;
|
public const USER_FORM_UPLOAD_UNKNOWN = null;
|
||||||
|
@ -328,7 +328,7 @@ SQL;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allow overriding the EmailRecipients on a {@link DataExtension}
|
* Allow overriding the EmailRecipients on a {@link Extension}
|
||||||
* so you can customise who receives an email.
|
* so you can customise who receives an email.
|
||||||
* Converts the RelationList to an ArrayList so that manipulation
|
* Converts the RelationList to an ArrayList so that manipulation
|
||||||
* of the original source data isn't possible.
|
* of the original source data isn't possible.
|
||||||
|
Loading…
Reference in New Issue
Block a user