API Replace Extension subclasses

This commit is contained in:
Steve Boyd 2024-08-20 16:25:59 +12:00
parent 6eb29d35bd
commit 07d875dbd7
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\Core\Injector\Injector;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;
use SilverStripe\ORM\DataList;
use SilverStripe\ORM\DataObject;
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
*
* @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

View File

@ -13,7 +13,7 @@ use SilverStripe\Forms\GridField\GridFieldEditButton;
use SilverStripe\Forms\GridField\GridFieldDeleteAction;
use SilverStripe\Forms\GridField\GridFieldDetailForm;
use SilverStripe\Forms\GridField\GridFieldToolbarHeader;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;
use SilverStripe\ORM\DataList;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\HasManyList;
@ -32,7 +32,7 @@ use Symbiote\GridFieldExtensions\GridFieldOrderableRows;
/**
* @method HasManyList<EditableFormField> Fields()
*/
class UserFormFieldEditorExtension extends DataExtension
class UserFormFieldEditorExtension extends Extension
{
/**
* @var array

View File

@ -5,7 +5,7 @@ namespace SilverStripe\UserForms\Extension;
use SilverStripe\Assets\File;
use SilverStripe\Assets\Folder;
use SilverStripe\Core\Convert;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\Queries\SQLUpdate;
use SilverStripe\UserForms\Control\UserDefinedFormController;
@ -15,9 +15,9 @@ use SilverStripe\UserForms\Model\Submission\SubmittedFileField;
* @property string $UserFormUpload
* @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;

View File

@ -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.
* Converts the RelationList to an ArrayList so that manipulation
* of the original source data isn't possible.