mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Added FileIframeField->getCanUploadNewFile()
This commit is contained in:
parent
1189bcb7fe
commit
1b3978095a
@ -28,12 +28,20 @@ class FileIFrameField extends FileField {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets whether or not files can be uploaded into the CMS from the user's local computer
|
* Sets whether or not files can be uploaded into the CMS from the user's local computer
|
||||||
* @param boolean $can
|
*
|
||||||
|
* @param boolean
|
||||||
*/
|
*/
|
||||||
public function setCanUploadNewFile($can) {
|
function setCanUploadNewFile($can) {
|
||||||
$this->canUploadNewFile = $can;
|
$this->canUploadNewFile = $can;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
function getCanUploadNewFile() {
|
||||||
|
return $this->canUploadNewFile;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The data class that this field is editing.
|
* The data class that this field is editing.
|
||||||
* @return string Class name
|
* @return string Class name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user