Weekend Updates: Development Preview 3More
League Bundle $1335 $599 Read More

Blog

Learn about new releases, tips & tricks
  • Written by
  • Hits: 155

onCronRun

Description

This event trigger after the cron task finished process. So with this trigger you can extend the process more after the completion of cron task.

@since 1.1

Examples

{code}

function onCronRun() 
{
$today = new JDate();
$message = 'Your scheduled task has been completed at ' . $today->toFormat('%Y-%m-%d %H:%M:%S');
 
$mailfrom = 'system@jomsocial.com';
$fromname = 'www.jomsocial.com';
$email = 'admin@jomsocial.com';
$subject = 'Scheduled task completed.';
 
JUtility::sendMail($mailfrom, $fromname, $email, $subject, $message);
 
}

{/code}

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW

Ask a Question

Ask a question