<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
/*
*/
+
+/**
+ * Class CRM_Cron_Action
+ */
class CRM_Cron_Action {
+ /**
+ */
function __construct() {
// you can run this program either from an apache command, or from the cli
if (php_sapi_name() == "cli") {
- require_once ("cli.php");
+ require_once "cli.php";
$cli = new civicrm_cli();
//if it doesn't die, it's authenticated
}
$config = CRM_Core_Config::singleton();
}
+ /**
+ * @param null $now
+ */
public function run($now = NULL) {
require_once 'CRM/Core/BAO/ActionSchedule.php';
CRM_Core_BAO_ActionSchedule::processQueue($now);
$cron = new CRM_Cron_Action();
$cron->run();
-