PHP Class ILabMediaS3Tool, ILab-Media-Tools

S3 Tool.
Inheritance: extends ILabMediaToolBase
Mostrar archivo Open project: jawngee/ILab-Media-Tools

Public Methods

Method Description
__construct ( $toolName, $toolInfo, $toolManager )
calculateSrcSet ( $sources, $size_array, $image_src, $image_meta, $attachment_id )
deleteAttachment ( $id ) : mixed Filters for when attachments are deleted
enabled ( )
getAttachedFile ( $file, $attachment_id )
getAttachmentURL ( $url, $post_id )
handleUpload ( $upload, $context = 'upload' )
importMedia ( )
importProgress ( )
processCrop ( $size, $file, $sizeMeta )
registerMenu ( $top_menu_slug )
renderImporter ( )
s3enabled ( )
settingsChanged ( )
setup ( )
updateAttachmentMetadata ( $data, $id ) : mixed Filter for when attachments are updated

Private Methods

Method Description
delete_file ( $s3, $file )
getAttachmentURLFromMeta ( $meta )
getOffloadS3URL ( $info )
processFile ( $s3, $upload_path, $filename, $data )
s3Client ( $insure_bucket = false )

Method Details

__construct() public method

public __construct ( $toolName, $toolInfo, $toolManager )

calculateSrcSet() public method

public calculateSrcSet ( $sources, $size_array, $image_src, $image_meta, $attachment_id )

deleteAttachment() public method

Filters for when attachments are deleted
public deleteAttachment ( $id ) : mixed
$id
return mixed

enabled() public method

public enabled ( )

getAttachedFile() public method

public getAttachedFile ( $file, $attachment_id )

getAttachmentURL() public method

public getAttachmentURL ( $url, $post_id )

handleUpload() public method

public handleUpload ( $upload, $context = 'upload' )

importMedia() public method

public importMedia ( )

importProgress() public method

public importProgress ( )

processCrop() public method

public processCrop ( $size, $file, $sizeMeta )

registerMenu() public method

public registerMenu ( $top_menu_slug )

renderImporter() public method

public renderImporter ( )

s3enabled() public method

public s3enabled ( )

settingsChanged() public method

public settingsChanged ( )

setup() public method

public setup ( )

updateAttachmentMetadata() public method

Filter for when attachments are updated
public updateAttachmentMetadata ( $data, $id ) : mixed
$data
$id
return mixed