MetaFox

CopyImage
in package

Table of Contents

Properties

$imagePath  : string
$isDeleteOrigin  : bool
$path  : string
$serverId  : string
$sizes  : array<string|int, int>
$squareSizes  : array<string|int, int>

Methods

__construct()  : mixed
copy()  : string
getNewImagePath()  : string
processCopy()  : void

Properties

$sizes

public array<string|int, int> $sizes = \MetaFox\Core\Support\FileSystem\Image\Plugins\ResizeImage::SIZE

$squareSizes

public array<string|int, int> $squareSizes = []

Methods

__construct()

public __construct(string $imagePath[, string $serverId = 'public' ][, string $path = 'photo' ][, bool $isDeleteOrigin = false ][, array<string|int, int> $sizes = [] ][, array<string|int, int> $squareSizes = [] ]) : mixed
Parameters
$imagePath : string
$serverId : string = 'public'
$path : string = 'photo'
$isDeleteOrigin : bool = false
$sizes : array<string|int, int> = []
$squareSizes : array<string|int, int> = []
Tags
SuppressWarnings

(PHPMD.BooleanArgumentFlag)

copy()

public copy() : string
Return values
string

getNewImagePath()

private getNewImagePath(string $path) : string
Parameters
$path : string
Return values
string

processCopy()

private processCopy(array<string|int, int> $sizes, string $imagePathConvert, string $newImagePathConvert, bool $isSquare) : void
Parameters
$sizes : array<string|int, int>
$imagePathConvert : string
$newImagePathConvert : string
$isSquare : bool

        
On this page

Search results