mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API CHANGE Removed Filesystem::moverootfilesto()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64401 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
049ab468e3
commit
b3f57dd454
@ -43,21 +43,6 @@ class Filesystem extends Object {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function moverootfilesto() {
|
||||
if(!Permission::check('ADMIN')) Security::permissionFailure($this);
|
||||
|
||||
if($folder = $this->urlParams['ID']) {
|
||||
$newParent = Folder::findOrMake($folder);
|
||||
$files = DataObject::get("File", "ClassName != 'Folder' AND ParentID = 0");
|
||||
foreach($files as $file) {
|
||||
echo "<li>" , $file->RelativePath;
|
||||
$file->ParentID = $newParent->ID;
|
||||
echo " -> " , $file->RelativePath;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Cleanup function to reset all the Filename fields. Visit File/fixfiles to call.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user