Source of file MediaDataManager.php
Size: 0,819 Bytes - Last Modified: 2021-12-23T10:54:09+00:00
/var/www/docs.ssmods.com/process/src/code/MediaDataManager.php
123456789101112131415161718192021222324252627282930313233343536373839 | <?php /** * Loader class for MediaData module * @author Damo */ class MediaDataManager { /** * Flag to indicate whether this module should attempt to automatically load itself * @var boolean */ public static $auto_load = true; public static $cache_class = 'MediaDataFactory'; public static function load() { Object::add_extension('File', 'MediaDataFileExtension'); } /** * Instance of cache to use * @var IMediaDataCache */ private static $_instance = null; /** * Returns or constructs the data factory * @return IMediaDataFactory */ public static function factory() { if (!self::$_instance) self::$_instance = new self::$cache_class(); return self::$_instance; } } |