Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
04b6c30b
Commit
04b6c30b
authored
7 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Code comment
parent
abb34665
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/cron/class/cronjob.class.php
+2
-2
2 additions, 2 deletions
htdocs/cron/class/cronjob.class.php
htdocs/modulebuilder/template/core/modules/modMyModule.class.php
+5
-5
5 additions, 5 deletions
...modulebuilder/template/core/modules/modMyModule.class.php
with
7 additions
and
7 deletions
htdocs/cron/class/cronjob.class.php
+
2
−
2
View file @
04b6c30b
<?php
/* Copyright (C) 2007-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2013
Florian Henry
<florian.henry@open-concept.pro>
* Copyright (C) 2013
Florian Henry
<florian.henry@open-concept.pro>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -61,7 +61,7 @@ class Cronjob extends CommonObject
public
$fk_user_mod
;
public
$nbrun
;
public
$libname
;
public
$test
;
// A test condition to know if job is visible/qualified
/**
* Constructor
...
...
This diff is collapsed.
Click to expand it.
htdocs/modulebuilder/template/core/modules/modMyModule.class.php
+
5
−
5
View file @
04b6c30b
...
...
@@ -186,12 +186,12 @@ class modMyModule extends DolibarrModules
);
// Cronjobs
// Cronjobs
(List of cron jobs entries to add when module is enabled)
$this
->
cronjobs
=
array
(
0
=>
array
(
'label'
=>
'MyJob label'
,
'jobtype'
=>
'method'
,
'class'
=>
'/mymodule/class/mymodulemyjob.class.php'
,
'objectname'
=>
'MyModuleMyJob'
,
'method'
=>
'myMethod'
,
'parameters'
=>
''
,
'comment'
=>
'Comment'
,
'frequency'
=>
2
,
'unitfrequency'
=>
3600
,
'test'
=>
true
)
);
// List of cron jobs entries to add
// Example: $this->cronjobs=array(0=>array('label'=>'My label', 'jobtype'=>'method', 'class'=>'/dir/class/file.class.php', 'objectname'=>'MyClass', 'method'=>'myMethod', 'parameters'=>'', 'comment'=>'Comment', 'frequency'=>2, 'unitfrequency'=>3600, 'test'=>true),
// 1=>array('label'=>'My label', 'jobtype'=>'command', 'command'=>'', 'parameters'=>'', 'comment'=>'Comment', 'frequency'=>1, 'unitfrequency'=>3600*24, 'test'=>true)
0
=>
array
(
'label'
=>
'MyJob label'
,
'jobtype'
=>
'method'
,
'class'
=>
'/mymodule/class/mymodulemyjob.class.php'
,
'objectname'
=>
'MyModuleMyJob'
,
'method'
=>
'myMethod'
,
'parameters'
=>
''
,
'comment'
=>
'Comment'
,
'frequency'
=>
2
,
'unitfrequency'
=>
3600
,
'status'
=>
0
,
'test'
=>
true
)
);
// Example: $this->cronjobs=array(0=>array('label'=>'My label', 'jobtype'=>'method', 'class'=>'/dir/class/file.class.php', 'objectname'=>'MyClass', 'method'=>'myMethod', 'parameters'=>'', 'comment'=>'Comment', 'frequency'=>2, 'unitfrequency'=>3600,
'status'=>0,
'test'=>true),
// 1=>array('label'=>'My label', 'jobtype'=>'command', 'command'=>'', 'parameters'=>'', 'comment'=>'Comment', 'frequency'=>1, 'unitfrequency'=>3600*24,
'status'=>0,
'test'=>true)
// );
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment