Jump to content

Recommended Posts

Posted

Is there any module function that will be called when adding a service to a customer?
addService function will be called when we create a service, right?
Any way to call some function when we add an existing  service to a customer?

Posted

http://docs.blesta.com/display/dev/Plugin+Cron+Tasks

 

I suppose, if you:

- your custom cron task is aded to the blesta cron system

 

- your module create a key at service_fields table, like "my-custom-task-setup", being empty value at the start,

 

- your cron function check any active service having above value empty and will run all custom task and update above value to "1" when it's done.

 

 

note the "1" value could also be a timestamps or anything you want

Posted

Is there any module function that will be called when adding a service to a customer?

addService function will be called when we create a service, right?

Any way to call some function when we add an existing  service to a customer?

 

If the service is added with "Use Module" checked, the module's ::addService method is called. If the service already exists for the client, and you are updating it, then ::editService is called.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...