blob: 3a6461bb3861d4d01215f3743972eee513b409f4 (
plain)
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
|
<?php
/**
* Piwik - Open source web analytics
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
* @version $Id$
*
* @category Piwik
* @package Piwik
*/
/**
* Piwik_ScheduledTask is used by the task scheduler and by plugins to configure runnable tasks.
*
* @package Piwik
* @subpackage Piwik_ScheduledTask
*/
class Piwik_ScheduledTask
{
/**
* Class name where the specified method is located
* @var string
*/
var $className;
#
/**
* Class method to run when task is scheduled
* @var string
*/
var $methodName;
/**
* The scheduled time policy
* @var Piwik_ScheduledTime
*/
var $scheduledTime;
function __construct( $_className, $_methodName, $_scheduledTime)
{
$this->className = $_className;
$this->methodName = $_methodName;
$this->scheduledTime = $_scheduledTime;
}
/*
* Returns class name
* @return string
*/
public function getClassName()
{
return $this->className;
}
/*
* Returns method name
* @return string
*/
public function getMethodName()
{
return $this->methodName;
}
/*
* Returns scheduled time
* @return Piwik_ScheduledTime
*/
public function getScheduledTime()
{
return $this->scheduledTime;
}
}
|