Standardize and update code

This commit is contained in:
Philippe GRAND 2018-08-31 18:36:15 +02:00
parent 70ae8c6081
commit edaa575435
4 changed files with 43 additions and 26 deletions

View File

@ -40,12 +40,12 @@ class Account extends CommonObject
* @var string ID to identify managed object * @var string ID to identify managed object
*/ */
public $element = 'bank_account'; public $element = 'bank_account';
/** /**
* @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 = 'bank_account'; public $table_element = 'bank_account';
public $picto = 'account'; public $picto = 'account';
/** /**
@ -1645,30 +1645,34 @@ class AccountLine extends CommonObject
* @var string Error code (or message) * @var string Error code (or message)
*/ */
public $error=''; public $error='';
/** /**
* @var DoliDB Database handler. * @var DoliDB Database handler.
*/ */
public $db; public $db;
/** /**
* @var string ID to identify managed object * @var string ID to identify managed object
*/ */
public $element='bank'; public $element='bank';
/** /**
* @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='bank'; public $table_element='bank';
var $picto = 'generic'; var $picto = 'generic';
/** /**
* @var int ID * @var int ID
*/ */
public $id; public $id;
var $ref; /**
* @var string Ref
*/
public $ref;
var $datec; var $datec;
var $dateo; var $dateo;
@ -1677,12 +1681,12 @@ class AccountLine extends CommonObject
*/ */
var $datev; var $datev;
var $amount; var $amount;
/** /**
* @var string proper name for given parameter * @var string proper name for given parameter
*/ */
public $label; public $label;
var $note; var $note;
var $fk_user_author; var $fk_user_author;
var $fk_user_rappro; var $fk_user_rappro;

View File

@ -34,20 +34,24 @@ class PaymentVarious extends CommonObject
* @var string ID to identify managed object * @var string ID to identify managed object
*/ */
public $element='variouspayment'; public $element='variouspayment';
/** /**
* @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='payment_various'; public $table_element='payment_various';
public $picto = 'bill'; public $picto = 'bill';
/** /**
* @var int ID * @var int ID
*/ */
public $id; public $id;
var $ref; /**
* @var string Ref
*/
public $ref;
var $tms; var $tms;
var $datep; var $datep;
var $datev; var $datev;
@ -55,12 +59,12 @@ class PaymentVarious extends CommonObject
var $amount; var $amount;
var $type_payment; var $type_payment;
var $num_payment; var $num_payment;
/** /**
* @var string proper name for given parameter * @var string proper name for given parameter
*/ */
public $label; public $label;
var $accountancy_code; var $accountancy_code;
var $fk_project; var $fk_project;
var $fk_bank; var $fk_bank;

View File

@ -45,22 +45,22 @@ class Contrat extends CommonObject
* @var string ID to identify managed object * @var string ID to identify managed object
*/ */
public $element='contrat'; public $element='contrat';
/** /**
* @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='contrat'; public $table_element='contrat';
public $table_element_line='contratdet'; public $table_element_line='contratdet';
public $fk_element='fk_contrat'; public $fk_element='fk_contrat';
public $picto='contract'; public $picto='contract';
/** /**
* 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 * @var int
*/ */
public $ismultientitymanaged = 1; public $ismultientitymanaged = 1;
/** /**
* 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user * 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user
* @var integer * @var integer
@ -2465,7 +2465,7 @@ class ContratLigne extends CommonObjectLine
* @var string ID to identify managed object * @var string ID to identify managed object
*/ */
public $element='contratdet'; public $element='contratdet';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored
*/ */
@ -2475,8 +2475,12 @@ class ContratLigne extends CommonObjectLine
* @var int ID * @var int ID
*/ */
public $id; public $id;
var $ref; /**
* @var string Ref
*/
public $ref;
var $tms; var $tms;
var $fk_contrat; var $fk_contrat;

View File

@ -34,12 +34,12 @@ class Notify
* @var int ID * @var int ID
*/ */
public $id; public $id;
/** /**
* @var DoliDB Database handler. * @var DoliDB Database handler.
*/ */
public $db; public $db;
/** /**
* @var string Error code (or message) * @var string Error code (or message)
*/ */
@ -51,7 +51,12 @@ class Notify
public $errors = array(); public $errors = array();
var $author; var $author;
var $ref;
/**
* @var string Ref
*/
public $ref;
var $date; var $date;
var $duree; var $duree;
var $note; var $note;