Skip to content

Commit

Permalink
Standardize and update code
Browse files Browse the repository at this point in the history
  • Loading branch information
grandoc committed Aug 31, 2018
1 parent 9e880d3 commit 2f307aa
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 12 deletions.
12 changes: 8 additions & 4 deletions htdocs/bookmarks/class/bookmark.class.php
Expand Up @@ -32,12 +32,12 @@ class Bookmark extends CommonObject
* @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
public $picto = 'bookmark';

Expand All @@ -50,8 +50,12 @@ class Bookmark extends CommonObject
* @var int ID
*/
public $id;

var $fk_user;

/**
* @var int User ID
*/
public $fk_user;

var $datec;
var $url;
var $target; // 0=replace, 1=new window
Expand Down
11 changes: 8 additions & 3 deletions htdocs/compta/deplacement/class/deplacement.class.php
Expand Up @@ -35,20 +35,25 @@ class Deplacement extends CommonObject
* @var string ID to identify managed object
*/
public $element='deplacement';

/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='deplacement';

public $table_element_line = '';
public $fk_element = '';
public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe

var $datec; // Creation date
var $dated;
var $fk_user_author;
var $fk_user;

/**
* @var int User ID
*/
public $fk_user;

var $km;
var $socid;
var $statut; // 0=draft, 1=validated
Expand Down
10 changes: 7 additions & 3 deletions htdocs/holiday/class/holiday.class.php
Expand Up @@ -36,12 +36,12 @@ class Holiday extends CommonObject
* @var string ID to identify managed object
*/
public $element='holiday';

/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='holiday';

public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
var $fk_element = 'fk_holiday';
public $picto = 'holiday';
Expand All @@ -52,7 +52,11 @@ class Holiday extends CommonObject
*/
var $rowid;

var $fk_user;
/**
* @var int User ID
*/
public $fk_user;

var $date_create='';
var $description;
var $date_debut=''; // Date start in PHP server TZ
Expand Down
14 changes: 12 additions & 2 deletions htdocs/product/class/productcustomerprice.class.php
Expand Up @@ -54,7 +54,12 @@ class Productcustomerprice extends CommonObject
var $localtax1_tx;
var $localtax2_type;
var $localtax2_tx;
var $fk_user;

/**
* @var int User ID
*/
public $fk_user;

var $lines = array ();

/**
Expand Down Expand Up @@ -978,7 +983,12 @@ class PriceByCustomerLine
var $recuperableonly;
var $localtax1_tx;
var $localtax2_tx;
var $fk_user;

/**
* @var int User ID
*/
public $fk_user;

var $import_key;
var $socname;
var $prodref;
Expand Down

0 comments on commit 2f307aa

Please sign in to comment.