projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change select option to use more standard pseudoconstant callback
[civicrm-core.git]
/
CRM
/
Core
/
ScheduledJob.php
diff --git
a/CRM/Core/ScheduledJob.php
b/CRM/Core/ScheduledJob.php
index ee434272031c6bfef0849c470421fb1240eb2426..80f8ecc9999b62266b8698af1e29b08ff449b513 100644
(file)
--- a/
CRM/Core/ScheduledJob.php
+++ b/
CRM/Core/ScheduledJob.php
@@
-1,9
+1,9
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.
4
|
+ | CiviCRM version 4.
5
|
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
3
|
+ | Copyright CiviCRM LLC (c) 2004-201
4
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-30,7
+30,7
@@
* by every scheduled job (cron task) in CiviCRM.
*
* @package CRM
* by every scheduled job (cron task) in CiviCRM.
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
3
+ * @copyright CiviCRM LLC (c) 2004-201
4
* $Id$
*
*/
* $Id$
*
*/
@@
-52,6
+52,9
@@
class CRM_Core_ScheduledJob {
*
*/
*
*/
+ /**
+ * @param $params
+ */
public function __construct($params) {
foreach ($params as $name => $param) {
$this->$name = $param;
public function __construct($params) {
foreach ($params as $name => $param) {
$this->$name = $param;
@@
-81,6
+84,9
@@
class CRM_Core_ScheduledJob {
}
}
}
}
+ /**
+ * @param null $date
+ */
public function saveLastRun($date = NULL) {
$dao = new CRM_Core_DAO_Job();
$dao->id = $this->id;
public function saveLastRun($date = NULL) {
$dao = new CRM_Core_DAO_Job();
$dao->id = $this->id;
@@
-88,6
+94,9
@@
class CRM_Core_ScheduledJob {
$dao->save();
}
$dao->save();
}
+ /**
+ * @return bool
+ */
public function needsRunning() {
// run if it was never run
if (empty($this->last_run)) {
public function needsRunning() {
// run if it was never run
if (empty($this->last_run)) {