Merge remote-tracking branch 'origin/4.6' into 4.6-master-2015-08-03-16-00-35
[civicrm-core.git] / bin / deprecated / UpdateMembershipReminderDate.php
index e5d93ea0df170a2dd8c6441841485df7b7abec29..ee818b6aeda796ba9255f3a5c31c9235b9c795f0 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 
 /*
  */
 class CRM_UpdateMembershipReminderDate {
   /**
-   *
    */
-  function __construct() {
+  public 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
     }
@@ -59,7 +58,7 @@ class CRM_UpdateMembershipReminderDate {
     }
   }
 
-  function initialize() {
+  public function initialize() {
     require_once '../civicrm.config.php';
     require_once 'CRM/Core/Config.php';
 
@@ -107,6 +106,7 @@ INNER JOIN  civicrm_membership_type type ON ( type.id = membership.membership_ty
 
     CRM_Core_DAO::executeQuery($query);
   }
+
 }
 
 $reminderDate = new CRM_UpdateMembershipReminderDate();
@@ -114,4 +114,3 @@ $reminderDate = new CRM_UpdateMembershipReminderDate();
 echo "\n Updating... ";
 $reminderDate->updateMembershipReminderDate();
 echo "\n\n Membership(s) reminder date updated. (Done) \n";
-