silverstripe-module extended-file
Extends the file object with a load method to easily create file objects from file path
andrelohmann-silverstripe/extended-file
Extends the file object with a load method to easily create file objects from file path
- Tuesday, January 5, 2016
- by andrelohmann
- Repository
- 1 Watchers
- 2 Stars
- 498 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 1 Forks
- 3 Open issues
- 4 Versions
- 1 % Grown
silverstripe extended file
Maintainers
- Andre Lohmann (Nickname: andrelohmann)
Requirements
Silverstripe 3.2.x, (*1)
Introduction
This module extends the File class with a load method, that allows to create file objects from path and a CloudURL Method, that allows to use a thirdparty CDN Domain for all Files., (*2)
Usage
// Load from File
$File = new File();
$File->load(FILE_PATH, TARGET_PATH);
// use CDN URL
Config::inst()->update('ExtendedFile', 'cloud_url', YOUR_CDN_DOMAIN);
echo $File->getCloudURL();
dev-develop
dev-develop
Extends the file object with a load method to easily create file objects from file path
Sources
Download
BSD-3-Clause
The Requires
framework
silverstripe
dev-master
9999999-dev
Extends the file object with a load method to easily create file objects from file path
Sources
Download
BSD-3-Clause
The Requires
framework
silverstripe
1.1.0
1.1.0.0
Extends the file object with a load method to easily create file objects from file path
Sources
Download
BSD-3-Clause
The Requires
framework
silverstripe
1.0.0
1.0.0.0
Extends the file object with a load method to easily create file objects from file path
Sources
Download
BSD-3-Clause
The Requires
framework
silverstripe