\S3ImageExtension
Class S3FileExtension Contains utility methods to connect to S3 bucket
Synopsis
class S3ImageExtension
extends DataExtension
{
- // members
- public S3Facade $s3Facade;
- private bool $skipAfterWrite = false;
- private static bool $keepLocal = true;
- private static array $db = ;
- private static array $defaults = ;
- private static array $summary_fields = ;
- private static array $indexes = ;
- private static array $has_one = ;
- private static array $has_many = ;
- // methods
- public void updateCMSFields()
- public void onBeforeWrite()
- public void onAfterWrite()
- public void onAfterDelete()
- public void getRelativePath()
- public void getFilename()
Hierarchy
Extends
- DataExtension
Members
private
- $db
- $defaults
- $has_many
- $has_one
- $indexes
- $keepLocal
—
bool
Used to control flag for local deletion - $skipAfterWrite
—
bool
Mechanism to avoid endless loop of afterWrite calls - $summary_fields
public
- $s3Facade
—
S3Facade
Injected facade
Methods
public
- getFilename()
- getRelativePath()
- onAfterDelete() — Deletes the file from S3 bucket as well.
- onAfterWrite() — Writes the image to S3 bucket after it's written locally.
- onBeforeWrite()
- updateCMSFields()