Method |
Description |
|
__construct ( string $uuid_or_url, Api $api, boolean | array | object $data = false ) |
Constructs an object for CDN file with specified ID |
|
__get ( $name ) : array | null |
|
|
__toString ( ) : string |
|
|
copy ( string $target = null ) : File | string |
Copy the file. |
|
copyTo ( string $target ) : string |
Copy the file to custom storage. |
|
crop ( integer $width, integer $height, boolean $center = false, string | boolean $fill_color = false ) : File |
Get object with cropped parameters. |
|
delete ( ) : array |
Delete file |
|
effect ( string $effect ) : File |
Apply effect |
|
getFileId ( ) : string |
Get UUID |
|
getImgTag ( string $postfix = null, array $attribs = [] ) : string |
Get image tag |
|
getUrl ( string $postfix = null ) : string |
Get url of original image |
|
getUuid ( ) |
Get UUID |
|
op ( string $operation ) : File |
Add any custom operation. |
|
preview ( integer $width, integer $height ) : File |
Get object with preview parameters. |
|
resize ( integer | boolean $width = false, integer | boolean $height = false ) : File |
Get object with resized parameters. |
|
scaleCrop ( integer $width, integer $height, boolean $center = false ) : File |
Get object with cropped parameters. |
|
store ( ) : array |
Store file. |
|
updateInfo ( ) : array |
Update File info |
|