Cheetah
plugins
intervention-image
Intervention
Image
Imagick
Commands
DestroyCommand.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Intervention\Image\Imagick\Commands
;
4
5
class
DestroyCommand
extends
\Intervention\Image\Commands\AbstractCommand
6
{
13
public
function
execute
($image)
14
{
15
// destroy image core
16
$image->getCore()->clear();
17
18
// destroy backups
19
foreach
($image->getBackups()
as
$backup) {
20
$backup->clear();
21
}
22
23
return
true
;
24
}
25
}
Intervention\Image\Imagick\Commands\DestroyCommand\execute
execute($image)
Definition:
DestroyCommand.php:13
php
Intervention\Image\Imagick\Commands\DestroyCommand
Definition:
DestroyCommand.php:6
Intervention\Image\Imagick\Commands
Definition:
BackupCommand.php:3
Intervention\Image\Commands\AbstractCommand
Definition:
AbstractCommand.php:6
as
as
Definition:
Filter.ExtractStyleBlocks.Escaping.txt:10
Generated by
1.8.20