mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
add example for scheduler
This commit is contained in:
parent
9ae591bae7
commit
9711cee70a
|
@ -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'=> '',
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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',
|
||||
);
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user