Mass payment with daily maintence

alt=
DannyA
@dannya
10 years ago
584 posts
I'm looking to automate the masspay process. The masspay script would have to be run every day to pay out users over a certain threshold. Is there a way to get the script to be executed during daily maintenance process?
updated by @dannya: 06/24/14 11:55:14PM
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
You need to register a daily maiantenance listener in the module's init
jrCore_register_event_listener('jrCore', 'daily_maintenance', 'myModule_daily_maintenance_listener');
And a function to run every day:
function myModule_daily_maintenance_listener($_data, $_user, $_conf, $_args, $event)
{ if (jrCore_checktype($_conf['myModule_daily_maintenance'], 'number_nz')) { // Do the stuff } return $_data; }



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

Tags