This commit is contained in:
Laurent Destailleur 2011-04-13 10:48:57 +00:00
parent d434dcc85b
commit f0dcd8ad51

View File

@ -1,5 +1,5 @@
<?php
/* Copyright (C) 2007-2008 Laurent Destailleur <eldy@users.sourceforge.net>
/* Copyright (C) 2007-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) ---Put here your own copyright and developer email---
*
* This program is free software; you can redistribute it and/or modify
@ -52,8 +52,8 @@ class Skeleton_class // extends CommonObject
/**
* \brief Constructor
* \param DB Database handler
* Constructor
* @param DB Database handler
*/
function Skeleton_class($DB)
{
@ -63,10 +63,10 @@ class Skeleton_class // extends CommonObject
/**
* \brief Create in database
* \param user User that create
* \param notrigger 0=launch triggers after, 1=disable triggers
* \return int <0 if KO, Id of created object if OK
* Create object into database
* @param user User that create
* @param notrigger 0=launch triggers after, 1=disable triggers
* @return int <0 if KO, Id of created object if OK
*/
function create($user, $notrigger=0)
{
@ -136,9 +136,9 @@ class Skeleton_class // extends CommonObject
/**
* \brief Load object in memory from database
* \param id id object
* \return int <0 if KO, >0 if OK
* Load object in memory from database
* @param id id object
* @return int <0 if KO, >0 if OK
*/
function fetch($id)
{
@ -178,10 +178,10 @@ class Skeleton_class // extends CommonObject
/**
* \brief Update database
* \param user User that modify
* \param notrigger 0=launch triggers after, 1=disable triggers
* \return int <0 if KO, >0 if OK
* Update object into database
* @param user User that modify
* @param notrigger 0=launch triggers after, 1=disable triggers
* @return int <0 if KO, >0 if OK
*/
function update($user=0, $notrigger=0)
{
@ -245,10 +245,10 @@ class Skeleton_class // extends CommonObject
/**
* \brief Delete object in database
* \param user User that delete
* \param notrigger 0=launch triggers after, 1=disable triggers
* \return int <0 if KO, >0 if OK
* Delete object in database
* @param user User that delete
* @param notrigger 0=launch triggers after, 1=disable triggers
* @return int <0 if KO, >0 if OK
*/
function delete($user, $notrigger=0)
{
@ -301,9 +301,9 @@ class Skeleton_class // extends CommonObject
/**
* \brief Load an object from its id and create a new one in database
* \param fromid Id of object to clone
* \return int New id of clone
* Load an object from its id and create a new one in database
* @param fromid Id of object to clone
* @return int New id of clone
*/
function createFromClone($fromid)
{
@ -355,8 +355,8 @@ class Skeleton_class // extends CommonObject
/**
* \brief Initialise object with example values
* \remarks id must be 0 if object instance is a specimen.
* Initialisz object with example values
* Id must be 0 if object instance is a specimen.
*/
function initAsSpecimen()
{