Qual: More POO.
Qual: Doxygen
This commit is contained in:
parent
9b69ef27ba
commit
be6286c4b8
@ -38,12 +38,9 @@ require_once(DOL_DOCUMENT_ROOT."/lib/date.lib.php");
|
||||
*/
|
||||
class Adherent extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $errors=array();
|
||||
var $element='member';
|
||||
var $table_element='adherent';
|
||||
var $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
public $element='member';
|
||||
public $table_element='adherent';
|
||||
protected $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
var $id;
|
||||
var $ref;
|
||||
@ -1938,7 +1935,11 @@ class Adherent extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Initialise le membre avec valeurs fictives aleatoire
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -33,10 +33,7 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class AdherentType extends CommonObject
|
||||
{
|
||||
var $error;
|
||||
var $errors=array();
|
||||
var $db;
|
||||
var $table_element = 'adherent_type';
|
||||
public $table_element = 'adherent_type';
|
||||
|
||||
var $id;
|
||||
var $libelle;
|
||||
|
||||
@ -33,12 +33,11 @@ include_once DOL_DOCUMENT_ROOT . "/adherents/class/cotisation.class.php";
|
||||
*/
|
||||
class AdherentStats extends Stats
|
||||
{
|
||||
var $db;
|
||||
public $table_element;
|
||||
|
||||
var $socid;
|
||||
var $userid;
|
||||
|
||||
var $table_element;
|
||||
var $from;
|
||||
var $field;
|
||||
var $where;
|
||||
|
||||
@ -31,13 +31,10 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class Cotisation extends CommonObject
|
||||
{
|
||||
var $id;
|
||||
var $db;
|
||||
var $error;
|
||||
var $errors;
|
||||
var $element='subscription';
|
||||
var $table_element='cotisation';
|
||||
public $element='subscription';
|
||||
public $table_element='cotisation';
|
||||
|
||||
var $id;
|
||||
var $datec;
|
||||
var $datem;
|
||||
var $dateh; // Subscription start date
|
||||
|
||||
@ -36,11 +36,8 @@ require_once(DOL_DOCUMENT_ROOT."/fourn/class/fournisseur.class.php");
|
||||
*/
|
||||
class Categorie
|
||||
{
|
||||
var $error;
|
||||
var $db;
|
||||
|
||||
var $element='category';
|
||||
var $table_element='category';
|
||||
public $element='category';
|
||||
public $table_element='category';
|
||||
|
||||
var $id;
|
||||
var $id_mere;
|
||||
@ -550,7 +547,7 @@ class Categorie
|
||||
|
||||
/**
|
||||
* Retourne les filles de la categorie
|
||||
*
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function get_filles()
|
||||
@ -936,7 +933,7 @@ class Categorie
|
||||
/**
|
||||
* Retourne les chemin de la categorie, avec les noms des categories
|
||||
* separes par $sep (" >> " par defaut)
|
||||
*
|
||||
*
|
||||
* @param string $sep Separator
|
||||
* @param string $url Url
|
||||
* @return void
|
||||
@ -1053,7 +1050,7 @@ class Categorie
|
||||
/**
|
||||
* Retourne dans un tableau tous les chemins possibles pour arriver a la categorie
|
||||
* en partant des categories principales, representes par des tableaux de categories
|
||||
*
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function get_all_ways ()
|
||||
@ -1344,9 +1341,10 @@ class Categorie
|
||||
|
||||
|
||||
/**
|
||||
* Initialise an example of instance with random values
|
||||
* Used to build previews or test instances
|
||||
*
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
|
||||
@ -32,12 +32,9 @@ require_once(DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php');
|
||||
*/
|
||||
class ActionComm extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $errors=array();
|
||||
var $element='action';
|
||||
var $table_element = 'actioncomm';
|
||||
var $ismultientitymanaged = 2; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
public $element='action';
|
||||
public $table_element = 'actioncomm';
|
||||
protected $ismultientitymanaged = 2; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
var $type_id;
|
||||
var $type_code;
|
||||
|
||||
@ -32,10 +32,8 @@ require_once(DOL_DOCUMENT_ROOT ."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class Mailing extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element='mailing';
|
||||
var $table_element='mailing';
|
||||
public $element='mailing';
|
||||
public $table_element='mailing';
|
||||
|
||||
var $id;
|
||||
var $statut;
|
||||
|
||||
@ -42,13 +42,11 @@ require_once(DOL_DOCUMENT_ROOT ."/contact/class/contact.class.php");
|
||||
*/
|
||||
class Propal extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element='propal';
|
||||
var $table_element='propal';
|
||||
var $table_element_line='propaldet';
|
||||
var $fk_element='fk_propal';
|
||||
var $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
public $element='propal';
|
||||
public $table_element='propal';
|
||||
public $table_element_line='propaldet';
|
||||
public $fk_element='fk_propal';
|
||||
protected $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
var $id;
|
||||
|
||||
@ -2128,8 +2126,11 @@ class Propal extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Initialise an example of instance with random values
|
||||
* Used to build previews or test instances
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -33,12 +33,11 @@ include_once DOL_DOCUMENT_ROOT . "/comm/propal/class/propal.class.php";
|
||||
*/
|
||||
class PropaleStats extends Stats
|
||||
{
|
||||
var $db;
|
||||
public $table_element;
|
||||
|
||||
var $socid;
|
||||
var $userid;
|
||||
|
||||
var $table_element;
|
||||
var $from;
|
||||
var $field;
|
||||
var $where;
|
||||
|
||||
@ -35,16 +35,14 @@ require_once(DOL_DOCUMENT_ROOT."/product/class/product.class.php");
|
||||
*/
|
||||
class Commande extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element='commande';
|
||||
var $table_element='commande';
|
||||
var $table_element_line = 'commandedet';
|
||||
var $class_element_line = 'OrderLine';
|
||||
var $fk_element = 'fk_commande';
|
||||
var $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
public $element='commande';
|
||||
public $table_element='commande';
|
||||
public $table_element_line = 'commandedet';
|
||||
public $class_element_line = 'OrderLine';
|
||||
public $fk_element = 'fk_commande';
|
||||
protected $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
var $id ;
|
||||
var $id;
|
||||
|
||||
var $socid; // Id client
|
||||
var $client; // Objet societe client (a charger par fetch_client)
|
||||
@ -2325,7 +2323,7 @@ class Commande extends CommonObject
|
||||
dol_syslog("CustomerOrder::delete error", LOG_ERR);
|
||||
$err++;
|
||||
}
|
||||
|
||||
|
||||
// On efface le repertoire de pdf provisoire
|
||||
$comref = dol_sanitizeFileName($this->ref);
|
||||
if ($conf->commande->dir_output)
|
||||
@ -2598,8 +2596,11 @@ class Commande extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Initialise an example of instance with random values
|
||||
* Used to build previews or test instances
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -33,12 +33,11 @@ include_once DOL_DOCUMENT_ROOT . "/fourn/class/fournisseur.commande.class.php";
|
||||
*/
|
||||
class CommandeStats extends Stats
|
||||
{
|
||||
var $db ;
|
||||
public $table_element;
|
||||
|
||||
var $socid;
|
||||
var $userid;
|
||||
|
||||
var $table_element;
|
||||
var $from;
|
||||
var $field;
|
||||
var $where;
|
||||
|
||||
@ -34,10 +34,8 @@ require_once(DOL_DOCUMENT_ROOT ."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class Account extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element='bank_account';
|
||||
var $table_element='bank_account';
|
||||
public $element='bank_account';
|
||||
public $table_element='bank_account';
|
||||
|
||||
var $rowid;
|
||||
var $ref;
|
||||
@ -987,7 +985,11 @@ class Account extends CommonObject
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize properties with test values
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -36,14 +36,10 @@
|
||||
*/
|
||||
class BankCateg // extends CommonObject
|
||||
{
|
||||
var $db; //!< To store db handler
|
||||
var $error; //!< To return error code (or message)
|
||||
var $errors=array(); //!< To return several error codes (or messages)
|
||||
//var $element='bank_categ'; //!< Id that identify managed objects
|
||||
//var $table_element='bank_categ'; //!< Name of table without prefix where object is stored
|
||||
//public $element='bank_categ'; //!< Id that identify managed objects
|
||||
//public $table_element='bank_categ'; //!< Name of table without prefix where object is stored
|
||||
|
||||
var $id;
|
||||
|
||||
var $label;
|
||||
|
||||
|
||||
@ -345,16 +341,17 @@ class BankCateg // extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* \brief Initialise object with example values
|
||||
* \remarks id must be 0 if object instance is a specimen.
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
$this->id=0;
|
||||
|
||||
$this->label='';
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -31,13 +31,11 @@ require_once(DOL_DOCUMENT_ROOT ."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class Deplacement extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element='deplacement';
|
||||
var $table_element='deplacement';
|
||||
var $table_element_line = '';
|
||||
var $fk_element = '';
|
||||
var $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
public $element='deplacement';
|
||||
public $table_element='deplacement';
|
||||
public $table_element_line = '';
|
||||
public $fk_element = '';
|
||||
protected $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
var $id;
|
||||
|
||||
|
||||
@ -31,12 +31,11 @@ include_once DOL_DOCUMENT_ROOT . "/compta/deplacement/class/deplacement.class.ph
|
||||
*/
|
||||
class DeplacementStats extends Stats
|
||||
{
|
||||
var $db;
|
||||
public $table_element;
|
||||
|
||||
var $socid;
|
||||
var $userid;
|
||||
|
||||
var $table_element;
|
||||
var $from;
|
||||
var $field;
|
||||
var $where;
|
||||
|
||||
@ -32,10 +32,8 @@ require_once(DOL_DOCUMENT_ROOT ."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class Don extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element='don';
|
||||
var $table_element='don';
|
||||
public $element='don';
|
||||
public $table_element='don';
|
||||
|
||||
var $id;
|
||||
var $date;
|
||||
@ -142,8 +140,11 @@ class Don extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* \brief Initialise le don avec valeurs fictives alaatoire
|
||||
* Sert a generer un recu de don pour l'aperu des modeles ou demo
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -35,13 +35,12 @@ require_once(DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php");
|
||||
*/
|
||||
class FactureRec extends Facture
|
||||
{
|
||||
var $db ;
|
||||
var $element='facturerec';
|
||||
var $table_element='facture_rec';
|
||||
var $table_element_line='facturedet_rec';
|
||||
var $fk_element='fk_facture';
|
||||
public $element='facturerec';
|
||||
public $table_element='facture_rec';
|
||||
public $table_element_line='facturedet_rec';
|
||||
public $fk_element='fk_facture';
|
||||
|
||||
var $id ;
|
||||
var $id;
|
||||
|
||||
//! Id customer
|
||||
var $socid;
|
||||
|
||||
@ -40,14 +40,11 @@ require_once(DOL_DOCUMENT_ROOT ."/societe/class/client.class.php");
|
||||
*/
|
||||
class Facture extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $errors=array();
|
||||
var $element='facture';
|
||||
var $table_element='facture';
|
||||
var $table_element_line = 'facturedet';
|
||||
var $fk_element = 'fk_facture';
|
||||
var $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
public $element='facture';
|
||||
public $table_element='facture';
|
||||
public $table_element_line = 'facturedet';
|
||||
public $fk_element = 'fk_facture';
|
||||
protected $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
var $id;
|
||||
//! Id client
|
||||
@ -3062,8 +3059,11 @@ class Facture extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Initialise an example of invoice with random values
|
||||
* Used to build previews or test instances
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -33,12 +33,10 @@ include_once DOL_DOCUMENT_ROOT . "/lib/date.lib.php";
|
||||
*/
|
||||
class FactureStats extends Stats
|
||||
{
|
||||
var $db;
|
||||
|
||||
var $socid;
|
||||
var $userid;
|
||||
|
||||
var $table_element;
|
||||
public $table_element;
|
||||
var $from;
|
||||
var $field;
|
||||
var $where;
|
||||
|
||||
@ -33,8 +33,8 @@ class PaymentTerm // extends CommonObject
|
||||
var $db; //!< To store db handler
|
||||
var $error; //!< To return error code (or message)
|
||||
var $errors=array(); //!< To return several error codes (or messages)
|
||||
//var $element='c_payment_term'; //!< Id that identify managed objects
|
||||
//var $table_element='c_payment_term'; //!< Name of table without prefix where object is stored
|
||||
//public $element='c_payment_term'; //!< Id that identify managed objects
|
||||
//public $table_element='c_payment_term'; //!< Name of table without prefix where object is stored
|
||||
|
||||
var $id;
|
||||
|
||||
@ -455,10 +455,11 @@ class PaymentTerm // extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Initialise object with example values
|
||||
* id must be 0 if object instance is a specimen
|
||||
*
|
||||
* @return void
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -32,10 +32,8 @@ require_once(DOL_DOCUMENT_ROOT ."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class RemiseCheque extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element='chequereceipt';
|
||||
var $table_element='bordereau_cheque';
|
||||
public $element='chequereceipt';
|
||||
public $table_element='bordereau_cheque';
|
||||
|
||||
var $id;
|
||||
var $num;
|
||||
|
||||
@ -30,10 +30,8 @@ require_once(DOL_DOCUMENT_ROOT ."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class Paiement extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element='payment';
|
||||
var $table_element='paiement';
|
||||
public $element='payment';
|
||||
public $table_element='paiement';
|
||||
|
||||
var $id;
|
||||
var $ref;
|
||||
|
||||
@ -31,11 +31,9 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class ChargeSociales extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element='rowid';
|
||||
var $table='chargesociales';
|
||||
var $table_element='chargesociales';
|
||||
public $element='rowid';
|
||||
public $table='chargesociales';
|
||||
public $table_element='chargesociales';
|
||||
|
||||
var $id;
|
||||
var $date_ech;
|
||||
@ -397,8 +395,11 @@ class ChargeSociales extends CommonObject
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialise an example of social contribution with random values
|
||||
* Used to build previews or test instances
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -30,11 +30,8 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class PaymentSocialContribution extends CommonObject
|
||||
{
|
||||
var $db; //!< To store db handler
|
||||
var $error; //!< To return error code (or message)
|
||||
var $errors=array(); //!< To return several error codes (or messages)
|
||||
var $element='paiementcharge'; //!< Id that identify managed objects
|
||||
var $table_element='paiementcharge'; //!< Name of table without prefix where object is stored
|
||||
public $element='paiementcharge'; //!< Id that identify managed objects
|
||||
public $table_element='paiementcharge'; //!< Name of table without prefix where object is stored
|
||||
|
||||
var $id;
|
||||
var $ref;
|
||||
@ -428,8 +425,11 @@ class PaymentSocialContribution extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* \brief Initialise object with example values
|
||||
* \remarks id must be 0 if object instance is a specimen.
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -33,11 +33,8 @@ require_once(DOL_DOCUMENT_ROOT ."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class Tva extends CommonObject
|
||||
{
|
||||
var $db; //!< To store db handler
|
||||
var $error; //!< To return error code (or message)
|
||||
var $errors=array(); //!< To return several error codes (or messages)
|
||||
//var $element='tva'; //!< Id that identify managed objects
|
||||
//var $table_element='tva'; //!< Name of table without prefix where object is stored
|
||||
//public $element='tva'; //!< Id that identify managed objects
|
||||
//public $table_element='tva'; //!< Name of table without prefix where object is stored
|
||||
|
||||
var $id;
|
||||
var $ref;
|
||||
@ -302,8 +299,11 @@ class Tva extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* \brief Initialise object with example values
|
||||
* \remarks id must be 0 if object instance is a specimen.
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
@ -318,8 +318,6 @@ class Tva extends CommonObject
|
||||
$this->fk_bank='';
|
||||
$this->fk_user_creat='';
|
||||
$this->fk_user_modif='';
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -34,10 +34,8 @@ require_once(DOL_DOCUMENT_ROOT ."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class Contact extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element='contact';
|
||||
var $table_element='socpeople';
|
||||
public $element='contact';
|
||||
public $table_element='socpeople';
|
||||
|
||||
var $id;
|
||||
var $civilite_id; // In fact we stor civility_code
|
||||
@ -999,9 +997,11 @@ class Contact extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Initialise le contact avec valeurs fictives aleatoire
|
||||
*
|
||||
* @return void
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -37,12 +37,10 @@ require_once(DOL_DOCUMENT_ROOT."/lib/price.lib.php");
|
||||
*/
|
||||
class Contrat extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element='contrat';
|
||||
var $table_element='contrat';
|
||||
var $table_element_line='contratdet';
|
||||
var $fk_element='fk_contrat';
|
||||
public $element='contrat';
|
||||
public $table_element='contrat';
|
||||
public $table_element_line='contratdet';
|
||||
public $fk_element='fk_contrat';
|
||||
|
||||
var $id;
|
||||
var $ref;
|
||||
@ -1424,7 +1422,11 @@ class Contrat extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* \brief Initialise le membre avec valeurs fictives aleatoire
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -462,10 +462,11 @@ class DiscountAbsolute
|
||||
|
||||
|
||||
/**
|
||||
* Initializes the intervention with random values
|
||||
* Used to generate a intervention for the preview or demo models
|
||||
*
|
||||
* @return void
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -36,11 +36,8 @@
|
||||
*/
|
||||
class Events // extends CommonObject
|
||||
{
|
||||
var $db; //!< To store db handler
|
||||
var $error; //!< To return error code (or message)
|
||||
var $errors=array(); //!< To return several error codes (or messages)
|
||||
var $element='events'; //!< Id that identify managed objects
|
||||
var $table_element='events'; //!< Name of table without prefix where object is stored
|
||||
public $element='events'; //!< Id that identify managed objects
|
||||
public $table_element='events'; //!< Name of table without prefix where object is stored
|
||||
|
||||
var $id;
|
||||
|
||||
@ -265,8 +262,11 @@ class Events // extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* \brief Initialise object with example values
|
||||
* \remarks id must be 0 if object instance is a specimen.
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -328,8 +328,11 @@ class Menubase
|
||||
|
||||
|
||||
/**
|
||||
* Initialise object with example values
|
||||
* Id must be 0 if object instance is a specimen.
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (c) 2008-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (c) 2008-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -28,8 +28,15 @@
|
||||
*/
|
||||
abstract class Stats
|
||||
{
|
||||
var $db ;
|
||||
protected $db;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param DoliDB $DB Database handler
|
||||
* @return Stats
|
||||
*/
|
||||
function Stats($DB)
|
||||
{
|
||||
$this->db = $DB;
|
||||
@ -37,6 +44,7 @@ abstract class Stats
|
||||
|
||||
/**
|
||||
* Return nb of entity by month for several years
|
||||
*
|
||||
* @param endyear Start year
|
||||
* @param startyear End year
|
||||
* @return array Array of values
|
||||
@ -110,6 +118,7 @@ abstract class Stats
|
||||
|
||||
/**
|
||||
* Return nb of elements by year
|
||||
*
|
||||
* @param sql SQL request
|
||||
* @return array
|
||||
*/
|
||||
@ -139,6 +148,7 @@ abstract class Stats
|
||||
|
||||
/**
|
||||
* Return nb of elements, total amount and avg amount by year
|
||||
*
|
||||
* @param sql SQL request
|
||||
* @return array
|
||||
*/
|
||||
@ -171,6 +181,7 @@ abstract class Stats
|
||||
|
||||
/**
|
||||
* Renvoie le nombre de proposition par mois pour une annee donnee
|
||||
*
|
||||
* @param year Year
|
||||
* @param sql SQL
|
||||
*/
|
||||
@ -218,6 +229,7 @@ abstract class Stats
|
||||
|
||||
/**
|
||||
* Renvoie le nombre d'element par mois pour une annee donnee
|
||||
*
|
||||
* @param year Year
|
||||
* @param sql SQL
|
||||
*/
|
||||
@ -262,6 +274,7 @@ abstract class Stats
|
||||
|
||||
/**
|
||||
* Renvoie le montant moyen par mois pour une annee donnee
|
||||
*
|
||||
* @param year Year
|
||||
* @param sql SQL
|
||||
*/
|
||||
|
||||
@ -30,11 +30,8 @@
|
||||
*/
|
||||
class EcmDirectory // extends CommonObject
|
||||
{
|
||||
var $db; //!< To store db handler
|
||||
var $error; //!< To return error code (or message)
|
||||
var $errors=array(); //!< To return several error codes (or messages)
|
||||
//var $element='ecm_directories'; //!< Id that identify managed objects
|
||||
//var $table_element='ecm_directories'; //!< Name of table without prefix where object is stored
|
||||
//public $element='ecm_directories'; //!< Id that identify managed objects
|
||||
//public $table_element='ecm_directories'; //!< Name of table without prefix where object is stored
|
||||
|
||||
var $id;
|
||||
|
||||
@ -377,8 +374,11 @@ class EcmDirectory // extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* \brief Initialise object with example values
|
||||
* \remarks id must be 0 if object instance is a specimen.
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -36,11 +36,9 @@ if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT."/commande/class/co
|
||||
*/
|
||||
class Expedition extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element="shipping";
|
||||
var $fk_element="fk_expedition";
|
||||
var $table_element="expedition";
|
||||
public $element="shipping";
|
||||
public $fk_element="fk_expedition";
|
||||
public $table_element="expedition";
|
||||
|
||||
var $id;
|
||||
var $socid;
|
||||
@ -973,8 +971,11 @@ class Expedition extends CommonObject
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Initialise la facture avec valeurs fictives aleatoire
|
||||
* Sert a generer une facture pour l'aperu des modeles ou dem
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -32,11 +32,10 @@ require_once(DOL_DOCUMENT_ROOT ."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class Fichinter extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $element='fichinter';
|
||||
var $table_element='fichinter';
|
||||
var $fk_element='fk_fichinter';
|
||||
var $table_element_line='fichinterdet';
|
||||
public $element='fichinter';
|
||||
public $table_element='fichinter';
|
||||
public $fk_element='fk_fichinter';
|
||||
public $table_element_line='fichinterdet';
|
||||
|
||||
var $id;
|
||||
|
||||
@ -751,8 +750,11 @@ class Fichinter extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Initializes the intervention with random values
|
||||
* Used to generate a intervention for the preview or demo models
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -36,15 +36,11 @@ require_once(DOL_DOCUMENT_ROOT."/commande/class/commande.class.php");
|
||||
*/
|
||||
class CommandeFournisseur extends Commande
|
||||
{
|
||||
var $id ;
|
||||
var $db ;
|
||||
var $error;
|
||||
|
||||
var $element='order_supplier';
|
||||
var $table_element='commande_fournisseur';
|
||||
var $table_element_line = 'commande_fournisseurdet';
|
||||
var $fk_element = 'fk_commande';
|
||||
var $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
public $element='order_supplier';
|
||||
public $table_element='commande_fournisseur';
|
||||
public $table_element_line = 'commande_fournisseurdet';
|
||||
public $fk_element = 'fk_commande';
|
||||
protected $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
var $ref; // TODO deprecated
|
||||
var $product_ref;
|
||||
@ -1666,8 +1662,11 @@ class CommandeFournisseur extends Commande
|
||||
|
||||
|
||||
/**
|
||||
* Initialise an example of instance with random values
|
||||
* Used to build previews or test instances
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -35,15 +35,11 @@ include_once(DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php");
|
||||
*/
|
||||
class FactureFournisseur extends Facture
|
||||
{
|
||||
var $id;
|
||||
var $db;
|
||||
var $error;
|
||||
|
||||
var $element='invoice_supplier';
|
||||
var $table_element='facture_fourn';
|
||||
var $table_element_line='facture_fourn_det';
|
||||
var $fk_element='fk_facture_fourn';
|
||||
var $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
public $element='invoice_supplier';
|
||||
public $table_element='facture_fourn';
|
||||
public $table_element_line='facture_fourn_det';
|
||||
public $fk_element='fk_facture_fourn';
|
||||
protected $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
var $ref; // TODO deprecated
|
||||
var $product_ref;
|
||||
@ -1201,8 +1197,11 @@ class FactureFournisseur extends Facture
|
||||
|
||||
|
||||
/**
|
||||
* Initialise an example of instance with random values
|
||||
* Used to build previews or test instances
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -32,10 +32,8 @@ require_once(DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php');
|
||||
*/
|
||||
class PaiementFourn extends Paiement
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element='payment_supplier';
|
||||
var $table_element='paiementfourn';
|
||||
public $element='payment_supplier';
|
||||
public $table_element='paiementfourn';
|
||||
|
||||
var $id;
|
||||
var $ref;
|
||||
@ -188,7 +186,7 @@ class PaiementFourn extends Paiement
|
||||
dol_syslog('Paiement::Create Erreur INSERT dans paiement_facture '.$facid);
|
||||
$error++;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -37,11 +37,9 @@ if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT."/commande/class/co
|
||||
*/
|
||||
class Livraison extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element="delivery";
|
||||
var $fk_element="fk_livraison";
|
||||
var $table_element="livraison";
|
||||
public $element="delivery";
|
||||
public $fk_element="fk_livraison";
|
||||
public $table_element="livraison";
|
||||
|
||||
var $id;
|
||||
var $brouillon;
|
||||
@ -713,7 +711,11 @@ class Livraison extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* \brief Initialise object with default value to be used as example
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -34,16 +34,12 @@ require_once(DOL_DOCUMENT_ROOT ."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class Product extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $errno = 0;
|
||||
|
||||
var $element='product';
|
||||
var $table_element='product';
|
||||
var $fk_element='fk_product';
|
||||
var $childtables=array('propaldet','commandedet','facturedet','contratdet','product_fournisseur');
|
||||
var $isnolinkedbythird = 1; // No field fk_soc
|
||||
var $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
public $element='product';
|
||||
public $table_element='product';
|
||||
public $fk_element='fk_product';
|
||||
public $childtables=array('propaldet','commandedet','facturedet','contratdet','product_fournisseur');
|
||||
protected $isnolinkedbythird = 1; // No field fk_soc
|
||||
protected $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
//! Identifiant unique
|
||||
var $id ;
|
||||
|
||||
@ -33,10 +33,8 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php");
|
||||
|
||||
class Entrepot extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $element='label';
|
||||
var $table_element='entrepot';
|
||||
public $element='label';
|
||||
public $table_element='entrepot';
|
||||
|
||||
var $id;
|
||||
var $libelle;
|
||||
|
||||
@ -30,11 +30,8 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class Project extends CommonObject
|
||||
{
|
||||
var $db; //!< To store db handler
|
||||
var $error; //!< To return error code (or message)
|
||||
var $errors=array(); //!< To return several error codes (or messages)
|
||||
var $element='project'; //!< Id that identify managed objects
|
||||
var $table_element='projet'; //!< Name of table without prefix where object is stored
|
||||
public $element='project'; //!< Id that identify managed objects
|
||||
public $table_element='projet'; //!< Name of table without prefix where object is stored
|
||||
|
||||
var $id;
|
||||
var $ref;
|
||||
@ -666,9 +663,11 @@ class Project extends CommonObject
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialise object with default value to be used as example
|
||||
*
|
||||
* @return void
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -32,11 +32,8 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class Task extends CommonObject
|
||||
{
|
||||
var $db; //!< To store db handler
|
||||
var $error; //!< To return error code (or message)
|
||||
var $errors=array(); //!< To return several error codes (or messages)
|
||||
var $element='project_task'; //!< Id that identify managed objects
|
||||
var $table_element='projet_task'; //!< Name of table without prefix where object is stored
|
||||
public $element='project_task'; //!< Id that identify managed objects
|
||||
public $table_element='projet_task'; //!< Name of table without prefix where object is stored
|
||||
|
||||
var $id;
|
||||
|
||||
@ -437,10 +434,11 @@ class Task extends CommonObject
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialise object with example values
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -1341,7 +1341,7 @@ class Societe extends CommonObject
|
||||
if ($this->id)
|
||||
{
|
||||
$now=dol_now();
|
||||
|
||||
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."societe ";
|
||||
$sql .= " SET price_level = '".$price_level."'";
|
||||
$sql .= " WHERE rowid = " . $this->id;
|
||||
@ -2481,8 +2481,11 @@ class Societe extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Initialise an example of company with random values
|
||||
* Used to build previews or test instances
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -36,12 +36,9 @@ require_once(DOL_DOCUMENT_ROOT ."/core/class/commonobject.class.php");
|
||||
*/
|
||||
class User extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $errors=array();
|
||||
var $element='user';
|
||||
var $table_element='user';
|
||||
var $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
public $element='user';
|
||||
public $table_element='user';
|
||||
protected $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
var $id=0;
|
||||
var $ldap_sid;
|
||||
@ -1231,7 +1228,7 @@ class User extends CommonObject
|
||||
{
|
||||
global $conf, $langs;
|
||||
require_once(DOL_DOCUMENT_ROOT ."/lib/security.lib.php");
|
||||
|
||||
|
||||
$error=0;
|
||||
|
||||
dol_syslog("User::setPassword user=".$user->id." password=".preg_replace('/./i','*',$password)." changelater=".$changelater." notrigger=".$notrigger." nosyncmember=".$nosyncmember, LOG_DEBUG);
|
||||
@ -1871,7 +1868,11 @@ class User extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Initialize user with default values
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
@ -33,12 +33,9 @@ if ($conf->ldap->enabled) require_once (DOL_DOCUMENT_ROOT."/lib/ldap.class.php")
|
||||
*/
|
||||
class UserGroup extends CommonObject
|
||||
{
|
||||
var $db; // Database handler
|
||||
var $error;
|
||||
var $errors=array();
|
||||
var $element='usergroup';
|
||||
var $table_element='usergroup';
|
||||
var $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
public $element='usergroup';
|
||||
public $table_element='usergroup';
|
||||
protected $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
var $id; // Group id
|
||||
var $entity; // Entity of group
|
||||
@ -679,9 +676,11 @@ class UserGroup extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Initialise le groupe avec valeurs fictives aleatoire
|
||||
*
|
||||
* @return void
|
||||
* Initialise an instance with random values.
|
||||
* Used to build previews or test instances.
|
||||
* id must be 0 if object instance is a specimen.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function initAsSpecimen()
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user