PHP Class Cloudinary\Uploader

Mostra file Open project: cloudinary/cloudinary_php Class Usage Examples

Public Methods

Method Description
add_tag ( $tag, $public_ids = [], $options = [] )
build_upload_params ( &$options )
call_api ( $action, $params, $options = [], $file = NULL )
call_tags_api ( $tag, $command, $public_ids = [], &$options = [] )
create_archive ( $options = [], $target_format = NULL ) # Creates a new archive in the server and returns information in JSON format
create_zip ( $options = [] ) # Creates a new zip archive in the server and returns information in JSON format
destroy ( $public_id, $options = [] )
explicit ( $public_id, $options = [] )
explode ( $public_id, $options = [] )
generate_sprite ( $tag, $options = [] )
multi ( $tag, $options = [] )
remove_tag ( $tag, $public_ids = [], $options = [] )
rename ( $from_public_id, $to_public_id, $options = [] )
replace_tag ( $tag, $public_ids = [], $options = [] )
text ( $text, $options = [] )
unsigned_upload ( $file, $upload_preset, $options = [] )
upload ( $file, $options = [] )
upload_large ( $file, $options = [] ) Upload large raw files. Note that public_id should include an extension for best results.
upload_large_part ( $file, $options = [] ) Upload large raw files. Note that public_id should include an extension for best results.

Protected Methods

Method Description
build_custom_headers ( $headers )
build_eager ( $transformations )
build_responsive_breakpoints ( $breakpoints )

Method Details

add_tag() public static method

public static add_tag ( $tag, $public_ids = [], $options = [] )

build_custom_headers() protected static method

protected static build_custom_headers ( $headers )

build_eager() protected static method

protected static build_eager ( $transformations )

build_responsive_breakpoints() protected static method

protected static build_responsive_breakpoints ( $breakpoints )

build_upload_params() public static method

public static build_upload_params ( &$options )

call_api() public static method

public static call_api ( $action, $params, $options = [], $file = NULL )

call_tags_api() public static method

public static call_tags_api ( $tag, $command, $public_ids = [], &$options = [] )

create_archive() public static method

# Creates a new archive in the server and returns information in JSON format
public static create_archive ( $options = [], $target_format = NULL )

create_zip() public static method

# Creates a new zip archive in the server and returns information in JSON format
public static create_zip ( $options = [] )

destroy() public static method

public static destroy ( $public_id, $options = [] )

explicit() public static method

public static explicit ( $public_id, $options = [] )

explode() public static method

public static explode ( $public_id, $options = [] )

generate_sprite() public static method

public static generate_sprite ( $tag, $options = [] )

multi() public static method

public static multi ( $tag, $options = [] )

remove_tag() public static method

public static remove_tag ( $tag, $public_ids = [], $options = [] )

rename() public static method

public static rename ( $from_public_id, $to_public_id, $options = [] )

replace_tag() public static method

public static replace_tag ( $tag, $public_ids = [], $options = [] )

text() public static method

public static text ( $text, $options = [] )

unsigned_upload() public static method

public static unsigned_upload ( $file, $upload_preset, $options = [] )

upload() public static method

public static upload ( $file, $options = [] )

upload_large() public static method

Upload large raw files. Note that public_id should include an extension for best results.
public static upload_large ( $file, $options = [] )

upload_large_part() public static method

Upload large raw files. Note that public_id should include an extension for best results.
public static upload_large_part ( $file, $options = [] )