PHP 클래스 ILabMediaS3Tool, ILab-Media-Tools

S3 Tool.
상속: extends ILabMediaToolBase
파일 보기 프로젝트 열기: jawngee/ILab-Media-Tools

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
delete_file ( $s3, $file )
getAttachmentURLFromMeta ( $meta )
getOffloadS3URL ( $info )
processFile ( $s3, $upload_path, $filename, $data )
s3Client ( $insure_bucket = false )

메소드 상세

__construct() 공개 메소드

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

calculateSrcSet() 공개 메소드

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

deleteAttachment() 공개 메소드

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

enabled() 공개 메소드

public enabled ( )

getAttachedFile() 공개 메소드

public getAttachedFile ( $file, $attachment_id )

getAttachmentURL() 공개 메소드

public getAttachmentURL ( $url, $post_id )

handleUpload() 공개 메소드

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

importMedia() 공개 메소드

public importMedia ( )

importProgress() 공개 메소드

public importProgress ( )

processCrop() 공개 메소드

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

registerMenu() 공개 메소드

public registerMenu ( $top_menu_slug )

renderImporter() 공개 메소드

public renderImporter ( )

s3enabled() 공개 메소드

public s3enabled ( )

settingsChanged() 공개 메소드

public settingsChanged ( )

setup() 공개 메소드

public setup ( )

updateAttachmentMetadata() 공개 메소드

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