Standardize and update code

This commit is contained in:
Philippe GRAND 2018-08-23 18:35:45 +02:00
parent 215677c972
commit 87067b2bc9
21 changed files with 92 additions and 11 deletions

View File

@ -34,7 +34,10 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
*/ */
class Don extends CommonObject class Don extends CommonObject
{ {
public $element='don'; // Id that identify managed objects /**
* @var string ID to identify managed object
*/
public $element='don';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored

View File

@ -29,7 +29,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
*/ */
class PaymentDonation extends CommonObject class PaymentDonation extends CommonObject
{ {
public $element='payment_donation'; //!< Id that identify managed objects /**
* @var string ID to identify managed object
*/
public $element='payment_donation';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored

View File

@ -27,7 +27,10 @@
*/ */
class EcmDirectory // extends CommonObject class EcmDirectory // extends CommonObject
{ {
public $element='ecm_directories'; //!< Id that identify managed objects /**
* @var string ID to identify managed object
*/
public $element='ecm_directories';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored

View File

@ -44,7 +44,11 @@ if (! empty($conf->productbatch->enabled)) require_once DOL_DOCUMENT_ROOT.'/expe
*/ */
class Expedition extends CommonObject class Expedition extends CommonObject
{ {
/**
* @var string ID to identify managed object
*/
public $element="shipping"; public $element="shipping";
public $fk_element="fk_expedition"; public $fk_element="fk_expedition";
/** /**
@ -2272,6 +2276,9 @@ class Expedition extends CommonObject
*/ */
class ExpeditionLigne extends CommonObjectLine class ExpeditionLigne extends CommonObjectLine
{ {
/**
* @var string ID to identify managed object
*/
public $element='expeditiondet'; public $element='expeditiondet';
/** /**

View File

@ -29,6 +29,9 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/coreobject.class.php';
*/ */
class ExpenseReportIk extends CoreObject class ExpenseReportIk extends CoreObject
{ {
/**
* @var string ID to identify managed object
*/
public $element='expenseik'; public $element='expenseik';
/** /**

View File

@ -29,6 +29,9 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/coreobject.class.php';
*/ */
class ExpenseReportRule extends CoreObject class ExpenseReportRule extends CoreObject
{ {
/**
* @var string ID to identify managed object
*/
public $element='expenserule'; public $element='expenserule';
/** /**

View File

@ -30,7 +30,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
*/ */
class PaymentExpenseReport extends CommonObject class PaymentExpenseReport extends CommonObject
{ {
public $element='payment_expensereport'; //!< Id that identify managed objects /**
* @var string ID to identify managed object
*/
public $element='payment_expensereport';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored

View File

@ -35,6 +35,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobjectline.class.php';
*/ */
class Fichinter extends CommonObject class Fichinter extends CommonObject
{ {
/**
* @var string ID to identify managed object
*/
public $element='fichinter'; public $element='fichinter';
/** /**
@ -1331,6 +1334,9 @@ class FichinterLigne extends CommonObjectLine
var $duration; // Duree de l'intervention var $duration; // Duree de l'intervention
var $rang = 0; var $rang = 0;
/**
* @var string ID to identify managed object
*/
public $element='fichinterdet'; public $element='fichinterdet';
/** /**

View File

@ -40,6 +40,9 @@ require_once DOL_DOCUMENT_ROOT.'/multicurrency/class/multicurrency.class.php';
*/ */
class CommandeFournisseur extends CommonOrder class CommandeFournisseur extends CommonOrder
{ {
/**
* @var string ID to identify managed object
*/
public $element='order_supplier'; public $element='order_supplier';
/** /**
@ -3092,6 +3095,9 @@ class CommandeFournisseur extends CommonOrder
*/ */
class CommandeFournisseurLigne extends CommonOrderLine class CommandeFournisseurLigne extends CommonOrderLine
{ {
/**
* @var string ID to identify managed object
*/
public $element='commande_fournisseurdet'; public $element='commande_fournisseurdet';
/** /**

View File

@ -49,7 +49,10 @@ class CommandeFournisseurDispatch extends CommonObject
*/ */
public $errors = array(); public $errors = array();
public $element='commandefournisseurdispatch'; //!< Id that identify managed objects /**
* @var string ID to identify managed object
*/
public $element='commandefournisseurdispatch';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored

View File

@ -41,6 +41,9 @@ require_once DOL_DOCUMENT_ROOT.'/multicurrency/class/multicurrency.class.php';
*/ */
class FactureFournisseur extends CommonInvoice class FactureFournisseur extends CommonInvoice
{ {
/**
* @var string ID to identify managed object
*/
public $element='invoice_supplier'; public $element='invoice_supplier';
/** /**
@ -2565,6 +2568,9 @@ class FactureFournisseur extends CommonInvoice
*/ */
class SupplierInvoiceLine extends CommonObjectLine class SupplierInvoiceLine extends CommonObjectLine
{ {
/**
* @var string ID to identify managed object
*/
public $element='facture_fourn_det'; public $element='facture_fourn_det';
/** /**

View File

@ -35,6 +35,9 @@ require_once DOL_DOCUMENT_ROOT.'/multicurrency/class/multicurrency.class.php';
*/ */
class PaiementFourn extends Paiement class PaiementFourn extends Paiement
{ {
/**
* @var string ID to identify managed object
*/
public $element='payment_supplier'; public $element='payment_supplier';
/** /**

View File

@ -32,6 +32,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
*/ */
class Holiday extends CommonObject class Holiday extends CommonObject
{ {
/**
* @var string ID to identify managed object
*/
public $element='holiday'; public $element='holiday';
/** /**

View File

@ -28,6 +28,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
*/ */
class Establishment extends CommonObject class Establishment extends CommonObject
{ {
/**
* @var string ID to identify managed object
*/
public $element='establishment'; public $element='establishment';
/** /**

View File

@ -39,7 +39,11 @@ if (! empty($conf->commande->enabled)) require_once DOL_DOCUMENT_ROOT.'/commande
*/ */
class Livraison extends CommonObject class Livraison extends CommonObject
{ {
/**
* @var string ID to identify managed object
*/
public $element="delivery"; public $element="delivery";
public $fk_element="fk_livraison"; public $fk_element="fk_livraison";
/** /**
@ -1095,6 +1099,9 @@ class LivraisonLigne extends CommonObjectLine
public $product_ref; public $product_ref;
public $product_label; public $product_label;
/**
* @var string ID to identify managed object
*/
public $element='livraisondet'; public $element='livraisondet';
/** /**

View File

@ -29,7 +29,11 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
*/ */
class Loan extends CommonObject class Loan extends CommonObject
{ {
/**
* @var string ID to identify managed object
*/
public $element='loan'; public $element='loan';
public $table='loan'; public $table='loan';
/** /**

View File

@ -29,7 +29,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
*/ */
class LoanSchedule extends CommonObject class LoanSchedule extends CommonObject
{ {
public $element='loan_schedule'; //!< Id that identify managed objects /**
* @var string ID to identify managed object
*/
public $element='loan_schedule';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored

View File

@ -30,7 +30,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
*/ */
class PaymentLoan extends CommonObject class PaymentLoan extends CommonObject
{ {
public $element='payment_loan'; //!< Id that identify managed objects /**
* @var string ID to identify managed object
*/
public $element='payment_loan';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored

View File

@ -34,7 +34,10 @@ require_once DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php";
*/ */
class Opensurveysondage extends CommonObject class Opensurveysondage extends CommonObject
{ {
public $element='opensurvey_sondage'; //!< Id that identify managed objects /**
* @var string ID to identify managed object
*/
public $element='opensurvey_sondage';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored

View File

@ -43,6 +43,9 @@ require_once DOL_DOCUMENT_ROOT.'/product/stock/class/entrepot.class.php';
*/ */
class Product extends CommonObject class Product extends CommonObject
{ {
/**
* @var string ID to identify managed object
*/
public $element='product'; public $element='product';
/** /**

View File

@ -33,6 +33,9 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
*/ */
class Entrepot extends CommonObject class Entrepot extends CommonObject
{ {
/**
* @var string ID to identify managed object
*/
public $element='stock'; public $element='stock';
/** /**