mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
new Cronstak Register call
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@128 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
3735a9a2b7
commit
54e3298027
4
hook.php
4
hook.php
@ -737,9 +737,9 @@ function plugin_example_install() {
|
||||
|
||||
// To be called for each task the plugin manage
|
||||
// 1 task in hook.php
|
||||
CronTask::Register('example', 'sample1', HOUR_TIMESTAMP*2, array('param' => 50));
|
||||
CronTask::Register('PluginExampleExample', 'sample1', HOUR_TIMESTAMP*2, array('param' => 50));
|
||||
// 1 task in class
|
||||
CronTask::Register('example', 'sample2', DAY_TIMESTAMP, array('itemtype' => 'PluginExampleExample'));
|
||||
CronTask::Register('PluginExampleExample', 'sample2', DAY_TIMESTAMP);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user