more cleanup batch 16
[civicrm-core.git] / bin / deprecated / action.cronjob.php
index 6c752914878172fe3586a3ce49dd87c233c52f87..bd24f1812fd38ed7626e3ae624168538dbeb4108 100644 (file)
@@ -1,7 +1,7 @@
 <?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
     }
@@ -57,6 +63,9 @@ class CRM_Cron_Action {
     $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);
@@ -65,4 +74,3 @@ class CRM_Cron_Action {
 
 $cron = new CRM_Cron_Action();
 $cron->run();
-