Documentation

EasyBlogStorageAmazon
in package
implements EasyBlogStorageInterface

Table of Contents

Interfaces

EasyBlogStorageInterface

Properties

$bucket  : mixed
$config  : mixed
$endpoint  : mixed
$region  : mixed
$secure  : mixed
$client  : mixed

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
since
5.3.0
access

public

createContainer()

Creates a new container on Amazon S3

public createContainer(mixed $container) : mixed
Parameters
$container : mixed
Tags
since
5.3.0
access

public

delete()

Deletes a file from the remote repository

public delete(mixed $paths[, mixed $folder = false ]) : mixed
Parameters
$paths : mixed
$folder : mixed = false
Tags
since
5.3.0
access

public

download()

Method to download the file from amazon

public download(mixed $filePath, mixed $fileName) : mixed
Parameters
$filePath : mixed
$fileName : mixed
Tags
since
5.3.0
access

public

getContainers()

Returns a list of buckets

public getContainers() : mixed
Tags
since
5.3.0
access

public

Returns the absolute path to the object

public getPermalink([mixed $relativePath = '' ]) : mixed
Parameters
$relativePath : mixed = ''
Tags
since
5.3.0
access

public

init()

Initializes a bucket

public init() : mixed
Tags
since
5.3.0
access

public

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
since
5.3.0
access

public

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
since
5.3.0
access

public

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
since
5.3.0
access

public

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
Tags
since
5.3.0
access

public


        
On this page

Search results