SilverStripe\Subsites\Extensions\FileSubsites
Extension for the File object to add subsites support
Synopsis
class FileSubsites
extends DataExtension
{
- // members
- private static bool $default_root_folders_global = false;
- private static array $has_one = ;
- // methods
- public void alternateTreeTitle()
- public void augmentSQL()
- public void onBeforeWrite()
- public void onAfterUpload()
- public void canEdit()
- public string cacheKeyComponent()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Tasks
Line | Task |
---|---|
60 | I don't think excluding if SiteTree_ImageTracking is a good idea however because of the SS 3.0 api and |
Members
private
- $default_root_folders_global
—
SilverStripe\Subsites\Extensions\bool
If this is set to true, all folders created will be default be considered 'global', unless set otherwise - $has_one
Methods
public
- alternateTreeTitle() — Amends the CMS tree title for folders in the Files & Images section.
- augmentSQL() — Update any requests to limit the results to the current site
- cacheKeyComponent() — Return a piece of text to keep DataObject cache keys appropriately specific
- canEdit()
- onAfterUpload()
- onBeforeWrite()