mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API CHANGE Removed deprecated File->setMaxFileSize(), use Upload class
API CHANGE Removed deprecated File->getMaxFileSize(), use Upload class API CHANGE Removed File::sync(), use Filesystem::sync() API CHANGE Removed deprecated File::fixfiles() API CHANGE Removed deprecated File::loadContent(), use Upload class API CHANGE Removed deprecated File::loadallcontent(), use Upload class git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64402 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b3f57dd454
commit
252f739919
@ -530,73 +530,6 @@ class File extends DataObject {
|
||||
self::$cache_file_fields = null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* DEPRECATED
|
||||
*/
|
||||
static $file_size_restrictions = array();
|
||||
|
||||
/**
|
||||
* DEPRECATED
|
||||
*/
|
||||
static $allowed_file_types = array();
|
||||
|
||||
/**
|
||||
* DEPRECATED
|
||||
*/
|
||||
static function setMaxFileSize( $maxSize, $warningSize, $extension = '*' ) {
|
||||
user_error('File::setMaxFileSize is deprecated',E_USER_ERROR);
|
||||
}
|
||||
|
||||
/**
|
||||
* DEPRECATED
|
||||
*/
|
||||
static function getMaxFileSize($extension = '*') {
|
||||
user_error('File::getMaxFileSize is deprecated',E_USER_ERROR);
|
||||
}
|
||||
|
||||
/**
|
||||
* DEPRECATED
|
||||
*/
|
||||
static function sync() {
|
||||
user_error('File::sync is deprecated - please use FileSystem::sync',E_USER_ERROR);
|
||||
}
|
||||
|
||||
/**
|
||||
* DEPRECATED
|
||||
*/
|
||||
function moverootfilesto() {
|
||||
user_error('File::moverootfilesto is deprecated - please use FileSystem::moverootfilesto',E_USER_ERROR);
|
||||
}
|
||||
|
||||
/**
|
||||
* DEPRECATED
|
||||
*/
|
||||
function fixfiles() {
|
||||
user_error('File::fixfiles is deprecated - please use FileSystem::fixfiles',E_USER_ERROR);
|
||||
}
|
||||
|
||||
/**
|
||||
* DEPRECATED
|
||||
*/
|
||||
function loadContent() {
|
||||
user_error('File::loadContent deprecated',E_USER_ERROR);
|
||||
}
|
||||
|
||||
/**
|
||||
* DEPRECATED
|
||||
*/
|
||||
public function loadallcontent() {
|
||||
user_error('File::loadallcontent deprecated',E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@ -490,12 +490,6 @@ class Folder extends File {
|
||||
</iframe>
|
||||
HTML;
|
||||
}
|
||||
/**
|
||||
* Since this is a folder, we don't have any content as such.
|
||||
*/
|
||||
function loadContent() {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user