+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| 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
}
}
}
- function initialize() {
+ public function initialize() {
require_once '../civicrm.config.php';
require_once 'CRM/Core/Config.php';
CRM_Core_DAO::executeQuery($query);
}
+
}
$reminderDate = new CRM_UpdateMembershipReminderDate();
echo "\n Updating... ";
$reminderDate->updateMembershipReminderDate();
echo "\n\n Membership(s) reminder date updated. (Done) \n";
-