[Vtigercrm-developers] vtlib Vtiger_Cron

Prasad prasad at vtiger.com
Fri Jan 4 11:37:00 PST 2013


Use:
Vtiger_Cron::register similar to Vtiger_Events::register

Regards,
Prasad

On Fri, Jan 4, 2013 at 10:25 PM, Alan Lord <alanslists at gmail.com> wrote:

> Hi all,
>
> I think I'd like to register a new cron Task for a custom module I'm
> working on.
>
> I tried using the API in vtlib/Vtiger/Cron.php but the constructor is
> protected so I don't think I can really instantiate a new class in the
> same way as we do a module or a field.
>
> Is there a reason why this has been done?
>
> Of course I can write my cron task details straight into the database,
> but I was just interested why this was protected and not useful in the
> same way as the rest of the vtlib APIs.
>
> Cheers and Happy New Year
>
> Al
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130105/288fbf62/attachment.html 


More information about the vtigercrm-developers mailing list