Browse Source

Standardize and update code

Philippe GRAND 6 years ago
parent
commit
2fa82edd39

+ 4 - 1
htdocs/accountancy/class/accountancycategory.class.php

@@ -46,7 +46,10 @@ class AccountancyCategory 	// extends CommonObject
 	 */
 	public $errors = array();
 	
-	public $element='c_accounting_category';			//!< Id that identify managed objects
+	/**
+	 * @var string ID to identify managed object
+	 */
+	public $element='c_accounting_category';			
 	
 	/**
 	 * @var string Name of table without prefix where object is stored

+ 3 - 0
htdocs/accountancy/class/accountingjournal.class.php

@@ -26,6 +26,9 @@
  */
 class AccountingJournal extends CommonObject
 {
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element='accounting_journal';
 	
 	/**

+ 3 - 0
htdocs/adherents/class/adherent.class.php

@@ -41,6 +41,9 @@ require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
  */
 class Adherent extends CommonObject
 {
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element='member';
 	
 	/**

+ 4 - 0
htdocs/adherents/class/adherent_type.class.php

@@ -37,7 +37,11 @@ class AdherentType extends CommonObject
 	 */
 	public $table_element = 'adherent_type';
 	
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element = 'adherent_type';
+	
 	public $picto = 'group';
 	public $ismultientitymanaged = 1;  // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
 

+ 3 - 0
htdocs/adherents/class/subscription.class.php

@@ -32,6 +32,9 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
  */
 class Subscription extends CommonObject
 {
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element='subscription';
 	
 	/**

+ 4 - 0
htdocs/asset/class/asset_type.class.php

@@ -34,7 +34,11 @@ class AssetType extends CommonObject
 	 */
 	public $table_element = 'asset_type';
 	
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element = 'asset_type';
+	
 	public $picto = 'group';
 	public $ismultientitymanaged = 1;  // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
 

+ 4 - 1
htdocs/bookmarks/class/bookmark.class.php

@@ -28,7 +28,10 @@
  */
 class Bookmark extends CommonObject
 {
-    public $element='bookmark';
+    /**
+	 * @var string ID to identify managed object
+	 */
+	public $element='bookmark';
     
     /**
      * @var string Name of table without prefix where object is stored

+ 3 - 0
htdocs/categories/class/categorie.class.php

@@ -148,6 +148,9 @@ class Categorie extends CommonObject
         'project'  => 'projet',
 	);
 
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element='category';
 	
 	/**

+ 4 - 1
htdocs/comm/action/class/actioncomm.class.php

@@ -34,7 +34,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
  */
 class ActionComm extends CommonObject
 {
-    public $element='action';
+    /**
+	 * @var string ID to identify managed object
+	 */
+	public $element='action';
     
     /**
      * @var string Name of table without prefix where object is stored

+ 3 - 0
htdocs/comm/mailing/class/mailing.class.php

@@ -31,6 +31,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
  */
 class Mailing extends CommonObject
 {
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element='mailing';
 	
 	/**

+ 6 - 0
htdocs/comm/propal/class/propal.class.php

@@ -45,6 +45,9 @@ require_once DOL_DOCUMENT_ROOT .'/multicurrency/class/multicurrency.class.php';
  */
 class Propal extends CommonObject
 {
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element='propal';
 	
 	/**
@@ -3656,6 +3659,9 @@ class Propal extends CommonObject
  */
 class PropaleLigne extends CommonObjectLine
 {
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element='propaldet';
 	
 	/**

+ 8 - 1
htdocs/commande/class/commande.class.php

@@ -42,7 +42,10 @@ require_once DOL_DOCUMENT_ROOT .'/multicurrency/class/multicurrency.class.php';
  */
 class Commande extends CommonOrder
 {
-    public $element='commande';
+    /**
+	 * @var string ID to identify managed object
+	 */
+	public $element='commande';
     
     /**
 	 * @var string Name of table without prefix where object is stored
@@ -3784,7 +3787,11 @@ class Commande extends CommonOrder
  */
 class OrderLine extends CommonOrderLine
 {
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element='commandedet';
+	
 	public $table_element='commandedet';
 
     var $oldline;

+ 3 - 0
htdocs/compta/bank/class/account.class.php

@@ -36,6 +36,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
  */
 class Account extends CommonObject
 {
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element = 'bank_account';
 	
 	/**

+ 4 - 1
htdocs/compta/bank/class/paymentvarious.class.php

@@ -30,7 +30,10 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
  */
 class PaymentVarious extends CommonObject
 {
-	public $element='variouspayment';		//!< Id that identify managed objects
+	/**
+	 * @var string ID to identify managed object
+	 */
+	public $element='variouspayment';
 	
 	/**
 	 * @var string Name of table without prefix where object is stored

+ 3 - 0
htdocs/compta/deplacement/class/deplacement.class.php

@@ -31,6 +31,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
  */
 class Deplacement extends CommonObject
 {
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element='deplacement';
 	
 	/**

+ 6 - 0
htdocs/compta/facture/class/facture-rec.class.php

@@ -39,6 +39,9 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
  */
 class FactureRec extends CommonInvoice
 {
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element='facturerec';
 	
 	/**
@@ -1644,6 +1647,9 @@ class FactureRec extends CommonInvoice
  */
 class FactureLigneRec extends CommonInvoiceLine
 {
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element='facturedetrec';
 	
 	/**

+ 7 - 1
htdocs/compta/facture/class/facture.class.php

@@ -53,6 +53,9 @@ if (! empty($conf->accounting->enabled)) require_once DOL_DOCUMENT_ROOT.'/accoun
  */
 class Facture extends CommonInvoice
 {
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element='facture';
 	
 	/**
@@ -4236,7 +4239,10 @@ class Facture extends CommonInvoice
  */
 class FactureLigne extends CommonInvoiceLine
 {
-    public $element='facturedet';
+    /**
+	 * @var string ID to identify managed object
+	 */
+	public $element='facturedet';
     
     /**
 	 * @var string Name of table without prefix where object is stored

+ 4 - 1
htdocs/compta/localtax/class/localtax.class.php

@@ -29,7 +29,10 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
  */
 class Localtax extends CommonObject
 {
-	public $element='localtax';			//!< Id that identify managed objects
+	/**
+	 * @var string ID to identify managed object
+	 */
+	public $element='localtax';	
 	
 	/**
 	 * @var string Name of table without prefix where object is stored

+ 3 - 0
htdocs/compta/paiement/cheque/class/remisecheque.class.php

@@ -33,6 +33,9 @@ require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
  */
 class RemiseCheque extends CommonObject
 {
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element='chequereceipt';
 	
 	/**

+ 4 - 1
htdocs/compta/paiement/class/paiement.class.php

@@ -36,7 +36,10 @@ require_once DOL_DOCUMENT_ROOT .'/multicurrency/class/multicurrency.class.php';
  */
 class Paiement extends CommonObject
 {
-    public $element='payment';
+    /**
+	 * @var string ID to identify managed object
+	 */
+	public $element='payment';
     
     /**
 	 * @var string Name of table without prefix where object is stored

+ 3 - 0
htdocs/compta/prelevement/class/bonprelevement.class.php

@@ -39,6 +39,9 @@ require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php';
  */
 class BonPrelevement extends CommonObject
 {
+	/**
+	 * @var string ID to identify managed object
+	 */
 	public $element='widthdraw';
 	
 	/**

+ 4 - 1
htdocs/compta/salaries/class/paymentsalary.class.php

@@ -31,7 +31,10 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
  */
 class PaymentSalary extends CommonObject
 {
-	public $element='payment_salary';			//!< Id that identify managed objects
+	/**
+	 * @var string ID to identify managed object
+	 */
+	public $element='payment_salary';
 	
 	/**
 	 * @var string Name of table without prefix where object is stored

+ 5 - 1
htdocs/compta/sociales/class/chargesociales.class.php

@@ -32,7 +32,11 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
  */
 class ChargeSociales extends CommonObject
 {
-    public $element='chargesociales';
+    /**
+	 * @var string ID to identify managed object
+	 */
+	public $element='chargesociales';
+	
     public $table='chargesociales';
     
     /**

+ 4 - 1
htdocs/compta/sociales/class/paymentsocialcontribution.class.php

@@ -31,7 +31,10 @@ require_once DOL_DOCUMENT_ROOT.'/compta/sociales/class/chargesociales.class.php'
  */
 class PaymentSocialContribution extends CommonObject
 {
-	public $element='paiementcharge';			//!< Id that identify managed objects
+	/**
+	 * @var string ID to identify managed object
+	 */
+	public $element='paiementcharge';
 	
 	/**
 	 * @var string Name of table without prefix where object is stored

+ 4 - 1
htdocs/compta/tva/class/tva.class.php

@@ -33,7 +33,10 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
  */
 class Tva extends CommonObject
 {
-	public $element='tva';			//!< Id that identify managed objects
+	/**
+	 * @var string ID to identify managed object
+	 */
+	public $element='tva';
 	
 	/**
 	 * @var string Name of table without prefix where object is stored