ImageFilter.php
1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Joomla! Content Management System
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Image;
defined('JPATH_PLATFORM') or die;
use Joomla\CMS\Log\Log;
/**
* Class to manipulate an image.
*
* @since 1.7.3
* @deprecated 5.0 Use Joomla\Image\ImageFilter instead.
*/
abstract class ImageFilter extends \Joomla\Image\ImageFilter
{
/**
* Class constructor.
*
* @param resource $handle The image resource on which to apply the filter.
*
* @since 1.7.3
* @deprecated 5.0 Use Joomla\Image\ImageFilter instead.
*/
public function __construct($handle)
{
Log::add('Joomla\CMS\Image\ImageFilter is deprecated, use Joomla\Image\ImageFilter instead.', Log::WARNING, 'deprecated');
// Inject the PSR-3 compatible logger in for forward compatibility
$this->setLogger(Log::createDelegatedLogger());
parent::__construct($handle);
}
}