Merge pull request #1319 from creative-commoners/pulls/7/replace-extension-subclasses

API Replace Extension subclasses
This commit is contained in:
Guy Sartorelli 2024-08-29 11:05:54 +12:00 committed by GitHub
commit 4961e04869
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -329,7 +329,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.