diff --git a/htdocs/comm/mailing/class/advtargetemailing.class.php b/htdocs/comm/mailing/class/advtargetemailing.class.php index e6111038742..b36e0463b9e 100644 --- a/htdocs/comm/mailing/class/advtargetemailing.class.php +++ b/htdocs/comm/mailing/class/advtargetemailing.class.php @@ -43,7 +43,11 @@ class AdvanceTargetingMailing extends CommonObject */ public $errors = array(); - var $element='advtargetemailing'; //!< Id that identify managed objects + /** + * @var string ID to identify managed object + */ + public $element='advtargetemailing'; + var $table_element='advtargetemailing'; //!< Name of table without prefix where object is stored /** diff --git a/htdocs/compta/bank/class/account.class.php b/htdocs/compta/bank/class/account.class.php index 28eb0a94443..a62592aaf2e 100644 --- a/htdocs/compta/bank/class/account.class.php +++ b/htdocs/compta/bank/class/account.class.php @@ -1643,7 +1643,11 @@ class AccountLine extends CommonObject */ public $db; - var $element='bank'; + /** + * @var string ID to identify managed object + */ + public $element='bank'; + var $table_element='bank'; var $picto = 'generic'; diff --git a/htdocs/expedition/class/expeditionbatch.class.php b/htdocs/expedition/class/expeditionbatch.class.php index d94baee2a43..540b584590b 100644 --- a/htdocs/expedition/class/expeditionbatch.class.php +++ b/htdocs/expedition/class/expeditionbatch.class.php @@ -28,7 +28,11 @@ */ class ExpeditionLineBatch extends CommonObject { - var $element='expeditionlignebatch'; //!< Id that identify managed objects + /** + * @var string ID to identify managed object + */ + public $element='expeditionlignebatch'; + private static $_table_element='expeditiondet_batch'; //!< Name of table without prefix where object is stored var $sellby; diff --git a/htdocs/expensereport/class/expensereport.class.php b/htdocs/expensereport/class/expensereport.class.php index 821590365d8..5e9d11c9c86 100644 --- a/htdocs/expensereport/class/expensereport.class.php +++ b/htdocs/expensereport/class/expensereport.class.php @@ -33,7 +33,11 @@ require_once DOL_DOCUMENT_ROOT .'/expensereport/class/expensereport_rule.class.p */ class ExpenseReport extends CommonObject { - var $element='expensereport'; + /** + * @var string ID to identify managed object + */ + public $element='expensereport'; + var $table_element='expensereport'; var $table_element_line = 'expensereport_det'; var $fk_element = 'fk_expensereport'; diff --git a/htdocs/product/class/productbatch.class.php b/htdocs/product/class/productbatch.class.php index b52514a4195..4533013d6b6 100644 --- a/htdocs/product/class/productbatch.class.php +++ b/htdocs/product/class/productbatch.class.php @@ -30,7 +30,11 @@ require_once DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php"; */ class Productbatch extends CommonObject { - var $element='productbatch'; //!< Id that identify managed objects + /** + * @var string ID to identify managed object + */ + public $element='productbatch'; + private static $_table_element='product_batch'; //!< Name of table without prefix where object is stored var $tms=''; diff --git a/htdocs/product/class/productcustomerprice.class.php b/htdocs/product/class/productcustomerprice.class.php index 37c945e3e62..3c281ee88b7 100644 --- a/htdocs/product/class/productcustomerprice.class.php +++ b/htdocs/product/class/productcustomerprice.class.php @@ -28,7 +28,11 @@ require_once DOL_DOCUMENT_ROOT . '/core/class/commonobject.class.php'; */ class Productcustomerprice extends CommonObject { - var $element = 'product_customer_price'; // !< Id that identify managed objects + /** + * @var string ID to identify managed object + */ + public $element = 'product_customer_price'; + var $table_element = 'product_customer_price'; // !< Name of table without prefix where object is stored var $entity; var $datec = ''; diff --git a/htdocs/product/class/propalmergepdfproduct.class.php b/htdocs/product/class/propalmergepdfproduct.class.php index d69efd3b14d..2894cfff60b 100644 --- a/htdocs/product/class/propalmergepdfproduct.class.php +++ b/htdocs/product/class/propalmergepdfproduct.class.php @@ -31,7 +31,11 @@ require_once DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php"; */ class Propalmergepdfproduct extends CommonObject { - var $element='propal_merge_pdf_product'; //!< Id that identify managed objects + /** + * @var string ID to identify managed object + */ + public $element='propal_merge_pdf_product'; + var $table_element='propal_merge_pdf_product'; //!< Name of table without prefix where object is stored var $fk_product;