EasyBlogStorageAmazon
in package
implements
EasyBlogStorageInterface
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- containerExists() : mixed
- Checks if the provided bucket exists on S3
- createContainer() : mixed
- Creates a new container on Amazon S3
- delete() : mixed
- Deletes a file from the remote repository
- download() : mixed
- Method to download the file from amazon
- getContainers() : mixed
- Returns a list of buckets
- getPermalink() : mixed
- Returns the absolute path to the object
- init() : mixed
- Initializes a bucket
- pull() : mixed
- Pulls a file from the remote repositor
- push() : mixed
- Pushes a file to the remote repository
- replaceMediaUrlToAmazon() : mixed
- replace image src in the content From: images/easyblog_articles/24/b2ap3_large_54930-Pretty-Pink-Candles.jpg To: https://s3.amazonaws.com/bucket-name/images/easyblog_articles/24/b2ap3_large_54930-Pretty-Pink-Candles.jpg
- replaceMediaUrlToJoomla() : mixed
- replace image src in the content FROM: https://s3.amazonaws.com/bucket-name/images/easyblog_articles/24/b2ap3_large_54930-Pretty-Pink-Candles.jpg TO: images/easyblog_articles/24/b2ap3_large_54930-Pretty-Pink-Candles.jpg
Properties
$bucket
public
mixed
$bucket
= \null
$config
public
mixed
$config
= \null
$endpoint
public
mixed
$endpoint
= 's3.amazonaws.com'
$region
public
mixed
$region
= \null
$secure
public
mixed
$secure
= \null
$client
private
mixed
$client
= \null
Methods
__construct()
public
__construct() : mixed
containerExists()
Checks if the provided bucket exists on S3
public
containerExists(mixed $bucket) : mixed
Parameters
- $bucket : mixed
Tags
createContainer()
Creates a new container on Amazon S3
public
createContainer(mixed $container) : mixed
Parameters
- $container : mixed
Tags
delete()
Deletes a file from the remote repository
public
delete(mixed $paths[, mixed $folder = false ]) : mixed
Parameters
- $paths : mixed
- $folder : mixed = false
Tags
download()
Method to download the file from amazon
public
download(mixed $filePath, mixed $fileName) : mixed
Parameters
- $filePath : mixed
- $fileName : mixed
Tags
getContainers()
Returns a list of buckets
public
getContainers() : mixed
Tags
getPermalink()
Returns the absolute path to the object
public
getPermalink([mixed $relativePath = '' ]) : mixed
Parameters
- $relativePath : mixed = ''
Tags
init()
Initializes a bucket
public
init() : mixed
Tags
pull()
Pulls a file from the remote repositor
public
pull(mixed $relativePath[, mixed $isSingle = false ][, mixed $singleTargetPath = '' ]) : mixed
Parameters
- $relativePath : mixed
- $isSingle : mixed = false
- $singleTargetPath : mixed = ''
Tags
push()
Pushes a file to the remote repository
public
push(mixed $fileName, mixed $source, mixed $dest[, mixed $mimeType = 'application/octet-stream' ]) : mixed
Parameters
- $fileName : mixed
- $source : mixed
- $dest : mixed
- $mimeType : mixed = 'application/octet-stream'
Tags
replaceMediaUrlToAmazon()
replace image src in the content From: images/easyblog_articles/24/b2ap3_large_54930-Pretty-Pink-Candles.jpg To: https://s3.amazonaws.com/bucket-name/images/easyblog_articles/24/b2ap3_large_54930-Pretty-Pink-Candles.jpg
public
replaceMediaUrlToAmazon(mixed $relativePath, mixed $content) : mixed
Parameters
- $relativePath : mixed
- $content : mixed
Tags
replaceMediaUrlToJoomla()
replace image src in the content FROM: https://s3.amazonaws.com/bucket-name/images/easyblog_articles/24/b2ap3_large_54930-Pretty-Pink-Candles.jpg TO: images/easyblog_articles/24/b2ap3_large_54930-Pretty-Pink-Candles.jpg
public
replaceMediaUrlToJoomla(mixed $content) : mixed
Parameters
- $content : mixed