Source of file UploadDirRulesInterface.php
Size: 1,288 Bytes - Last Modified: 2021-12-23T10:52:06+00:00
/var/www/docs.ssmods.com/process/src/code/UploadDirRulesInterface.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | <?php /** * Upload Dir rules follow a pattern, and objects that use those rule have to follow * this pattern. * Objects that have different rules need to implement this interface. * * @author Anselm Christophersen <ac@title.dk> * @copyright Copyright (c) 2015, Title Web Solutions */ interface UploadDirRulesInterface { /** * Calculation of the assets folder directory. * If this returns false/null, no directory is created * * @return string */ public function getCalcAssetsFolderDirectory(); //TODO below should be optional //They are still used, but not required // /** // * Message in the "save first" dialog // * Return "false" for default message. // * // * @return string|false // */ // public function getMessageSaveFirst(); // // /** // * Message in the "upload directory" label // * Return "false" for default message. // * // * @return string|false // */ // public function getMessageUploadDirectory(); // // /** // * Folder will only be created when the object is ready for it. // * TODO this one is practically obsolete if getCalcAssetsFolderDirectory can return null // * // * @return bool // */ // public function getReadyForFolderCreation(); } |