FIX getDisplayFolderName()

UploadFiels requires getDisplayFolderName() function for server file
selection popup Form.
This commit is contained in:
Tony Air 2014-11-21 10:26:03 +06:00
parent 3335105ee2
commit 3fbc447d77

View File

@ -28,6 +28,14 @@ class GridFieldBulkUpload_Request extends RequestHandler
*/ */
protected $controller; protected $controller;
/**
* @var String Folder to display in "Select files" list.
* Defaults to listing all files regardless of folder.
* The folder path should be relative to the webroot.
* See {@link FileField->folderName} to set the upload target instead.
* @example admin/folder/subfolder
*/
protected $displayFolderName;
/** /**
* RequestHandler allowed actions * RequestHandler allowed actions
@ -73,6 +81,20 @@ class GridFieldBulkUpload_Request extends RequestHandler
return $this->component->bulkUploadField($this->gridField); return $this->component->bulkUploadField($this->gridField);
} }
/**
* @param String
*/
public function setDisplayFolderName($name) {
$this->displayFolderName = $name;
return $this;
}
/**
* @return String
*/
public function getDisplayFolderName() {
return $this->displayFolderName;
}
/** /**
* Process upload through UploadField, * Process upload through UploadField,