Standardize and update code

This commit is contained in:
Philippe GRAND 2018-08-31 19:26:08 +02:00
parent bb05e80a87
commit 3a8bde227b
20 changed files with 144 additions and 52 deletions

View File

@ -111,7 +111,12 @@ class Asset extends CommonObject
public $amount; public $amount;
public $fk_soc; public $fk_soc;
/**
* @var string description
*/
public $description; public $description;
public $note_public; public $note_public;
public $note_private; public $note_private;
public $date_creation; public $date_creation;

View File

@ -152,20 +152,24 @@ class Categorie extends CommonObject
* @var string ID to identify managed object * @var string ID to identify managed object
*/ */
public $element='category'; public $element='category';
/** /**
* @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='categorie'; public $table_element='categorie';
public $fk_parent; public $fk_parent;
/** /**
* @var string proper name for given parameter * @var string proper name for given parameter
*/ */
public $label; public $label;
/**
* @var string description
*/
public $description; public $description;
/** /**
* @var string Color * @var string Color
*/ */

View File

@ -2498,7 +2498,10 @@ class ContratLigne extends CommonObjectLine
*/ */
public $libelle; public $libelle;
var $description; /**
* @var string description
*/
public $description;
var $product_ref; var $product_ref;
var $product_label; var $product_label;

View File

@ -34,6 +34,9 @@ class Comment extends CommonObject
public $fk_element; public $fk_element;
public $element_type; public $element_type;
/**
* @var string description
*/
public $description; public $description;
public $tms; public $tms;

View File

@ -51,7 +51,11 @@ class DiscountAbsolute
*/ */
public $fk_user; public $fk_user;
public $description; // Description libre /**
* @var string description
*/
public $description;
public $datec; // Date creation public $datec; // Date creation
public $fk_facture_line; // Id invoice line when a discount is used into an invoice line (for absolute discounts) public $fk_facture_line; // Id invoice line when a discount is used into an invoice line (for absolute discounts)
public $fk_facture; // Id invoice when a discount line is used into an invoice (for credit note) public $fk_facture; // Id invoice when a discount line is used into an invoice (for credit note)

View File

