Changes between Version 8 and Version 9 of Drupal HowTo Write Cron Tasks for CiviCRM


Ignore:
Timestamp:
06/02/14 09:13:23 (10 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Drupal HowTo Write Cron Tasks for CiviCRM

    v8 v9  
    6969 }
    7070}}}
     71
     72Things to note are:
     73* The job name and frequency parameters for the constructor are optional and are only used if the helper is being used to check if the job is due.
     74* The variable get for the frequency uses a default value from the constants defined in the !CronHelper class.
     75* The start() method should be called before any processing occurs.
     76* The end() method should *always* be called after processing.  Therefore, in the example all processing is placed in a try block with the end() method called from the matching finally block.