Example #1
0
 public function activity_count()
 {
     echo qw_get_total_activity(qa_get_logged_in_userid());
     // adding the feature of scheduler check here to make sure the sending email called on time
     $time_out = qa_opt('qw_process_emails_from_db_time_out');
     if (QW_SEND_EMAIL_DEBUG_MODE) {
         qw_process_emails_from_db();
     } elseif (!$time_out) {
         // if the scheduler is not set set it for 15 mins
         qw_scheduler_set('qw_process_emails_from_db', 6 * 60 * 60);
     }
     qw_check_scheduler('qw_process_emails_from_db');
     die;
 }
Example #2
0
function call_this_method()
{
    // this way we can set the scheduler
    // qw_scheduler_set('call_me', 20);
    // execute the scheduler
    qw_check_scheduler('call_me');
}