Completed
Push — develop ( 0a3bcf...09f9ea )
by Bob Olde
83:06 queued 67:44
created

TaskManagerPlugin   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 72
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 7
c 2
b 0
f 2
lcom 0
cbo 0
dl 0
loc 72
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A getDescription() 0 4 1
A getVersion() 0 4 1
A getDeveloper() 0 4 1
A getDeveloperUrl() 0 4 1
A getDocumentationUrl() 0 4 1
A hasCpSection() 0 4 1
1
<?php
2
3
namespace Craft;
4
5
/**
6
 * Task Manager.
7
 *
8
 * @author    Bob Olde Hampsink <[email protected]>
9
 * @copyright Copyright (c) 2015, Bob Olde Hampsink
10
 * @license   MIT
11
 *
12
 * @link      http://github.com/boboldehampsink
13
 */
14
class TaskManagerPlugin extends BasePlugin
15
{
16
    /**
17
     * Get plugin name.
18
     *
19
     * @return string
20
     */
21
    public function getName()
22
    {
23
        return Craft::t('Task Manager');
24
    }
25
26
    /**
27
     * Get plugin description.
28
     *
29
     * @return string
30
     */
31
    public function getDescription()
32
    {
33
        return Craft::t('Adds a "Task Manager" section to your CP to easily cancel or delete Craft Tasks.');
34
    }
35
36
    /**
37
     * Get plugin version.
38
     *
39
     * @return string
40
     */
41
    public function getVersion()
42
    {
43
        return '0.3.1';
44
    }
45
46
    /**
47
     * Get plugin developer.
48
     *
49
     * @return string
50
     */
51
    public function getDeveloper()
52
    {
53
        return 'Bob Olde Hampsink';
54
    }
55
56
    /**
57
     * Get plugin developer url.
58
     *
59
     * @return string
60
     */
61
    public function getDeveloperUrl()
62
    {
63
        return 'https://github.com/boboldehampsink';
64
    }
65
66
    /**
67
     * Get plugin documentation url.
68
     *
69
     * @return string
70
     */
71
    public function getDocumentationUrl()
72
    {
73
        return 'https://github.com/boboldehampsink/taskmanager';
74
    }
75
76
    /**
77
     * Has Control Panel section.
78
     *
79
     * @return bool
80
     */
81
    public function hasCpSection()
82
    {
83
        return true;
84
    }
85
}
86