Core/Action.php
\phMagick\Core\Action
Package: phmagick\core
Returns
Base class for phMagick Action
- Children
- \phMagick\Action\Resize\Base
- \phMagick\Action\Watermark
- Author
- nuno
Properties


\phMagick\Core\array[string]
$gravityValues= 'array(
'northwest''
holds valid values for imagemagick gravity
Default value
array(
'northwest'
Details- Type
- \phMagick\Core\array[string]
Methods


__construct(
String $source, String $destination
)
:
void
created the class and set the source and destination file paths
Parameters
Name | Type | Description |
---|---|---|
$source | String | |
$destination | String |


getShellCommand(
)
:
\phMagick\Core\Command
abstract
to be overwritten from Action classes
this method should return the phMagick shell command to be executed
Type | Description |
---|---|
\phMagick\Core\Command |


isValidGravity(
String $gravity
)
:
Boolean
checks if gravity is an allowed value
Parameters
Returns
Name | Type | Description |
---|---|---|
$gravity | String |
Type | Description |
---|---|
Boolean |


setDestination(
String $file
)
:
void
Sets the file path of the file transformed file (new file)
Parameters
Name | Type | Description |
---|---|---|
$file | String |