Update and standardize code

This commit is contained in:
Philippe GRAND 2018-08-22 11:24:31 +02:00
parent a36061079b
commit 0ffad50974
33 changed files with 157 additions and 35 deletions

View File

@ -53,15 +53,18 @@ class AccountingAccount extends CommonObject
/**
* @var string Error code (or message)
*/
public $error='';
public $error='';
/**
* @var string[] Error codes (or messages)
*/
public $errors = array();
var $id;
/**
* @var int ID
*/
public $id;
var $rowid;
var $datec; // Creation date
var $fk_pcg_version;

View File

@ -38,7 +38,11 @@ class Bookmark extends CommonObject
*/
public $db;
var $id;
/**
* @var int ID
*/
public $id;
var $fk_user;
var $datec;
var $url;

View File

@ -38,11 +38,13 @@ class ActionComm extends CommonObject
public $table_element = 'actioncomm';
public $table_rowid = 'id';
public $picto='action';
/**
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
* @var int
*/
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, 2=Same than 1 but accept record if fksoc is empty
* @var integer
@ -53,7 +55,7 @@ class ActionComm extends CommonObject
* Id of the event
* @var int
*/
var $id;
public $id;
/**
* Id of the event. Use $id as possible

View File

@ -38,7 +38,10 @@ class CActionComm
*/
public $db;
var $id;
/**
* @var int ID
*/
public $id;
var $code;
var $type;

View File

@ -46,7 +46,10 @@ class AdvanceTargetingMailing extends CommonObject
var $element='advtargetemailing'; //!< Id that identify managed objects
var $table_element='advtargetemailing'; //!< Name of table without prefix where object is stored
var $id;
/**
* @var int ID
*/
public $id;
var $name;
var $entity;

View File

@ -1647,7 +1647,11 @@ class AccountLine extends CommonObject
var $table_element='bank';
var $picto = 'generic';
var $id;
/**
* @var int ID
*/
public $id;
var $ref;
var $datec;
var $dateo;

View File

@ -34,7 +34,11 @@ class PaymentVarious extends CommonObject
public $table_element='payment_various'; //!< Name of table without prefix where object is stored
public $picto = 'bill';
var $id;
/**
* @var int ID
*/
public $id;
var $ref;
var $tms;
var $datep;

View File

@ -47,7 +47,10 @@ class PaymentTerm // extends CommonObject
//public $table_element='c_payment_term'; //!< Name of table without prefix where object is stored
var $context =array();
var $id;
/**
* @var int ID
*/
public $id;
var $code;
var $sortorder;

View File

