add example for scheduler

This commit is contained in:
Uwe Steinmann 2018-04-04 15:31:57 +02:00
parent 9ae591bae7
commit 9711cee70a
2 changed files with 20 additions and 2 deletions

View File

@ -117,8 +117,21 @@ class SeedDMS_ExtExample_ViewFolder {
* @package SeedDMS
* @subpackage example
*/
class SeedDMS_ExtExample_Task {
public function execute() {
class SeedDMS_ExtExample_Task extends SeedDMS_SchedulerTaskBase {
public function execute($task, $dms) {
return true;
}
public function getDescription() {
return 'Description';
}
public function getAdditionalParams() {
return array(array(
'name'=>'email',
'type'=>'string',
'description'=> '',
));
}
}

View File

@ -1,5 +1,10 @@
<?php
$__lang['de_DE'] = array(
'folder_contents' => 'Dies war mal "Ordner enthält". Wurde von sample Extension geändert.',
'task_example_example_email' => 'Email',
);
$__lang['en_GB'] = array(
'folder_contents' => 'This used to be "Folder contents". Was changed by sample Extension.',
'task_example_example_email' => 'Email',
);
?>