1<?php 2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project 3// 4// All Rights Reserved. See copyright.txt for details and a complete list of authors. 5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. 6// $Id$ 7 8namespace Tiki\FileGallery\Handler; 9 10interface HandlerInterface 11{ 12 /** 13 * Returns a FileWrapper\WrapperInterface for accessing and modifying the file contents 14 * and metadata. 15 */ 16 function getFileWrapper($file); 17 18 /** 19 * Deletes a file from the underlying storage. 20 */ 21 function delete($file); 22 23 /** 24 * Ensures unique filename is available for new files if underlying storage requires it. 25 */ 26 function uniquePath($file); 27 28 /** 29 * Is the underlying storage location writable. 30 */ 31 function isWritable(); 32} 33