media-manager-improvement icon indicating copy to clipboard operation
media-manager-improvement copied to clipboard

Refactor the getFileInformation method to an interface methods

Open kasvith opened this issue 7 years ago • 0 comments

Currently we have getFiles and getFile methods which requires returning a stdClass object or objects. But when people dealing with this they can miss many parts of that because of not paying attention to the API Docs, so we need to break this apart to small small methods like getFileName, getFileSize, getCreationDate, getPath and pack it in a interface like FileInfoInterface, so we can ask plugin developers to use this interface instead of a stdClass, this will make Media Manager API more clean an easy to use

kasvith avatar Oct 04 '17 17:10 kasvith