Add createFromClone function in skeleton

This commit is contained in:
Laurent Destailleur 2008-11-20 21:26:53 +00:00
parent 2a6ad76913
commit da779e3e95
3 changed files with 8 additions and 8 deletions

View File

@ -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:
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:

View File

@ -17,11 +17,11 @@
*/ */
/** /**
\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
$sapi_type = php_sapi_name(); $sapi_type = php_sapi_name();

View File

@ -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;