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
b9ec6ad6
Commit
b9ec6ad6
authored
11 years ago
by
Marcos García de La Fuente
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused function opensurveysondage::createFromClone
parent
13d4ea4c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/opensurvey/class/opensurveysondage.class.php
+0
-57
0 additions, 57 deletions
htdocs/opensurvey/class/opensurveysondage.class.php
with
0 additions
and
57 deletions
htdocs/opensurvey/class/opensurveysondage.class.php
+
0
−
57
View file @
b9ec6ad6
...
...
@@ -85,7 +85,6 @@ class Opensurveysondage extends CommonObject
*/
function
create
(
$user
,
$notrigger
=
0
)
{
global
$conf
,
$langs
;
$error
=
0
;
// Clean parameters
...
...
@@ -182,8 +181,6 @@ class Opensurveysondage extends CommonObject
*/
function
fetch
(
$id
,
$numsurvey
=
''
)
{
global
$langs
;
$sql
=
"SELECT"
;
$sql
.
=
" t.id_sondage,"
;
$sql
.
=
" t.commentaires,"
;
...
...
@@ -431,60 +428,6 @@ class Opensurveysondage extends CommonObject
return
$this
->
lines
;
}
/**
* Load an object from its id and create a new one in database
*
* @param int $fromid Id of object to clone
* @return int New id of clone
*/
function
createFromClone
(
$fromid
)
{
global
$user
,
$langs
;
$error
=
0
;
$object
=
new
Opensurveysondage
(
$this
->
db
);
$this
->
db
->
begin
();
// Load source object
$object
->
fetch
(
$fromid
);
$object
->
id
=
0
;
$object
->
statut
=
0
;
// Clear fields
// ...
// Create clone
$result
=
$object
->
create
(
$user
);
// Other options
if
(
$result
<
0
)
{
$this
->
error
=
$object
->
error
;
$error
++
;
}
if
(
!
$error
)
{
}
// End
if
(
!
$error
)
{
$this
->
db
->
commit
();
return
$object
->
id
;
}
else
{
$this
->
db
->
rollback
();
return
-
1
;
}
}
/**
* Initialise object with example values
* Id must be 0 if object instance is a specimen
...
...
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