Sunnysideup\AssetsOverview\Files\AllFilesInfo
Synopsis
class AllFilesInfo
implements
FileInfo
{
- // members
- protected string $path = '';
- protected static array $dataStaging = ;
- protected static array $dataLive = ;
- protected static array $listOfFiles = ;
- protected static array $databaseLookupListStaging = ;
- protected static array $availableExtensions = ;
- protected static array $databaseLookupListLive = ;
- private static array $not_real_file_substrings = ;
- // methods
- public void __construct()
- public static void getTotalFilesCount()
- public static void getAvailableExtensions()
- public static void existsOnStaging()
- public static void existsOnLive()
- public static void getAnyData()
- public static void getStagingData()
- public static void getLiveData()
- public static void findInStagingData()
- public static void findInLiveData()
- public static void getTotalFileSizesRaw()
- public void toArray()
- protected void registerFile()
- protected static void findIdFromFileName()
- protected static void findInData()
- protected void isRealFile()
- protected void getArrayOfFilesOnDisk()
- protected void getArrayOfFilesInDatabase()
- protected void getCacheKey()
- // Inherited methods from FilesystemRelatedTraits
- protected void humanFileSize()
- protected void getExtension()
- protected void getBaseFolder()
- protected void getPublicBaseFolder()
- protected void getAssetsBaseFolder()
- // Inherited methods from Cacher
- public static void loadedFromCache()
- public static void flushCache()
- protected static CacheInterface getCache()
- protected void setCacheValue()
- protected mixed getCacheValue()
- protected void hasCacheKey()
Hierarchy
Uses
- Sunnysideup\AssetsOverview\Traits\FilesystemRelatedTraits
- SilverStripe\Core\Injector\Injectable
- SilverStripe\Core\Config\Configurable
- Sunnysideup\AssetsOverview\Traits\Cacher
- Sunnysideup\Flush\FlushNow
Implements
Members
private
- $not_real_file_substrings
protected
- $assetsBaseFolder — string
- $availableExtensions — array
- $baseFolder — string
- $dataLive — array
- $dataStaging — array
- $databaseLookupListLive — array
- $databaseLookupListStaging — array
- $listOfFiles — array
- $path — string
- $publicBaseFolder — string
Methods
protected
- findIdFromFileName()
- findInData()
- getArrayOfFilesInDatabase()
- getArrayOfFilesOnDisk()
- getCacheKey()
- isRealFile()
- registerFile()
public
- __construct()
- existsOnLive() — does the file exists in the database on live?
- existsOnStaging() — does the file exists in the database on staging?
- findInLiveData() — find a value in a field in live returns ID of row.
- findInStagingData() — find a value in a field in staging returns ID of row.
- getAnyData() — get data from staging database row.
- getAvailableExtensions()
- getLiveData() — get data from live database row.
- getStagingData() — get data from staging database row.
- getTotalFileSizesRaw()
- getTotalFilesCount()
- toArray()
Inherited from Sunnysideup\AssetsOverview\Traits\FilesystemRelatedTraits
protected
Inherited from Sunnysideup\AssetsOverview\Traits\Cacher
protected
public
- flushCache()
- loadedFromCache() — return false if the cache has been set or a cache key was not found.