Update and standardize code

This commit is contained in:
Philippe GRAND 2018-08-22 11:48:26 +02:00
parent 95349365ba
commit e0462b975b
7 changed files with 35 additions and 7 deletions

View File

@ -43,7 +43,11 @@ class AdvanceTargetingMailing extends CommonObject
*/ */
public $errors = array(); 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 var $table_element='advtargetemailing'; //!< Name of table without prefix where object is stored
/** /**

View File

@ -1643,7 +1643,11 @@ class AccountLine extends CommonObject
*/ */
public $db; public $db;
var $element='bank'; /**
* @var string ID to identify managed object
*/
public $element='bank';
var $table_element='bank'; var $table_element='bank';
var $picto = 'generic'; var $picto = 'generic';

View File

@ -28,7 +28,11 @@
*/ */
class ExpeditionLineBatch extends CommonObject 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 private static $_table_element='expeditiondet_batch'; //!< Name of table without prefix where object is stored
var $sellby; var $sellby;

View File

@ -33,7 +33,11 @@ require_once DOL_DOCUMENT_ROOT .'/expensereport/class/expensereport_rule.class.p
*/ */
class ExpenseReport extends CommonObject class ExpenseReport extends CommonObject
{ {
var $element='expensereport'; /**
* @var string ID to identify managed object
*/
public $element='expensereport';
var $table_element='expensereport'; var $table_element='expensereport';
var $table_element_line = 'expensereport_det'; var $table_element_line = 'expensereport_det';
var $fk_element = 'fk_expensereport'; var $fk_element = 'fk_expensereport';

View File

@ -30,7 +30,11 @@ require_once DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php";
*/ */
class Productbatch extends CommonObject 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 private static $_table_element='product_batch'; //!< Name of table without prefix where object is stored
var $tms=''; var $tms='';

View File

@ -28,7 +28,11 @@ require_once DOL_DOCUMENT_ROOT . '/core/class/commonobject.class.php';
*/ */
class Productcustomerprice extends CommonObject 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 $table_element = 'product_customer_price'; // !< Name of table without prefix where object is stored
var $entity; var $entity;
var $datec = ''; var $datec = '';

View File

@ -31,7 +31,11 @@ require_once DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php";
*/ */
class Propalmergepdfproduct extends CommonObject 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 $table_element='propal_merge_pdf_product'; //!< Name of table without prefix where object is stored
var $fk_product; var $fk_product;