CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Adding verbose output to UpdateMembershipRecord.php
Pages: [1]

Author Topic: Adding verbose output to UpdateMembershipRecord.php  (Read 700 times)

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Adding verbose output to UpdateMembershipRecord.php
September 24, 2011, 11:49:18 am
Since both payment gateways (PayJunction and PayPal) are not completing transactions at this point, we must manually update memberships in order to keep members from expiring.

I just brefly looked through the code of UpdateMembershipRecord.php and it appears as though I should be able to beef up the verbosidy of its output, actions it is performing, such as expiring a membership. Then redirect that output to a log file and email it daily to an admin.

Correct?

Or in my quick glance though the code did I not notice some sort of challenge to my thought?

For example, I see:

Code: [Select]
echo ".";
which generates the ........ in the current output of the command. So comment that LOC, and add some of my own echo statements, is what I was thinking.
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Adding verbose output to UpdateMembershipRecord.php

This forum was archived on 2017-11-26.