@ -31,7 +31,10 @@
*/
class LignePrelevement
{
var $id;
/**
* @var int ID
*/
public $id;
/**
* @var DoliDB Database handler.

View File

@ -30,7 +30,10 @@
*/
class RejetPrelevement
{
var $id;
/**
* @var int ID
*/
public $id;
/**
* @var DoliDB Database handler.

View File

@ -2454,7 +2454,11 @@ class ContratLigne extends CommonObjectLine
public $element='contratdet';
public $table_element='contratdet';
var $id;
/**
* @var int ID
*/
public $id;
var $ref;
var $tms;

View File

@ -50,7 +50,11 @@ class Ccountry // extends CommonObject
//var $element='ccountry'; //!< Id that identify managed objects
//var $table_element='ccountry'; //!< Name of table without prefix where object is stored
var $id;
/**
* @var int ID
*/
public $id;
var $code;
var $code_iso;
var $label;

View File

@ -50,7 +50,11 @@ class Cstate // extends CommonObject
//var $element='cstate'; //!< Id that identify managed objects
//var $table_element='cstate'; //!< Name of table without prefix where object is stored
var $id;
/**
* @var int ID
*/
public $id;
var $code_departement;
var $nom;
var $active;

View File

@ -45,7 +45,11 @@ class Ctypent // extends CommonObject
//var $element='ctypent'; //!< Id that identify managed objects
//var $table_element='ctypent'; //!< Name of table without prefix where object is stored
var $id;
/**
* @var int ID
*/
public $id;
var $code;
var $libelle;
var $active;

View File

@ -37,7 +37,10 @@ class Events // extends CommonObject
public $element='events'; //!< Id that identify managed objects
public $table_element='events'; //!< Name of table without prefix where object is stored
var $id;
/**
* @var int ID
*/
public $id;
/**
* @var DoliDB Database handler.

View File

@ -30,7 +30,10 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/CMailFile.class.php';
*/
class Notify
{
var $id;
/**
* @var int ID
*/
public $id;
/**
* @var DoliDB Database handler.

View File

@ -30,7 +30,11 @@ require_once DOL_DOCUMENT_ROOT .'/core/modules/export/modules_export.php';
*/
class ExportCsv extends ModeleExports
{
var $id;
/**
* @var int ID
*/
public $id;
var $label;
var $extension;
var $version;

View File

@ -32,7 +32,11 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
*/
class ExportExcel extends ModeleExports
{
var $id;
/**
* @var int ID
*/
public $id;
var $label;
var $extension;
var $version;

View File

@ -33,7 +33,11 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
*/
class ExportExcel2007 extends ExportExcel
{
var $id;
/**
* @var int ID
*/
public $id;
var $label;
var $extension;
var $version;

View File

@ -31,7 +31,11 @@ require_once DOL_DOCUMENT_ROOT .'/core/modules/export/modules_export.php';
*/
class ExportTsv extends ModeleExports
{
var $id;
/**
* @var int ID
*/
public $id;
var $label;
var $extension;
var $version;

View File

@ -51,7 +51,11 @@ class ImportCsv extends ModeleImports
*/
public $errors = array ();
var $id; // Id of driver
/**
* @var int ID
*/
public $id;
var $label; // Label of driver
var $extension; // Extension of files imported by driver
var $version; // Version of driver

View File

@ -50,7 +50,11 @@ class ImportXlsx extends ModeleImports
*/
public $errors = array();
var $id; // Id of driver
/**
* @var int ID
*/
public $id;
var $label; // Label of driver
var $extension; // Extension of files imported by driver
var $version; // Version of driver

View File

@ -31,7 +31,11 @@ require_once DOL_DOCUMENT_ROOT .'/core/modules/security/generate/modules_genpass
*/
class modGeneratePassNone extends ModeleGenPassword
{
var $id;
/**
* @var int ID
*/
public $id;
var $length;
/**

View File

@ -33,7 +33,11 @@ require_once DOL_DOCUMENT_ROOT .'/core/modules/security/generate/modules_genpass
*/
class modGeneratePassPerso extends ModeleGenPassword
{
var $id;
/**
* @var int ID
*/
public $id;
var $length;
var $length2; // didn't overright display
var $NbMaj;

View File

@ -31,7 +31,11 @@ require_once DOL_DOCUMENT_ROOT .'/core/modules/security/generate/modules_genpass
*/
class modGeneratePassStandard extends ModeleGenPassword
{
var $id;
/**
* @var int ID
*/
public $id;
var $length;
/**

View File

@ -31,7 +31,10 @@ class EcmDirectory // extends CommonObject
//public $table_element='ecm_directories'; //!< Name of table without prefix where object is stored
var $picto = 'dir';
var $id;
/**
* @var int ID
*/
public $id;
var $label;
var $fk_parent;

View File

@ -49,7 +49,11 @@ class ProductFournisseur extends Product
var $product_fourn_price_id; // id of ligne product-supplier
var $id; // product id
/**
* @var int ID
*/
public $id;
/**
* @deprecated
* @see ref_supplier

View File

@ -950,7 +950,11 @@ class Productcustomerprice extends CommonObject
*/
class PriceByCustomerLine
{
var $id;
/**
* @var int ID
*/
public $id;
var $entity;
var $datec = '';
var $tms = '';

View File

@ -636,7 +636,10 @@ class Propalmergepdfproduct extends CommonObject
*/
class PropalmergepdfproductLine
{
var $id;
/**
* @var int ID
*/
public $id;
var $fk_product;
var $file_name;

View File

@ -44,7 +44,11 @@ class PriceExpression
*/
public $errors = array();
var $id;
/**
* @var int ID
*/
public $id;
var $title;
var $expression;
public $table_element = "c_price_expression";

View File

@ -44,7 +44,11 @@ class PriceGlobalVariable
*/
public $errors = array();
var $id;
/**
* @var int ID
*/
public $id;
var $code;
var $description;
var $value;

View File

@ -46,7 +46,12 @@ class PriceGlobalVariableUpdater
var $types=array(0, 1); //!< Updater types
var $update_min = 5; //!< Minimal update rate
var $id;
/**
* @var int ID
*/
public $id;
var $type;
var $description;
var $parameters;

View File

@ -2653,7 +2653,12 @@ class SupplierProposalLine extends CommonObjectLine
// From llx_supplier_proposaldet
var $rowid; // deprecated
var $id;
/**
* @var int ID
*/
public $id;
var $fk_supplier_proposal;
var $fk_parent_line;
var $desc; // Description ligne