forked from mdcpepper/fetch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FetchPlugin.php
81 lines (75 loc) · 1.35 KB
/
FetchPlugin.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
75
76
77
78
79
80
81
<?php
namespace Craft;
/**
* Fetch plugin class
*
* @author Mike Pepper, Enovate Design Ltd <[email protected]>
* @copyright Copyright (c) 2015, Enovate Design, Ltd.
* @license MIT
* @package craft.plugins.fetch
* @since 0.1.0
*/
class FetchPlugin extends BasePlugin implements IPlugin
{
/**
* Get the plugin name
*
* @since 0.1.0
* @return string The plugin name
*/
public function getName()
{
return Craft::t('Fetch');
}
/**
* Get the plugin version
*
* @since 0.1.0
* @return string The current version of the plugin
*/
public function getVersion()
{
return '1.2.0';
}
/**
* Get the plugin developer name
*
* @since 0.1.0
* @return string The developer name
*/
public function getDeveloper()
{
return 'Enovate Design';
}
/**
* Get the plugin developer url
*
* @since 0.1.0
* @return string The developer URL
*/
public function getDeveloperUrl()
{
return 'http://www.enovate.co.uk';
}
/**
* Returns true if the plugin should have a CP section link, false if not.
*
* @since 0.1.0
* @return boolean
*/
public function hasCpSection()
{
return false;
}
/**
* Plugin initialization
*
* Loads the Fetch_FetchedElementsBehavior
*
* @since 1.1.0
*/
public function init()
{
Craft::import('plugins.fetch.behaviors.Fetch_FetchedElementsBehavior');
}
}