Standardize code

This commit is contained in:
Philippe GRAND 2018-10-06 12:11:48 +02:00
parent dd9af92020
commit 83db36f9b2
5 changed files with 39 additions and 14 deletions

View File

@ -44,7 +44,11 @@ class AssetType extends CommonObject
*/ */
public $picto = 'group'; 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 * @var string Asset type label

View File

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

View File

@ -51,7 +51,11 @@ class Deplacement extends CommonObject
*/ */
public $fk_element = ''; 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 $datec; // Creation date
public $dated; public $dated;

View File

@ -47,7 +47,11 @@ class Contact extends CommonObject
*/ */
public $table_element='socpeople'; 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 * @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png

View File

@ -48,7 +48,11 @@ class Fiscalyear extends CommonObject
*/ */
public $fk_element = ''; 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 * @var int ID