silverstripe-framework/filesystem
CheeseSucker 3d9e12baf4 ENHANCEMENT: Allow programmers to set OwnerID for new files.
NOTE: This change should be reviewed to make sure it does not cause any side effects.

Example use case: 
    An admin porting user images from an old website.
    The script would put the images in the assets folder,
    and then insert them into the database using Image::write()
    and data from the old database.

public function insertImage($data) {
    $image = new Image();
    $image->ParentID = $data->parentId;
    $image->Title = $data->title;
    $image->FileName = $data->filename;
    $image->OwnerID = $data->ownerId;
    $image->write();
    
    // In the current version, this results in all images
    // being owned by Member::currentUser() instead of 
    // the expected $data->ownerId;
}
2013-06-14 18:30:09 +02:00
..
File.php ENHANCEMENT: Allow programmers to set OwnerID for new files. 2013-06-14 18:30:09 +02:00
FileFinder.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
FileNameFilter.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
Filesystem.php BUG Fixing Filesystem::sync breaking subsite pages with same URLSegments 2013-05-14 09:45:14 +12:00
Folder.php API: Add sync_blacklisted_patterns for configuring files to skip in sync tasks 2013-05-11 16:06:14 +12:00
GD.php API: used call_user_func_array in order to have an arbitrary number of parameter for getFormattedImage (fixes #1752) 2013-04-11 16:51:36 +02:00
ImagickBackend.php Merge pull request #1845 from a2nt/imagemagick_fix 2013-05-08 00:45:20 -07:00
Upload.php API UploadField functions on new records 2013-05-27 15:22:59 +12:00