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:
moyooo 2010-01-05 14:54:10 +00:00
parent 3735a9a2b7
commit 54e3298027

View File

@ -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;
}