c8ed088beb8bca8642a51924a9975f0c9555ff3b
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / Processing / ImageCropScaleMaskTask.php
1 <?php
2 namespace TYPO3\CMS\Core\Resource\Processing;
3
4 /*
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16
17 use \TYPO3\CMS\Core\Resource;
18
19 /**
20 * A task that takes care of cropping, scaling and/or masking an image.
21 */
22 class ImageCropScaleMaskTask extends AbstractGraphicalTask {
23
24 /**
25 * @var string
26 */
27 protected $type = 'Image';
28
29 /**
30 * @var string
31 */
32 protected $name = 'CropScaleMask';
33
34 /**
35 * @return string
36 */
37 public function getTargetFileName() {
38 return 'csm_' . parent::getTargetFilename();
39 }
40
41 /**
42 * Checks if the given configuration is sensible for this task, i.e. if all required parameters
43 * are given, within the boundaries and don't conflict with each other.
44 *
45 * @param array $configuration
46 * @return bool
47 */
48 protected function isValidConfiguration(array $configuration) {
49 // @todo Implement isValidConfiguration() method.
50 }
51
52 public function fileNeedsProcessing() {
53 // @todo Implement fileNeedsProcessing() method.
54 }
55
56 }