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
10use Tiki\FileGallery\FileWrapper\PreloadedContent;
11
12class Preloaded implements HandlerInterface
13{
14	function getFileWrapper($file)
15	{
16		return new PreloadedContent($file->data);
17	}
18
19	function delete($file)
20	{
21	}
22
23  function uniquePath($file) {
24    return $file->path;
25  }
26
27  function isWritable() {
28    return true;
29  }
30}
31