-
Notifications
You must be signed in to change notification settings - Fork 6
/
WebFeedBlockPlugin.php
74 lines (65 loc) · 1.55 KB
/
WebFeedBlockPlugin.php
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* @file WebFeedBlockPlugin.php
*
* Copyright (c) 2014-2023 Simon Fraser University
* Copyright (c) 2003-2023 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class WebFeedBlockPlugin
*
* @brief Class for block component of web feed plugin
*/
namespace APP\plugins\generic\webFeed;
class WebFeedBlockPlugin extends \PKP\plugins\BlockPlugin
{
/**
* Constructor
*/
public function __construct(protected WebFeedPlugin $parentPlugin)
{
parent::__construct();
}
/**
* @copydoc Plugin::getName()
*/
public function getName(): string
{
return substr(static::class, strlen(__NAMESPACE__) + 1);
}
/**
* @copydoc Plugin::getHideManagement()
*/
public function getHideManagement(): bool
{
return true;
}
/**
* @copydoc Plugin::getDisplayName()
*/
public function getDisplayName(): string
{
return __('plugins.generic.webfeed.displayName');
}
/**
* @copydoc Plugin::getDescription()
*/
public function getDescription(): string
{
return __('plugins.generic.webfeed.description');
}
/**
* @copydoc Plugin::getPluginPath()
*/
public function getPluginPath(): string
{
return $this->parentPlugin->getPluginPath();
}
/**
* @copydoc Plugin::getTemplatePath()
*/
public function getTemplatePath($inCore = false): string
{
return "{$this->parentPlugin->getTemplatePath($inCore)}/templates";
}
}