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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
da779e3e
Commit
da779e3e
authored
Nov 20, 2008
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Add createFromClone function in skeleton
parent
2a6ad769
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+2
-1
2 additions, 1 deletion
ChangeLog
dev/skeletons/build_class_from_table.php
+5
-5
5 additions, 5 deletions
dev/skeletons/build_class_from_table.php
dev/skeletons/skeleton_class.class.php
+1
-2
1 addition, 2 deletions
dev/skeletons/skeleton_class.class.php
with
8 additions
and
8 deletions
ChangeLog
+
2
−
1
View file @
da779e3e
...
@@ -34,7 +34,7 @@ For translators:
...
@@ -34,7 +34,7 @@ For translators:
in UTF8.
in UTF8.
For developers:
For developers:
- Update skeletons.
- Update skeletons
(fixes and add function createFromClass)
.
- Add an experimental Cash Desk module.
- Add an experimental Cash Desk module.
- Added new triggers events in agenda module.
- Added new triggers events in agenda module.
- All submodules are moved in the includes directory.
- All submodules are moved in the includes directory.
...
@@ -43,6 +43,7 @@ For developers:
...
@@ -43,6 +43,7 @@ For developers:
and add a different value in an HTML id for each entry. This allows
and add a different value in an HTML id for each entry. This allows
to build skins that use different style for each menu entry.
to build skins that use different style for each menu entry.
***** Changelog for 2.4 compared to 2.2 *****
***** Changelog for 2.4 compared to 2.2 *****
For users:
For users:
...
...
This diff is collapsed.
Click to expand it.
dev/skeletons/build_class_from_table.php
+
5
−
5
View file @
da779e3e
...
@@ -17,10 +17,10 @@
...
@@ -17,10 +17,10 @@
*/
*/
/**
/**
\file dev/skeletons/build_class_from_table.php
*
\file dev/skeletons/build_class_from_table.php
\ingroup core
*
\ingroup core
\brief Create a complete class file from a table in database
*
\brief Create a complete class file from a table in database
\version $Id$
*
\version $Id$
*/
*/
// Test if batch mode
// Test if batch mode
...
...
This diff is collapsed.
Click to expand it.
dev/skeletons/skeleton_class.class.php
+
1
−
2
View file @
da779e3e
...
@@ -303,10 +303,9 @@ class Skeleton_class // extends CommonObject
...
@@ -303,10 +303,9 @@ class Skeleton_class // extends CommonObject
/**
/**
* \brief Load an object from its id and create a new one in database
* \brief Load an object from its id and create a new one in database
* \param fromid Id of object to clone
* \param fromid Id of object to clone
* \param invertdetail Reverse sign of amounts for lines
* \return int New id of clone
* \return int New id of clone
*/
*/
function
createFromClone
(
$fromid
,
$invertdetail
=
0
)
function
createFromClone
(
$fromid
)
{
{
global
$user
,
$langs
;
global
$user
,
$langs
;
...
...
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