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