Use: <div>Vtiger_Cron::register similar to Vtiger_Events::register</div><div><br></div><div>Regards,</div><div>Prasad<br><div><br><div class="gmail_quote">On Fri, Jan 4, 2013 at 10:25 PM, Alan Lord <span dir="ltr">&lt;<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I think I&#39;d like to register a new cron Task for a custom module I&#39;m<br>
working on.<br>
<br>
I tried using the API in vtlib/Vtiger/Cron.php but the constructor is<br>
protected so I don&#39;t think I can really instantiate a new class in the<br>
same way as we do a module or a field.<br>
<br>
Is there a reason why this has been done?<br>
<br>
Of course I can write my cron task details straight into the database,<br>
but I was just interested why this was protected and not useful in the<br>
same way as the rest of the vtlib APIs.<br>
<br>
Cheers and Happy New Year<br>
<br>
Al<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div></div>