Merge pull request #6576 from eileenmcnaughton/CRM-17072
[civicrm-core.git] / bin / deprecated / UpdateMembershipRecord.php
index ec6cf569ba1ce85ec29b6c840d900a765c59cd07..6f276a44acb865048f0bb001de52e64872eec034 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                               |
+ | 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_UpdateMembershipRecord {
   /**
-   *
    */
-  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
     }
@@ -67,7 +66,7 @@ class CRM_UpdateMembershipRecord {
     }
   }
 
-  function initialize() {
+  public function initialize() {
     require_once '../civicrm.config.php';
     require_once 'CRM/Core/Config.php';
 
@@ -78,6 +77,7 @@ class CRM_UpdateMembershipRecord {
     require_once 'CRM/Member/BAO/Membership.php';
     CRM_Member_BAO_Membership::updateAllMembershipStatus();
   }
+
 }
 
 $obj = new CRM_UpdateMembershipRecord();
@@ -85,4 +85,3 @@ $obj = new CRM_UpdateMembershipRecord();
 echo "\n Updating ";
 $obj->updateMembershipStatus();
 echo "\n\n Membership records updated. (Done) \n";
-