\ContentDeliveryService
Provides an interface to content delivery networks
- Author: marcus@symbiote.com.au
- License: BSD License http://silverstripe.org/bsd-license/
Synopsis
class ContentDeliveryService
{
- // constants
- const CDN_THEME_PREFIX = 'cdntheme';
- // members
- public ContentService $contentService;
- private array $cleanupFiles = ;
- public static array $dependencies = ;
- // methods
- public void removeLocalFile()
- public void cleanup()
- public ThemeCdn getCdnForTheme()
- public void storeThemeFile()
- protected void processFileReferences()
Constants
Name | Value |
---|---|
CDN_THEME_PREFIX | 'cdntheme' |
Members
Methods
protected
public
- cleanup()
- getCdnForTheme() — Get the first available CDN for a given theme
- removeLocalFile()
- storeThemeFile() — Store the contents of a folder on a CDN.