Source of file InlineLink_FileField.php
Size: 0,869 Bytes - Last Modified: 2021-12-23T10:07:22+00:00
/var/www/docs.ssmods.com/process/src/src/Forms/InlineLink_FileField.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445 | <?php namespace NSWDPC\InlineLinker; use SilverStripe\AssetAdmin\Forms\UploadField; /** * Allow a file to be associated with a {@link gorriecoe\Link\Models\Link} */ class InlineLink_FileField extends UploadField { use InlineLink; protected $link_type = InlineLinkField::LINKTYPE_FILE; /** * Set if uploading new files is enabled. * If false, only existing files can be selected * * @var bool */ protected $uploadEnabled = true; /** * Set if selecting existing files is enabled. * If false, only new files can be selected. * * @var bool */ protected $attachEnabled = true; /** * The number of files allowed for this field * * @var null|int */ protected $allowedMaxFileNumber = 1; /** * @var bool|null */ protected $multiUpload = false; } |