Browse Source

Standardize code

Philippe GRAND 6 years ago
parent
commit
83db36f9b2

+ 5 - 1
htdocs/asset/class/asset_type.class.php

@@ -44,7 +44,11 @@ class AssetType extends CommonObject
 	 */
 	public $picto = 'group';
 
-	public $ismultientitymanaged = 1;  // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+	/**
+	 * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+	 * @var int
+	 */
+	public $ismultientitymanaged = 1;
 
 	/**
      * @var string Asset type label

+ 19 - 10
htdocs/bookmarks/class/bookmark.class.php

@@ -29,21 +29,25 @@
 class Bookmark extends CommonObject
 {
     /**
-	   * @var string ID to identify managed object
-	   */
-	  public $element='bookmark';
+	 * @var string ID to identify managed object
+	 */
+	public $element='bookmark';
 
     /**
      * @var string Name of table without prefix where object is stored
      */
     public $table_element='bookmark';
 
-    public $ismultientitymanaged = 1;	// 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+    /**
+	 * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+	 * @var int
+	 */
+    public $ismultientitymanaged = 1;
 
     /**
-	   * @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
-	   */
-	  public $picto = 'bookmark';
+	 * @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
+	 */
+	public $picto = 'bookmark';
 
     /**
      * @var DoliDB Database handler.
@@ -56,15 +60,20 @@ class Bookmark extends CommonObject
     public $id;
 
     /**
-	   * @var int User ID
-	   */
-	  public $fk_user;
+	 * @var int User ID
+	 */
+	public $fk_user;
 
     public $datec;
+
     public $url;
+
     public $target;	// 0=replace, 1=new window
+
     public $title;
+
     public $position;
+
     public $favicon;
 
 

+ 5 - 1
htdocs/compta/deplacement/class/deplacement.class.php

@@ -51,7 +51,11 @@ class Deplacement extends CommonObject
 	 */
 	public $fk_element = '';
 
-	public $ismultientitymanaged = 0;	// 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+	/**
+	 * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+	 * @var int
+	 */
+	public $ismultientitymanaged = 0;
 
 	public $datec;         // Creation date
 	public $dated;

+ 5 - 1
htdocs/contact/class/contact.class.php

@@ -47,7 +47,11 @@ class Contact extends CommonObject
 	 */
 	public $table_element='socpeople';
 
-	public $ismultientitymanaged = 1;	// 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+	/**
+	 * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+	 * @var int
+	 */
+	public $ismultientitymanaged = 1;
 
 	/**
 	 * @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png

+ 5 - 1
htdocs/core/class/fiscalyear.class.php

@@ -48,7 +48,11 @@ class Fiscalyear extends CommonObject
 	 */
 	public $fk_element = '';
 
-	public $ismultientitymanaged = 1;	// 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+	/**
+	 * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+	 * @var int
+	 */
+	public $ismultientitymanaged = 1;
 
 	/**
 	 * @var int ID