Ejemplo n.º 1
0
 /**
  * Get a batching lock
  * 
  * the lock is needed so that only one relevant process can access the 
  * SEPA data structures at a time
  * 
  * @return CRM_Utils_SepaSafeLock object, or NULL if acquisition timed out
  */
 static function getLock()
 {
     $timeout = CRM_Sepa_Logic_Settings::getSetting('batching.UPDATE.lock.timeout');
     return CRM_Utils_SepaSafeLock::acquireLock('org.project60.sepa.batching.update', $timeout);
 }