@@ -20,8 +20,7 @@ discard block |
||
20 | 20 | * @subpackage dlf |
21 | 21 | * @access public |
22 | 22 | */ |
23 | -class Toolbox extends \Kitodo\Dlf\Common\AbstractPlugin |
|
24 | -{ |
|
23 | +class Toolbox extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
25 | 24 | public $scriptRelPath = 'Classes/Plugin/Toolbox.php'; |
26 | 25 | |
27 | 26 | /** |
@@ -34,8 +33,7 @@ discard block |
||
34 | 33 | * |
35 | 34 | * @return string The content that is displayed on the website |
36 | 35 | */ |
37 | - public function main($content, $conf) |
|
38 | - { |
|
36 | + public function main($content, $conf) { |
|
39 | 37 | $this->init($conf); |
40 | 38 | // Quit without doing anything if required variable is not set. |
41 | 39 | if (empty($this->piVars['id'])) { |
@@ -28,8 +28,7 @@ discard block |
||
28 | 28 | * @subpackage dlf |
29 | 29 | * @access public |
30 | 30 | */ |
31 | -class Metadata extends \Kitodo\Dlf\Common\AbstractPlugin |
|
32 | -{ |
|
31 | +class Metadata extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
33 | 32 | public $scriptRelPath = 'Classes/Plugin/Metadata.php'; |
34 | 33 | |
35 | 34 | /** |
@@ -50,8 +49,7 @@ discard block |
||
50 | 49 | * |
51 | 50 | * @return string The content that is displayed on the website |
52 | 51 | */ |
53 | - public function main($content, $conf) |
|
54 | - { |
|
52 | + public function main($content, $conf) { |
|
55 | 53 | $this->init($conf); |
56 | 54 | // Turn cache on. |
57 | 55 | $this->setCache(true); |
@@ -156,8 +154,7 @@ discard block |
||
156 | 154 | * |
157 | 155 | * @return string The metadata array ready for output |
158 | 156 | */ |
159 | - protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = false) |
|
160 | - { |
|
157 | + protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = false) { |
|
161 | 158 | // Load template file. |
162 | 159 | $this->getTemplate(); |
163 | 160 | $output = ''; |
@@ -25,8 +25,7 @@ discard block |
||
25 | 25 | * @subpackage dlf |
26 | 26 | * @access public |
27 | 27 | */ |
28 | -class Calendar extends \Kitodo\Dlf\Common\AbstractPlugin |
|
29 | -{ |
|
28 | +class Calendar extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
30 | 29 | public $scriptRelPath = 'Classes/Plugin/Calendar.php'; |
31 | 30 | |
32 | 31 | /** |
@@ -47,8 +46,7 @@ discard block |
||
47 | 46 | * |
48 | 47 | * @return string The content that is displayed on the website |
49 | 48 | */ |
50 | - public function main($content, $conf) |
|
51 | - { |
|
49 | + public function main($content, $conf) { |
|
52 | 50 | $this->init($conf); |
53 | 51 | |
54 | 52 | // Set initial document (anchor or year file) if configured. |
@@ -95,8 +93,7 @@ discard block |
||
95 | 93 | * |
96 | 94 | * @return string The content that is displayed on the website |
97 | 95 | */ |
98 | - public function calendar($content, $conf) |
|
99 | - { |
|
96 | + public function calendar($content, $conf) { |
|
100 | 97 | $this->init($conf); |
101 | 98 | // Load current document. |
102 | 99 | $this->loadDocument(); |
@@ -241,8 +238,7 @@ discard block |
||
241 | 238 | * |
242 | 239 | * @return string Content for template subpart |
243 | 240 | */ |
244 | - protected function getCalendarYear($calendarIssuesByMonth, $year, $firstMonth = 1, $lastMonth = 12) |
|
245 | - { |
|
241 | + protected function getCalendarYear($calendarIssuesByMonth, $year, $firstMonth = 1, $lastMonth = 12) { |
|
246 | 242 | // Get subpart templates. |
247 | 243 | $subPartContent = ''; |
248 | 244 | $subParts['month'] = $this->templateService->getSubpart($this->template, '###CALMONTH###'); |
@@ -360,8 +356,7 @@ discard block |
||
360 | 356 | * |
361 | 357 | * @return string The content that is displayed on the website |
362 | 358 | */ |
363 | - public function years($content, $conf) |
|
364 | - { |
|
359 | + public function years($content, $conf) { |
|
365 | 360 | $this->init($conf); |
366 | 361 | // Load current document. |
367 | 362 | $this->loadDocument(); |
@@ -20,8 +20,7 @@ discard block |
||
20 | 20 | * @subpackage dlf |
21 | 21 | * @access public |
22 | 22 | */ |
23 | -class Validator extends \Kitodo\Dlf\Common\AbstractPlugin |
|
24 | -{ |
|
23 | +class Validator extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
25 | 24 | public $scriptRelPath = 'Classes/Plugin/Validator.php'; |
26 | 25 | |
27 | 26 | /** |
@@ -34,8 +33,7 @@ discard block |
||
34 | 33 | * |
35 | 34 | * @return string The content that is displayed on the website |
36 | 35 | */ |
37 | - public function main($content, $conf) |
|
38 | - { |
|
36 | + public function main($content, $conf) { |
|
39 | 37 | $this->init($conf); |
40 | 38 | // Disable caching for this plugin. |
41 | 39 | $this->setCache(false); |
@@ -25,8 +25,7 @@ discard block |
||
25 | 25 | * @subpackage dlf |
26 | 26 | * @access public |
27 | 27 | */ |
28 | -class Basket extends \Kitodo\Dlf\Common\AbstractPlugin |
|
29 | -{ |
|
28 | +class Basket extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
30 | 29 | public $scriptRelPath = 'Classes/Plugin/Basket.php'; |
31 | 30 | |
32 | 31 | /** |
@@ -39,8 +38,7 @@ discard block |
||
39 | 38 | * |
40 | 39 | * @return string The content that is displayed on the website |
41 | 40 | */ |
42 | - public function main($content, $conf) |
|
43 | - { |
|
41 | + public function main($content, $conf) { |
|
44 | 42 | $this->init($conf); |
45 | 43 | // Don't cache the output. |
46 | 44 | $this->setCache(false); |
@@ -233,8 +231,7 @@ discard block |
||
233 | 231 | * |
234 | 232 | * @return string One basket entry |
235 | 233 | */ |
236 | - protected function getEntry($data, $template) |
|
237 | - { |
|
234 | + protected function getEntry($data, $template) { |
|
238 | 235 | if (is_object($data)) { |
239 | 236 | $data = get_object_vars($data); |
240 | 237 | } |
@@ -282,8 +279,7 @@ discard block |
||
282 | 279 | * |
283 | 280 | * @return array Basket data and Javascript output |
284 | 281 | */ |
285 | - protected function addToBasket($_piVars, $basketData) |
|
286 | - { |
|
282 | + protected function addToBasket($_piVars, $basketData) { |
|
287 | 283 | $output = ''; |
288 | 284 | if (!$_piVars['startpage']) { |
289 | 285 | $page = 0; |
@@ -375,8 +371,7 @@ discard block |
||
375 | 371 | * |
376 | 372 | * @return array basket data |
377 | 373 | */ |
378 | - protected function removeFromBasket($_piVars, $basketData) |
|
379 | - { |
|
374 | + protected function removeFromBasket($_piVars, $basketData) { |
|
380 | 375 | if (!empty($basketData['doc_ids'])) { |
381 | 376 | $items = $basketData['doc_ids']; |
382 | 377 | $items = get_object_vars($items); |
@@ -415,8 +410,7 @@ discard block |
||
415 | 410 | * |
416 | 411 | * @return array basket data |
417 | 412 | */ |
418 | - protected function openFromBasket($_piVars, $basketData) |
|
419 | - { |
|
413 | + protected function openFromBasket($_piVars, $basketData) { |
|
420 | 414 | $pdfUrl = $this->conf['pdfgenerate']; |
421 | 415 | foreach ($this->piVars['selected'] as $docValue) { |
422 | 416 | if ($docValue['id']) { |
@@ -438,8 +432,7 @@ discard block |
||
438 | 432 | * |
439 | 433 | * @return mixed download url or false |
440 | 434 | */ |
441 | - protected function getDocumentData($id, $data) |
|
442 | - { |
|
435 | + protected function getDocumentData($id, $data) { |
|
443 | 436 | // get document instance to load further information |
444 | 437 | $document = Document::getInstance($id, 0); |
445 | 438 | if ($document) { |
@@ -499,8 +492,7 @@ discard block |
||
499 | 492 | * |
500 | 493 | * @return void |
501 | 494 | */ |
502 | - protected function sendMail() |
|
503 | - { |
|
495 | + protected function sendMail() { |
|
504 | 496 | // send mail |
505 | 497 | $mailId = $this->piVars['mail_action']; |
506 | 498 | |
@@ -590,8 +582,7 @@ discard block |
||
590 | 582 | * |
591 | 583 | * @return void |
592 | 584 | */ |
593 | - protected function printDocument() |
|
594 | - { |
|
585 | + protected function printDocument() { |
|
595 | 586 | $pdfUrl = $this->conf['pdfprint']; |
596 | 587 | $numberOfPages = 0; |
597 | 588 | foreach ($this->piVars['selected'] as $docId => $docValue) { |
@@ -26,8 +26,7 @@ discard block |
||
26 | 26 | * @subpackage dlf |
27 | 27 | * @access public |
28 | 28 | */ |
29 | -class AnnotationTool extends AbstractPlugin |
|
30 | -{ |
|
29 | +class AnnotationTool extends AbstractPlugin { |
|
31 | 30 | /** |
32 | 31 | * @access public |
33 | 32 | * @var string |
@@ -44,8 +43,7 @@ discard block |
||
44 | 43 | * |
45 | 44 | * @return string The content that is displayed on the website |
46 | 45 | */ |
47 | - public function main($content, $conf) |
|
48 | - { |
|
46 | + public function main($content, $conf) { |
|
49 | 47 | $this->init($conf); |
50 | 48 | // Merge configuration with conf array of toolbox. |
51 | 49 | if (!empty($this->cObj->data['conf'])) { |
@@ -22,8 +22,7 @@ discard block |
||
22 | 22 | * @subpackage dlf |
23 | 23 | * @access public |
24 | 24 | */ |
25 | -class ImageManipulationTool extends \Kitodo\Dlf\Common\AbstractPlugin |
|
26 | -{ |
|
25 | +class ImageManipulationTool extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
27 | 26 | public $scriptRelPath = 'Classes/Plugin/Tools/ImageManipulationTool.php'; |
28 | 27 | |
29 | 28 | /** |
@@ -36,8 +35,7 @@ discard block |
||
36 | 35 | * |
37 | 36 | * @return string The content that is displayed on the website |
38 | 37 | */ |
39 | - public function main($content, $conf) |
|
40 | - { |
|
38 | + public function main($content, $conf) { |
|
41 | 39 | $this->init($conf); |
42 | 40 | // Merge configuration with conf array of toolbox. |
43 | 41 | if (!empty($this->cObj->data['conf'])) { |
@@ -22,8 +22,7 @@ discard block |
||
22 | 22 | * @subpackage dlf |
23 | 23 | * @access public |
24 | 24 | */ |
25 | -class ImageDownloadTool extends \Kitodo\Dlf\Common\AbstractPlugin |
|
26 | -{ |
|
25 | +class ImageDownloadTool extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
27 | 26 | public $scriptRelPath = 'Classes/Plugin/Tools/ImageDownloadTool.php'; |
28 | 27 | |
29 | 28 | /** |
@@ -36,8 +35,7 @@ discard block |
||
36 | 35 | * |
37 | 36 | * @return string The content that is displayed on the website |
38 | 37 | */ |
39 | - public function main($content, $conf) |
|
40 | - { |
|
38 | + public function main($content, $conf) { |
|
41 | 39 | $this->init($conf); |
42 | 40 | // Merge configuration with conf array of toolbox. |
43 | 41 | if (!empty($this->cObj->data['conf'])) { |
@@ -90,8 +88,7 @@ discard block |
||
90 | 88 | * |
91 | 89 | * @return string Link to image file with given label |
92 | 90 | */ |
93 | - protected function getImage($page, $label) |
|
94 | - { |
|
91 | + protected function getImage($page, $label) { |
|
95 | 92 | $image = []; |
96 | 93 | // Get @USE value of METS fileGrp. |
97 | 94 | $fileGrps = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['fileGrpsImageDownload']); |
@@ -23,8 +23,7 @@ discard block |
||
23 | 23 | * @subpackage dlf |
24 | 24 | * @access public |
25 | 25 | */ |
26 | -class FulltextTool extends \Kitodo\Dlf\Common\AbstractPlugin |
|
27 | -{ |
|
26 | +class FulltextTool extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
28 | 27 | public $scriptRelPath = 'Classes/Plugin/Tools/FulltextTool.php'; |
29 | 28 | |
30 | 29 | /** |
@@ -37,8 +36,7 @@ discard block |
||
37 | 36 | * |
38 | 37 | * @return string The content that is displayed on the website |
39 | 38 | */ |
40 | - public function main($content, $conf) |
|
41 | - { |
|
39 | + public function main($content, $conf) { |
|
42 | 40 | $this->init($conf); |
43 | 41 | // Merge configuration with conf array of toolbox. |
44 | 42 | if (!empty($this->cObj->data['conf'])) { |