Fix warnings

This commit is contained in:
Laurent Destailleur 2023-01-03 13:03:27 +01:00
parent 7fd82ccc45
commit 3e36e9831e
7 changed files with 22 additions and 174 deletions

View File

@ -115,9 +115,6 @@ if ($action == 'set') {
// Check configuration
foreach ($activeModules as $modulename) {
/**
* @var LogHandler
*/
$module = new $modulename;
$error = $module->checkConfiguration();
}

View File

@ -468,8 +468,4 @@ class CtyperesourceLine
public $label;
public $active;
/**
* @var mixed Sample line property 2
*/
}

View File

@ -57,11 +57,19 @@ class StockTransfer extends CommonObject
*/
public $isextrafieldmanaged = 1;
/**
* @var string Customer ref
* @deprecated
* @see $ref_customer
*/
* @var array List of child tables. To know object to delete on cascade.
* If name matches '@ClassNAme:FilePathClass;ParentFkFieldName' it will
* call method deleteByParentField(parentId, ParentFkFieldName) to fetch and delete child object
*/
protected $childtablesoncascade = array('stocktransfer_stocktransferline');
/**
* @var string Customer ref
* @deprecated
* @see $ref_customer
*/
public $ref_client;
/**
@ -162,42 +170,6 @@ class StockTransfer extends CommonObject
// END MODULEBUILDER PROPERTIES
// If this object has a subtable with lines
/**
* @var int Name of subtable line
*/
public $table_element_line = 'stocktransfer_stocktransferline';
/**
* @var int Field with ID of parent key if this object has a parent
*/
public $fk_element = 'fk_stocktransfer';
/**
* @var int Name of subtable class that manage subtable lines
*/
//public $class_element_line = 'StockTransferline';
/**
* @var array List of child tables. To test if we can delete object.
*/
//protected $childtables = array();
/**
* @var array List of child tables. To know object to delete on cascade.
* If name matches '@ClassNAme:FilePathClass;ParentFkFieldName' it will
* call method deleteByParentField(parentId, ParentFkFieldName) to fetch and delete child object
*/
protected $childtablesoncascade = array('stocktransfer_stocktransferline');
/**
* @var StockTransferLine[] Array of subtable lines
*/
//public $lines = array();
/**
* Constructor
*

View File

@ -117,42 +117,6 @@ class StockTransferLine extends CommonObjectLine
// END MODULEBUILDER PROPERTIES
// If this object has a subtable with lines
/**
* @var int Name of subtable line
*/
//public $table_element_line = 'stocktransfer_stocktransferlineline';
/**
* @var int Field with ID of parent key if this object has a parent
*/
//public $fk_element = 'fk_stocktransferline';
/**
* @var int Name of subtable class that manage subtable lines
*/
//public $class_element_line = 'StockTransferLineline';
/**
* @var array List of child tables. To test if we can delete object.
*/
//protected $childtables = array();
/**
* @var array List of child tables. To know object to delete on cascade.
* If name matches '@ClassNAme:FilePathClass;ParentFkFieldName' it will
* call method deleteByParentField(parentId, ParentFkFieldName) to fetch and delete child object
*/
//protected $childtablesoncascade = array('stocktransfer_stocktransferlinedet');
/**
* @var StockTransferLineLine[] Array of subtable lines
*/
//public $lines = array();
/**
* Constructor
*

View File

@ -195,32 +195,6 @@ class CompanyPaymentMode extends CommonObject
// END MODULEBUILDER PROPERTIES
// If this object has a subtable with lines
/**
* @var string Name of subtable line
*/
//public $table_element_line = 'companypaymentmodedet';
/**
* @var string Field with ID of parent key if this field has a parent
*/
//public $fk_element = 'fk_companypaymentmode';
/**
* @var string Name of subtable class that manage subtable lines
*/
//public $class_element_line = 'CompanyPaymentModeline';
/**
* @var array List of child tables. To test if we can delete object.
*/
//protected $childtables=array();
/**
* @var CompanyPaymentModeLine[] Array of subtable lines
*/
//public $lines = array();
/**
* Constructor
*

View File

@ -50,6 +50,16 @@ class WebsitePage extends CommonObject
*/
public $picto = 'file-code';
/**
* @var string Field with ID of parent key if this field has a parent or for child tables
*/
public $fk_element = 'fk_website_page';
/**
* @var array List of child tables. To know object to delete on cascade.
*/
protected $childtablesoncascade = array('categorie_website_page');
/**
* @var int ID
@ -181,35 +191,6 @@ class WebsitePage extends CommonObject
// END MODULEBUILDER PROPERTIES
// If this object has a subtable with lines
// /**
// * @var string Name of subtable line
// */
//public $table_element_line = 'mymodule_myobjectline';
/**
* @var string Field with ID of parent key if this field has a parent or for child tables
*/
public $fk_element = 'fk_website_page';
// /**
// * @var string Name of subtable class that manage subtable lines
// */
//public $class_element_line = 'MyObjectline';
/**
* @var array List of child tables. To test if we can delete object.
*/
//protected $childtables=array();
/**
* @var array List of child tables. To know object to delete on cascade.
*/
protected $childtablesoncascade = array('categorie_website_page');
/**
* Constructor
*

View File

@ -132,42 +132,6 @@ class Workstation extends CommonObject
// END MODULEBUILDER PROPERTIES
// If this object has a subtable with lines
/**
* @var int Name of subtable line
*/
//public $table_element_line = 'workstation_workstationline';
/**
* @var int Field with ID of parent key if this object has a parent
*/
//public $fk_element = 'fk_workstation';
/**
* @var int Name of subtable class that manage subtable lines
*/
//public $class_element_line = 'Workstationline';
/**
* @var array List of child tables. To test if we can delete object.
*/
//protected $childtables = array();
/**
* @var array List of child tables. To know object to delete on cascade.
* If name matches '@ClassNAme:FilePathClass;ParentFkFieldName' it will
* call method deleteByParentField(parentId, ParentFkFieldName) to fetch and delete child object
*/
//protected $childtablesoncascade = array('workstation_workstationdet');
/**
* @var WorkstationLine[] Array of subtable lines
*/
//public $lines = array();
/**
* Constructor
*