@ -63,7 +63,11 @@ class Events // extends CommonObject
var $type; var $type;
var $entity; var $entity;
var $dateevent; var $dateevent;
var $description;
/**
* @var string description
*/
public $description;
// List of all Audit/Security events supported by triggers // List of all Audit/Security events supported by triggers
var $eventstolog=array( var $eventstolog=array(

View File

@ -39,8 +39,12 @@ class CommActionRapport
* @var DoliDB Database handler. * @var DoliDB Database handler.
*/ */
public $db; public $db;
var $description; /**
* @var string description
*/
public $description;
var $date_edition; var $date_edition;
var $year; var $year;
var $month; var $month;
@ -103,7 +107,7 @@ class CommActionRapport
if (! is_object($outputlangs)) $outputlangs=$langs; if (! is_object($outputlangs)) $outputlangs=$langs;
// For backward compatibility with FPDF, force output charset to ISO, because FPDF expect text to be encoded in ISO // For backward compatibility with FPDF, force output charset to ISO, because FPDF expect text to be encoded in ISO
if (! empty($conf->global->MAIN_USE_FPDF)) $outputlangs->charset_output='ISO-8859-1'; if (! empty($conf->global->MAIN_USE_FPDF)) $outputlangs->charset_output='ISO-8859-1';
// Load traductions files requiredby by page // Load traductions files requiredby by page
$outputlangs->loadLangs(array("main", "dict", "companies", "bills", "products")); $outputlangs->loadLangs(array("main", "dict", "companies", "bills", "products"));

View File

@ -50,7 +50,12 @@ class EcmDirectory // extends CommonObject
public $label; public $label;
var $fk_parent; var $fk_parent;
var $description;
/**
* @var string description
*/
public $description;
var $cachenbofdoc=-1; // By default cache initialized with value 'not calculated' var $cachenbofdoc=-1; // By default cache initialized with value 'not calculated'
var $date_c; var $date_c;
var $date_m; var $date_m;

View File

@ -64,7 +64,12 @@ class EcmFiles extends CommonObject
public $filename; public $filename;
public $filepath; public $filepath;
public $fullpath_orig; public $fullpath_orig;
/**
* @var string description
*/
public $description; public $description;
public $keywords; public $keywords;
public $cover; public $cover;
public $position; public $position;
@ -848,7 +853,12 @@ class EcmfilesLine
public $filename; public $filename;
public $filepath; public $filepath;
public $fullpath_orig; public $fullpath_orig;
/**
* @var string description
*/
public $description; public $description;
public $keywords; public $keywords;
public $cover; public $cover;
public $position; public $position;

View File

@ -39,12 +39,12 @@ class Fichinter extends CommonObject
* @var string ID to identify managed object * @var string ID to identify managed object
*/ */
public $element='fichinter'; public $element='fichinter';
/** /**
* @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='fichinter'; public $table_element='fichinter';
public $fk_element='fk_fichinter'; public $fk_element='fk_fichinter';
public $table_element_line='fichinterdet'; public $table_element_line='fichinterdet';
public $picto = 'intervention'; public $picto = 'intervention';
@ -65,7 +65,12 @@ class Fichinter extends CommonObject
var $datem; var $datem;
var $duration; var $duration;
var $statut = 0; // 0=draft, 1=validated, 2=invoiced, 3=Terminate var $statut = 0; // 0=draft, 1=validated, 2=invoiced, 3=Terminate
var $description;
/**
* @var string description
*/
public $description;
var $fk_contrat = 0; var $fk_contrat = 0;
var $fk_project = 0; var $fk_project = 0;
var $extraparams=array(); var $extraparams=array();
@ -1321,7 +1326,7 @@ class FichinterLigne extends CommonObjectLine
* @var DoliDB Database handler. * @var DoliDB Database handler.
*/ */
public $db; public $db;
/** /**
* @var string Error code (or message) * @var string Error code (or message)
*/ */
@ -1338,12 +1343,12 @@ class FichinterLigne extends CommonObjectLine
* @var string ID to identify managed object * @var string ID to identify managed object
*/ */
public $element='fichinterdet'; public $element='fichinterdet';
/** /**
* @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='fichinterdet'; public $table_element='fichinterdet';
public $fk_element='fk_fichinter'; public $fk_element='fk_fichinter';
/** /**

View File

@ -58,7 +58,12 @@ class Holiday extends CommonObject
public $fk_user; public $fk_user;
var $date_create=''; var $date_create='';
var $description;
/**
* @var string description
*/
public $description;
var $date_debut=''; // Date start in PHP server TZ var $date_debut=''; // Date start in PHP server TZ
var $date_fin=''; // Date end in PHP server TZ var $date_fin=''; // Date end in PHP server TZ
var $date_debut_gmt=''; // Date start in GMT var $date_debut_gmt=''; // Date start in GMT

View File

@ -43,14 +43,14 @@ class Livraison extends CommonObject
* @var string ID to identify managed object * @var string ID to identify managed object
*/ */
public $element="delivery"; public $element="delivery";
public $fk_element="fk_livraison"; public $fk_element="fk_livraison";
/** /**
* @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="livraison"; public $table_element="livraison";
public $table_element_line="livraisondet"; public $table_element_line="livraisondet";
var $brouillon; var $brouillon;
@ -1078,13 +1078,17 @@ class LivraisonLigne extends CommonObjectLine
var $price; var $price;
var $fk_product; var $fk_product;
var $origin_id; var $origin_id;
/** /**
* @var string proper name for given parameter * @var string proper name for given parameter
*/ */
public $label; public $label;
var $description; // Description produit /**
* @var string description produit
*/
public $description;
/** /**
* @deprecated * @deprecated
* @see product_ref * @see product_ref
@ -1103,7 +1107,7 @@ class LivraisonLigne extends CommonObjectLine
* @var string ID to identify managed object * @var string ID to identify managed object
*/ */
public $element='livraisondet'; public $element='livraisondet';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored
*/ */

View File

@ -52,6 +52,10 @@ class Opensurveysondage extends CommonObject
* @see description * @see description
*/ */
public $commentaires; public $commentaires;
/**
* @var string description
*/
public $description; public $description;
public $mail_admin; public $mail_admin;

View File

@ -33,26 +33,31 @@ class PriceGlobalVariable
* @var DoliDB Database handler. * @var DoliDB Database handler.
*/ */
public $db; public $db;
/** /**
* @var string Error code (or message) * @var string Error code (or message)
*/ */
public $error=''; public $error='';
/** /**
* @var string[] Error codes (or messages) * @var string[] Error codes (or messages)
*/ */
public $errors = array(); public $errors = array();
/** /**
* @var int ID * @var int ID
*/ */
public $id; public $id;
var $code; var $code;
var $description;
/**
* @var string description
*/
public $description;
var $value; var $value;
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored
*/ */

View File

@ -33,33 +33,38 @@ class PriceGlobalVariableUpdater
* @var DoliDB Database handler. * @var DoliDB Database handler.
*/ */
public $db; public $db;
/** /**
* @var string Error code (or message) * @var string Error code (or message)
*/ */
public $error=''; public $error='';
/** /**
* @var string[] Error codes (or messages) * @var string[] Error codes (or messages)
*/ */
public $errors = array(); public $errors = array();
var $types=array(0, 1); //!< Updater types var $types=array(0, 1); //!< Updater types
var $update_min = 5; //!< Minimal update rate var $update_min = 5; //!< Minimal update rate
/** /**
* @var int ID * @var int ID
*/ */
public $id; public $id;
var $type; var $type;
var $description;
/**
* @var string description
*/
public $description;
var $parameters; var $parameters;
var $fk_variable; var $fk_variable;
var $update_interval; //!< Interval in mins var $update_interval; //!< Interval in mins
var $next_update; //!< Next update timestamp var $next_update; //!< Next update timestamp
var $last_status; var $last_status;
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored
*/ */

View File

@ -37,12 +37,12 @@ class Entrepot extends CommonObject
* @var string ID to identify managed object * @var string ID to identify managed object
*/ */
public $element='stock'; public $element='stock';
/** /**
* @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='entrepot'; public $table_element='entrepot';
public $picto='stock'; public $picto='stock';
/** /**
@ -61,7 +61,12 @@ class Entrepot extends CommonObject
const STATUS_OPEN_INTERNAL = 2; const STATUS_OPEN_INTERNAL = 2;
var $libelle; var $libelle;
var $description;
/**
* @var string description
*/
public $description;
var $statut; var $statut;
var $lieu; var $lieu;
var $address; var $address;

View File

@ -53,7 +53,11 @@ class Project extends CommonObject
*/ */
protected $table_ref_field = 'ref'; protected $table_ref_field = 'ref';
var $description; /**
* @var string description
*/
public $description;
/** /**
* @var string * @var string
* @deprecated * @deprecated

View File

@ -52,7 +52,11 @@ class Task extends CommonObject
*/ */
public $label; public $label;
var $description; /**
* @var string description
*/
public $description;
var $duration_effective; // total of time spent on this task var $duration_effective; // total of time spent on this task
var $planned_workload; var $planned_workload;
var $date_c; var $date_c;

View File

@ -39,21 +39,21 @@ class ActionsTicket
* @var DoliDB Database handler. * @var DoliDB Database handler.
*/ */
public $db; public $db;
public $dao; public $dao;
public $mesg; public $mesg;
/** /**
* @var string Error code (or message) * @var string Error code (or message)
*/ */
public $error; public $error;
/** /**
* @var string[] Error codes (or messages) * @var string[] Error codes (or messages)
*/ */
public $errors = array(); public $errors = array();
//! Numero de l'erreur //! Numero de l'erreur
public $errno = 0; public $errno = 0;
@ -61,7 +61,11 @@ class ActionsTicket
public $template; public $template;
public $label; public $label;
public $description;
/**
* @var string description
*/
public $description;
public $fk_statut; public $fk_statut;
public $fk_soc; public $fk_soc;

View File

@ -39,12 +39,12 @@ class WebsitePage extends CommonObject
* @var string Id to identify managed objects * @var string Id to identify managed objects
*/ */
public $element = 'websitepage'; public $element = 'websitepage';
/** /**
* @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 = 'website_page'; public $table_element = 'website_page';
/** /**
* @var string String with name of icon for websitepage. Must be the part after the 'object_' into object_myobject.png * @var string String with name of icon for websitepage. Must be the part after the 'object_' into object_myobject.png
*/ */
@ -55,7 +55,12 @@ class WebsitePage extends CommonObject
public $aliasalt; public $aliasalt;
public $type_container; public $type_container;
public $title; public $title;
/**
* @var string description
*/
public $description; public $description;
public $keywords; public $keywords;
public $htmlheader; public $htmlheader;
public $content; public $content;