Browse Source

Standardize and Update code

Philippe GRAND 6 years ago
parent
commit
7b0d3c32ab

+ 4 - 0
htdocs/accountancy/class/accountingaccount.class.php

@@ -71,7 +71,11 @@ class AccountingAccount extends CommonObject
 	 */
 	public $id;
 
+	/**
+	 * @var int ID
+	 */
 	public $rowid;
+
 	public $datec; // Creation date
 	public $fk_pcg_version;
 	public $pcg_type;

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

@@ -44,6 +44,9 @@ class AccountingJournal extends CommonObject
 	public $ismultientitymanaged = 0;	// 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
 	public $picto = 'generic';
 
+	/**
+	 * @var int ID
+	 */
 	public $rowid;
 
 	public $code;

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

@@ -95,6 +95,10 @@ class Asset extends CommonObject
 		'import_key' => array('type'=>'varchar(14)', 'label'=>'ImportId', 'visible'=>-2, 'enabled'=>1, 'position'=>1000, 'notnull'=>-1,),
 		'status' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>1000, 'notnull'=>1, 'index'=>1, 'arrayofkeyval'=>array('0'=>'Draft', '1'=>'Active', '-1'=>'Cancel')),
 	);
+
+	/**
+	 * @var int ID
+	 */
 	public $rowid;
 
 	/**

+ 4 - 0
htdocs/core/class/emailsenderprofile.class.php

@@ -88,6 +88,10 @@ class EmailSenderProfile extends CommonObject
 		'tms' => array('type'=>'timestamp', 'label'=>'DateModification', 'visible'=>-1, 'enabled'=>1, 'position'=>500, 'notnull'=>1,),
 		'active' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>1000, 'notnull'=>-1, 'index'=>1),
 	);
+
+	/**
+	 * @var int ID
+	 */
 	public $rowid;
 
 	/**

+ 3 - 0
htdocs/core/class/fiscalyear.class.php

@@ -47,6 +47,9 @@ class Fiscalyear extends CommonObject
 
 	public $ismultientitymanaged = 1;	// 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
 
+	/**
+	 * @var int ID
+	 */
 	public $rowid;
 
 	/**

+ 3 - 0
htdocs/don/class/paymentdonation.class.php

@@ -41,6 +41,9 @@ class PaymentDonation extends CommonObject
 
     public $picto = 'payment';
 
+	/**
+	 * @var int ID
+	 */
 	public $rowid;
 
 	public $fk_donation;

+ 4 - 1
htdocs/fourn/class/fournisseur.facture.class.php

@@ -77,7 +77,10 @@ class FactureFournisseur extends CommonInvoice
      */
     protected $table_ref_field = 'ref';
 
-    public $rowid;
+    /**
+	 * @var int ID
+	 */
+	public $rowid;
 
     /**
 	 * @var string Ref

+ 7 - 1
htdocs/hrm/class/establishment.class.php

@@ -48,13 +48,19 @@ class Establishment extends CommonObject
 	public $ismultientitymanaged = 1;	// 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
     public $picto='building';
 
-    public $id;
+    /**
+	 * @var int ID
+	 */
+	public $id;
 
     /**
 	 * @var string Ref
 	 */
 	public $ref;
 
+	/**
+	 * @var int ID
+	 */
 	public $rowid;
 
 	public $name;

+ 4 - 0
htdocs/loan/class/loan.class.php

@@ -43,7 +43,11 @@ class Loan extends CommonObject
 
 	public $picto = 'bill';
 
+	/**
+	 * @var int ID
+	 */
 	public $rowid;
+
 	public $datestart;
 	public $dateend;
 	public $label;

+ 3 - 0
htdocs/modulebuilder/template/class/myobject.class.php

@@ -101,6 +101,9 @@ class MyObject extends CommonObject
 	    'status'        =>array('type'=>'integer',      'label'=>'Status',           'enabled'=>1, 'visible'=>1,  'notnull'=>1, 'default'=>0, 'index'=>1,  'position'=>1000, 'arrayofkeyval'=>array(0=>'Draft', 1=>'Active', -1=>'Cancel')),
 	);
 
+	/**
+	 * @var int ID
+	 */
 	public $rowid;
 
 	/**

+ 3 - 0
htdocs/product/inventory/class/inventory.class.php

@@ -99,6 +99,9 @@ class Inventory extends CommonObject
 		'status' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>1000, 'default'=>0, 'arrayofkeyval'=>array(0=>'Todo', 1=>'Done', -1=>'Cancel')),
 	);
 
+	/**
+	 * @var int ID
+	 */
 	public $rowid;
 
 	/**

+ 9 - 4
htdocs/societe/class/companypaymentmode.class.php

@@ -36,22 +36,22 @@ class CompanyPaymentMode extends CommonObject
 	 * @var string ID to identify managed object
 	 */
 	public $element = 'companypaymentmode';
-	
+
 	/**
 	 * @var string Name of table without prefix where object is stored
 	 */
 	public $table_element = 'societe_rib';
-	
+
 	/**
 	 * @var int  Does companypaymentmode support multicompany module ? 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
 	 */
 	public $ismultientitymanaged = 2;
-	
+
 	/**
 	 * @var int  Does companypaymentmode support extrafields ? 0=No, 1=Yes
 	 */
 	public $isextrafieldmanaged = 0;
-	
+
 	/**
 	 * @var string String with name of icon for companypaymentmode. Must be the part after the 'object_' into object_companypaymentmode.png
 	 */
@@ -118,7 +118,12 @@ class CompanyPaymentMode extends CommonObject
 		'import_key' =>array('type'=>'varchar(14)', 'label'=>'Import key', 'enabled'=>1, 'visible'=>-2, 'position'=>105),
 	//'aaa' =>array('type'=>'date', 'label'=>'Ending date', 'enabled'=>0, 'visible'=>-2, 'position'=>185),
 	);
+
+	/**
+	 * @var int ID
+	 */
 	public $rowid;
+
 	public $fk_soc;
 	public $label;
 	public $bank;

+ 4 - 0
htdocs/stripe/class/stripe.class.php

@@ -28,7 +28,11 @@ require_once DOL_DOCUMENT_ROOT.'/stripe/config.php';						// This set stripe glo
  */
 class Stripe extends CommonObject
 {
+	/**
+	 * @var int ID
+	 */
 	public $rowid;
+
 	public $fk_soc;
 	public $fk_key;
 	public $id;