commit
efc3bad7c6
@ -37,7 +37,7 @@ class AccountingJournal extends CommonObject
|
||||
public $table_element = 'accounting_journal';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Fieldname with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = '';
|
||||
|
||||
|
||||
@ -158,28 +158,6 @@ class Asset extends CommonObject
|
||||
*/
|
||||
public $status;
|
||||
|
||||
// If this object has a subtable with lines
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
*/
|
||||
//public $table_element_line = 'assetdet';
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
//public $fk_element = 'fk_asset';
|
||||
/**
|
||||
* @var int Name of subtable class that manage subtable lines
|
||||
*/
|
||||
//public $class_element_line = 'Assetline';
|
||||
/**
|
||||
* @var array List of child tables. To test if we can delete object.
|
||||
*/
|
||||
//protected $childtables=array();
|
||||
/**
|
||||
* @var AssetLine[] Array of subtable lines
|
||||
*/
|
||||
//public $lines = array();
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
||||
@ -183,19 +183,19 @@ class BOM extends CommonObject
|
||||
public $table_element_line = 'bom_bomline';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Fieldname with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_bom';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable class that manage subtable lines
|
||||
* @var string Name of subtable class that manage subtable lines
|
||||
*/
|
||||
public $class_element_line = 'BOMLine';
|
||||
|
||||
/**
|
||||
* @var array List of child tables. To test if we can delete object.
|
||||
*/
|
||||
//protected $childtables=array();
|
||||
// /**
|
||||
// * @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.
|
||||
|
||||
@ -54,7 +54,7 @@ class AdvanceTargetingMailing extends CommonObject
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var int element id
|
||||
* @var int element id (it's not the name of a field)
|
||||
*/
|
||||
public $fk_element;
|
||||
|
||||
|
||||
@ -66,7 +66,7 @@ class Propal extends CommonObject
|
||||
public $table_element_line = 'propaldet';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Fieldname with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_propal';
|
||||
|
||||
|
||||
@ -43,12 +43,12 @@ class Deplacement extends CommonObject
|
||||
public $table_element = 'deplacement';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
public $table_element_line = '';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Fieldname with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = '';
|
||||
|
||||
|
||||
@ -50,12 +50,12 @@ class FactureRec extends CommonInvoice
|
||||
public $table_element = 'facture_rec';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
public $table_element_line = 'facturedet_rec';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_facture';
|
||||
|
||||
|
||||
@ -64,12 +64,12 @@ class Facture extends CommonInvoice
|
||||
public $table_element = 'facture';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
public $table_element_line = 'facturedet';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Fieldname with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_facture';
|
||||
|
||||
|
||||
@ -53,12 +53,12 @@ class Contrat extends CommonObject
|
||||
public $table_element = 'contrat';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
public $table_element_line = 'contratdet';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Fieldname with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_contrat';
|
||||
|
||||
|
||||
@ -32,10 +32,13 @@ class Comment extends CommonObject
|
||||
public $table_element = 'comment';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var int ID of parent key (it's not the name of a field)
|
||||
*/
|
||||
public $fk_element = '';
|
||||
public $fk_element;
|
||||
|
||||
/**
|
||||
* @var string element type
|
||||
*/
|
||||
public $element_type;
|
||||
|
||||
/**
|
||||
@ -72,10 +75,16 @@ class Comment extends CommonObject
|
||||
*/
|
||||
public $entity;
|
||||
|
||||
/**
|
||||
* @var string import key
|
||||
*/
|
||||
public $import_key;
|
||||
|
||||
public $comments = array();
|
||||
|
||||
/**
|
||||
* @var Comment Object oldcopy
|
||||
*/
|
||||
public $oldcopy;
|
||||
|
||||
|
||||
@ -131,26 +140,26 @@ class Comment extends CommonObject
|
||||
|
||||
dol_syslog(get_class($this)."::create", LOG_DEBUG);
|
||||
$resql = $this->db->query($sql);
|
||||
if (!$resql) { $error++; $this->errors[] = "Error ".$this->db->lasterror(); }
|
||||
if (!$resql) {
|
||||
$error++; $this->errors[] = "Error ".$this->db->lasterror();
|
||||
}
|
||||
|
||||
if (!$error)
|
||||
{
|
||||
if (!$error) {
|
||||
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX.$this->table_element);
|
||||
|
||||
if (!$notrigger)
|
||||
{
|
||||
if (!$notrigger) {
|
||||
// Call trigger
|
||||
$result = $this->call_trigger('TASK_COMMENT_CREATE', $user);
|
||||
if ($result < 0) { $error++; }
|
||||
if ($result < 0) {
|
||||
$error++;
|
||||
}
|
||||
// End call triggers
|
||||
}
|
||||
}
|
||||
|
||||
// Commit or rollback
|
||||
if ($error)
|
||||
{
|
||||
foreach ($this->errors as $errmsg)
|
||||
{
|
||||
if ($error) {
|
||||
foreach ($this->errors as $errmsg) {
|
||||
dol_syslog(get_class($this)."::create ".$errmsg, LOG_ERR);
|
||||
$this->error .= ($this->error ? ', '.$errmsg : $errmsg);
|
||||
}
|
||||
@ -190,12 +199,10 @@ class Comment extends CommonObject
|
||||
|
||||
dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
|
||||
$resql = $this->db->query($sql);
|
||||
if ($resql)
|
||||
{
|
||||
if ($resql) {
|
||||
$num_rows = $this->db->num_rows($resql);
|
||||
|
||||
if ($num_rows)
|
||||
{
|
||||
if ($num_rows) {
|
||||
$obj = $this->db->fetch_object($resql);
|
||||
|
||||
$this->id = $obj->rowid;
|
||||
@ -212,8 +219,11 @@ class Comment extends CommonObject
|
||||
|
||||
$this->db->free($resql);
|
||||
|
||||
if ($num_rows) return 1;
|
||||
else return 0;
|
||||
if ($num_rows) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
$this->error = "Error ".$this->db->lasterror();
|
||||
return -1;
|
||||
@ -234,8 +244,12 @@ class Comment extends CommonObject
|
||||
$error = 0;
|
||||
|
||||
// Clean parameters
|
||||
if (isset($this->fk_element)) $this->fk_project = (int) trim($this->fk_element);
|
||||
if (isset($this->description)) $this->description = trim($this->description);
|
||||
if (isset($this->fk_element)) {
|
||||
$this->fk_project = (int) trim($this->fk_element);
|
||||
}
|
||||
if (isset($this->description)) {
|
||||
$this->description = trim($this->description);
|
||||
}
|
||||
|
||||
|
||||
// Update request
|
||||
@ -253,24 +267,24 @@ class Comment extends CommonObject
|
||||
|
||||
dol_syslog(get_class($this)."::update", LOG_DEBUG);
|
||||
$resql = $this->db->query($sql);
|
||||
if (!$resql) { $error++; $this->errors[] = "Error ".$this->db->lasterror(); }
|
||||
if (!$resql) {
|
||||
$error++; $this->errors[] = "Error ".$this->db->lasterror();
|
||||
}
|
||||
|
||||
if (!$error)
|
||||
{
|
||||
if (!$notrigger)
|
||||
{
|
||||
if (!$error) {
|
||||
if (!$notrigger) {
|
||||
// Call trigger
|
||||
$result = $this->call_trigger('TASK_COMMENT_MODIFY', $user);
|
||||
if ($result < 0) { $error++; }
|
||||
if ($result < 0) {
|
||||
$error++;
|
||||
}
|
||||
// End call triggers
|
||||
}
|
||||
}
|
||||
|
||||
// Commit or rollback
|
||||
if ($error)
|
||||
{
|
||||
foreach ($this->errors as $errmsg)
|
||||
{
|
||||
if ($error) {
|
||||
foreach ($this->errors as $errmsg) {
|
||||
dol_syslog(get_class($this)."::update ".$errmsg, LOG_ERR);
|
||||
$this->error .= ($this->error ? ', '.$errmsg : $errmsg);
|
||||
}
|
||||
@ -303,24 +317,24 @@ class Comment extends CommonObject
|
||||
$sql .= " WHERE rowid=".$this->id;
|
||||
|
||||
$resql = $this->db->query($sql);
|
||||
if (!$resql) { $error++; $this->errors[] = "Error ".$this->db->lasterror(); }
|
||||
if (!$resql) {
|
||||
$error++; $this->errors[] = "Error ".$this->db->lasterror();
|
||||
}
|
||||
|
||||
if (!$error)
|
||||
{
|
||||
if (!$notrigger)
|
||||
{
|
||||
if (!$error) {
|
||||
if (!$notrigger) {
|
||||
// Call trigger
|
||||
$result = $this->call_trigger('TASK_COMMENT_DELETE', $user);
|
||||
if ($result < 0) { $error++; }
|
||||
if ($result < 0) {
|
||||
$error++;
|
||||
}
|
||||
// End call triggers
|
||||
}
|
||||
}
|
||||
|
||||
// Commit or rollback
|
||||
if ($error)
|
||||
{
|
||||
foreach ($this->errors as $errmsg)
|
||||
{
|
||||
if ($error) {
|
||||
foreach ($this->errors as $errmsg) {
|
||||
dol_syslog(get_class($this)."::delete ".$errmsg, LOG_ERR);
|
||||
$this->error .= ($this->error ? ', '.$errmsg : $errmsg);
|
||||
}
|
||||
@ -355,13 +369,10 @@ class Comment extends CommonObject
|
||||
|
||||
dol_syslog(get_class($this).'::'.__METHOD__, LOG_DEBUG);
|
||||
$resql = $this->db->query($sql);
|
||||
if ($resql)
|
||||
{
|
||||
if ($resql) {
|
||||
$num_rows = $this->db->num_rows($resql);
|
||||
if ($num_rows > 0)
|
||||
{
|
||||
while ($obj = $this->db->fetch_object($resql))
|
||||
{
|
||||
if ($num_rows > 0) {
|
||||
while ($obj = $this->db->fetch_object($resql)) {
|
||||
$comment = new self($db);
|
||||
$comment->fetch($obj->rowid);
|
||||
$this->comments[] = $comment;
|
||||
|
||||
@ -125,7 +125,6 @@ class EmailSenderProfile extends CommonObject
|
||||
*/
|
||||
public $date_creation;
|
||||
|
||||
|
||||
public $tms;
|
||||
public $private;
|
||||
public $signature;
|
||||
@ -134,32 +133,6 @@ class EmailSenderProfile extends CommonObject
|
||||
// END MODULEBUILDER PROPERTIES
|
||||
|
||||
|
||||
|
||||
// If this object has a subtable with lines
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
*/
|
||||
//public $table_element_line = 'emailsenderprofiledet';
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
//public $fk_element = 'fk_emailsenderprofile';
|
||||
/**
|
||||
* @var int Name of subtable class that manage subtable lines
|
||||
*/
|
||||
//public $class_element_line = 'EmailSenderProfileline';
|
||||
/**
|
||||
* @var array List of child tables. To test if we can delete object.
|
||||
*/
|
||||
//protected $childtables=array();
|
||||
/**
|
||||
* @var EmailSenderProfileLine[] Array of subtable lines
|
||||
*/
|
||||
//public $lines = array();
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
||||
@ -35,6 +35,9 @@ class Fiscalyear extends CommonObject
|
||||
*/
|
||||
public $element = 'fiscalyear';
|
||||
|
||||
/**
|
||||
* @var string picto
|
||||
*/
|
||||
public $picto = 'technic';
|
||||
|
||||
/**
|
||||
@ -43,12 +46,12 @@ class Fiscalyear extends CommonObject
|
||||
public $table_element = 'accounting_fiscalyear';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
public $table_element_line = '';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = '';
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ class Delivery extends CommonObject
|
||||
public $element = "delivery";
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = "fk_delivery";
|
||||
|
||||
@ -58,7 +58,7 @@ class Delivery extends CommonObject
|
||||
public $table_element = "delivery";
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
public $table_element_line = "deliverydet";
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ class Don extends CommonObject
|
||||
public $table_element = 'don';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_donation';
|
||||
|
||||
|
||||
@ -52,13 +52,14 @@ class EmailCollector extends CommonObject
|
||||
* @var int Does emailcollector support extrafields ? 0=No, 1=Yes
|
||||
*/
|
||||
public $isextrafieldmanaged = 0;
|
||||
|
||||
/**
|
||||
* @var string String with name of icon for emailcollector. Must be the part after the 'object_' into object_emailcollector.png
|
||||
*/
|
||||
public $picto = 'generic';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_emailcollector';
|
||||
|
||||
@ -158,7 +159,9 @@ class EmailCollector extends CommonObject
|
||||
*/
|
||||
public $date_creation;
|
||||
|
||||
|
||||
/**
|
||||
* @var int timestamp
|
||||
*/
|
||||
public $tms;
|
||||
|
||||
/**
|
||||
@ -171,6 +174,9 @@ class EmailCollector extends CommonObject
|
||||
*/
|
||||
public $fk_user_modif;
|
||||
|
||||
/**
|
||||
* @var string import key
|
||||
*/
|
||||
public $import_key;
|
||||
|
||||
|
||||
|
||||
@ -118,17 +118,17 @@ class EmailCollectorAction extends CommonObject
|
||||
// If this object has a subtable with lines
|
||||
|
||||
// /**
|
||||
// * @var int Name of subtable line
|
||||
// * @var string Name of subtable line
|
||||
// */
|
||||
//public $table_element_line = 'emailcollectoractiondet';
|
||||
|
||||
// /**
|
||||
// * @var int Field with ID of parent key if this field has a parent
|
||||
// * @var string Field with ID of parent key if this field has a parent
|
||||
// */
|
||||
//public $fk_element = 'fk_emailcollectoraction';
|
||||
|
||||
// /**
|
||||
// * @var int Name of subtable class that manage subtable lines
|
||||
// * @var string Name of subtable class that manage subtable lines
|
||||
// */
|
||||
//public $class_element_line = 'EmailcollectorActionline';
|
||||
|
||||
|
||||
@ -55,7 +55,7 @@ class Expedition extends CommonObject
|
||||
public $element = "shipping";
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = "fk_expedition";
|
||||
|
||||
@ -65,7 +65,7 @@ class Expedition extends CommonObject
|
||||
public $table_element = "expedition";
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
public $table_element_line = "expeditiondet";
|
||||
|
||||
|
||||
@ -44,7 +44,14 @@ class ExpenseReport extends CommonObject
|
||||
*/
|
||||
public $table_element = 'expensereport';
|
||||
|
||||
/**
|
||||
* @var string table element line name
|
||||
*/
|
||||
public $table_element_line = 'expensereport_det';
|
||||
|
||||
/**
|
||||
* @var string Fieldname with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_expensereport';
|
||||
|
||||
/**
|
||||
|
||||
@ -40,7 +40,7 @@ class ExpenseReportIk extends CoreObject
|
||||
public $table_element = 'expensereport_ik';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_expense_ik';
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@ class ExpenseReportRule extends CoreObject
|
||||
public $table_element = 'expensereport_rules';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Fieldname with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_expense_rule';
|
||||
|
||||
|
||||
@ -76,7 +76,7 @@ class Fichinter extends CommonObject
|
||||
public $table_element = 'fichinter';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_fichinter';
|
||||
|
||||
@ -1435,7 +1435,7 @@ class FichinterLigne extends CommonObjectLine
|
||||
public $table_element = 'fichinterdet';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_fichinter';
|
||||
|
||||
|
||||
@ -41,6 +41,10 @@ class FichinterRec extends Fichinter
|
||||
public $element = 'fichinterrec';
|
||||
public $table_element = 'fichinter_rec';
|
||||
public $table_element_line = 'fichinter_rec';
|
||||
|
||||
/**
|
||||
* @var string Fieldname with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_fichinter';
|
||||
|
||||
/**
|
||||
|
||||
@ -53,12 +53,12 @@ class CommandeFournisseur extends CommonOrder
|
||||
public $table_element = 'commande_fournisseur';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
public $table_element_line = 'commande_fournisseurdet';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_commande';
|
||||
|
||||
|
||||
@ -57,12 +57,12 @@ class FactureFournisseur extends CommonInvoice
|
||||
public $table_element = 'facture_fourn';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
public $table_element_line = 'facture_fourn_det';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_facture_fourn';
|
||||
|
||||
|
||||
@ -50,7 +50,7 @@ class Holiday extends CommonObject
|
||||
public $ismultientitymanaged = 0;
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_holiday';
|
||||
|
||||
|
||||
@ -40,12 +40,12 @@ class Establishment extends CommonObject
|
||||
public $table_element = 'establishment';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
public $table_element_line = '';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_establishment';
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@ class IntracommReport extends CommonObject
|
||||
public $table_element = 'intracommreport';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_intracommreport';
|
||||
|
||||
|
||||
@ -187,37 +187,37 @@ class MyObject extends CommonObject
|
||||
|
||||
// If this object has a subtable with lines
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
*/
|
||||
//public $table_element_line = 'mymodule_myobjectline';
|
||||
// /**
|
||||
// * @var string Name of subtable line
|
||||
// */
|
||||
// public $table_element_line = 'mymodule_myobjectline';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this object has a parent
|
||||
*/
|
||||
//public $fk_element = 'fk_myobject';
|
||||
// /**
|
||||
// * @var string Field with ID of parent key if this object has a parent
|
||||
// */
|
||||
// public $fk_element = 'fk_myobject';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable class that manage subtable lines
|
||||
*/
|
||||
//public $class_element_line = 'MyObjectline';
|
||||
// /**
|
||||
// * @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 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('mymodule_myobjectdet');
|
||||
// /**
|
||||
// * @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('mymodule_myobjectdet');
|
||||
|
||||
/**
|
||||
* @var MyObjectLine[] Array of subtable lines
|
||||
*/
|
||||
//public $lines = array();
|
||||
// /**
|
||||
// * @var MyObjectLine[] Array of subtable lines
|
||||
// */
|
||||
// public $lines = array();
|
||||
|
||||
|
||||
|
||||
|
||||
@ -166,17 +166,17 @@ class Mo extends CommonObject
|
||||
// If this object has a subtable with lines
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
public $table_element_line = 'mo_production';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_mo';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable class that manage subtable lines
|
||||
* @var string Name of subtable class that manage subtable lines
|
||||
*/
|
||||
public $class_element_line = 'MoLine';
|
||||
|
||||
|
||||
@ -56,14 +56,22 @@ class Product extends CommonObject
|
||||
public $table_element = 'product';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_product';
|
||||
|
||||
/**
|
||||
* @var array List of child tables. To test if we can delete object.
|
||||
*/
|
||||
protected $childtables = array('supplier_proposaldet', 'propaldet', 'commandedet', 'facturedet', 'contratdet', 'facture_fourn_det', 'commande_fournisseurdet');
|
||||
protected $childtables = array(
|
||||
'supplier_proposaldet',
|
||||
'propaldet',
|
||||
'commandedet',
|
||||
'facturedet',
|
||||
'contratdet',
|
||||
'facture_fourn_det',
|
||||
'commande_fournisseurdet'
|
||||
);
|
||||
|
||||
/**
|
||||
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
@ -170,6 +170,9 @@ class Inventory extends CommonObject
|
||||
*/
|
||||
public $fk_user_valid;
|
||||
|
||||
/**
|
||||
* @var string import key
|
||||
*/
|
||||
public $import_key;
|
||||
// END MODULEBUILDER PROPERTIES
|
||||
|
||||
@ -178,17 +181,17 @@ class Inventory extends CommonObject
|
||||
// If this object has a subtable with lines
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
public $table_element_line = 'inventorydet';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_inventory';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable class that manage subtable lines
|
||||
* @var string Name of subtable class that manage subtable lines
|
||||
*/
|
||||
public $class_element_line = 'Inventoryline';
|
||||
|
||||
|
||||
@ -45,17 +45,17 @@ class Project extends CommonObject
|
||||
public $table_element = 'projet';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
public $table_element_line = 'projet_task';
|
||||
|
||||
/**
|
||||
* @var int Name of field date
|
||||
* @var string Name of field date
|
||||
*/
|
||||
public $table_element_date;
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_projet';
|
||||
|
||||
|
||||
@ -45,7 +45,7 @@ class Task extends CommonObject
|
||||
public $table_element = 'projet_task';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_task';
|
||||
|
||||
|
||||
@ -46,7 +46,14 @@ class Reception extends CommonObject
|
||||
{
|
||||
use CommonIncoterm;
|
||||
|
||||
/**
|
||||
* @var string element name
|
||||
*/
|
||||
public $element = "reception";
|
||||
|
||||
/**
|
||||
* @var string Fieldname with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = "fk_reception";
|
||||
public $table_element = "reception";
|
||||
public $table_element_line = "commande_fournisseur_dispatch";
|
||||
|
||||
@ -153,42 +153,6 @@ class RecruitmentCandidature extends CommonObject
|
||||
// END MODULEBUILDER PROPERTIES
|
||||
|
||||
|
||||
// If this object has a subtable with lines
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
*/
|
||||
//public $table_element_line = 'recruitment_recruitmentcandidatureline';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this object has a parent
|
||||
*/
|
||||
//public $fk_element = 'fk_recruitmentcandidature';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable class that manage subtable lines
|
||||
*/
|
||||
//public $class_element_line = 'RecruitmentCandidatureline';
|
||||
|
||||
/**
|
||||
* @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('recruitment_recruitmentcandidaturedet');
|
||||
|
||||
/**
|
||||
* @var RecruitmentCandidatureLine[] Array of subtable lines
|
||||
*/
|
||||
//public $lines = array();
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
||||
@ -168,40 +168,6 @@ class RecruitmentJobPosition extends CommonObject
|
||||
// END MODULEBUILDER PROPERTIES
|
||||
|
||||
|
||||
// If this object has a subtable with lines
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
*/
|
||||
//public $table_element_line = 'recruitment_recruitmentjobpositionline';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
//public $fk_element = 'fk_recruitmentjobposition';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable class that manage subtable lines
|
||||
*/
|
||||
//public $class_element_line = 'RecruitmentJobPositionline';
|
||||
|
||||
/**
|
||||
* @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('recruitment_recruitmentjobpositiondet');
|
||||
|
||||
/**
|
||||
* @var RecruitmentJobPositionLine[] Array of subtable lines
|
||||
*/
|
||||
//public $lines = array();
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
||||
@ -199,15 +199,15 @@ class CompanyPaymentMode extends CommonObject
|
||||
// If this object has a subtable with lines
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
//public $table_element_line = 'companypaymentmodedet';
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
//public $fk_element = 'fk_companypaymentmode';
|
||||
/**
|
||||
* @var int Name of subtable class that manage subtable lines
|
||||
* @var string Name of subtable class that manage subtable lines
|
||||
*/
|
||||
//public $class_element_line = 'CompanyPaymentModeline';
|
||||
/**
|
||||
|
||||
@ -59,7 +59,7 @@ class Societe extends CommonObject
|
||||
public $table_element = 'societe';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent or for child tables
|
||||
* @var string Field with ID of parent key if this field has a parent or for child tables
|
||||
*/
|
||||
public $fk_element = 'fk_soc';
|
||||
|
||||
|
||||
@ -161,33 +161,6 @@ class SocieteAccount extends CommonObject
|
||||
// END MODULEBUILDER PROPERTIES
|
||||
|
||||
|
||||
|
||||
|
||||
// If this object has a subtable with lines
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
*/
|
||||
//public $table_element_line = 'societe_accountdet';
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
//public $fk_element = 'fk_societe_account';
|
||||
/**
|
||||
* @var int Name of subtable class that manage subtable lines
|
||||
*/
|
||||
//public $class_element_line = 'societeAccountline';
|
||||
/**
|
||||
* @var array List of child tables. To test if we can delete object.
|
||||
*/
|
||||
//protected $childtables=array();
|
||||
/**
|
||||
* @var societeAccountLine[] Array of subtable lines
|
||||
*/
|
||||
//public $lines = array();
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
||||
@ -61,12 +61,12 @@ class SupplierProposal extends CommonObject
|
||||
public $table_element = 'supplier_proposal';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
* @var string Name of subtable line
|
||||
*/
|
||||
public $table_element_line = 'supplier_proposaldet';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_supplier_proposal';
|
||||
|
||||
|
||||
@ -54,7 +54,7 @@ class User extends CommonObject
|
||||
public $table_element = 'user';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_user';
|
||||
|
||||
|
||||
@ -90,7 +90,10 @@ class UserGroup extends CommonObject
|
||||
*/
|
||||
public $datem;
|
||||
|
||||
public $note; // Description
|
||||
/**
|
||||
* @var string Description
|
||||
*/
|
||||
public $note;
|
||||
|
||||
public $members = array(); // Array of users
|
||||
|
||||
@ -111,7 +114,7 @@ class UserGroup extends CommonObject
|
||||
);
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
* @var string Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_usergroup';
|
||||
|
||||
|
||||
@ -181,19 +181,19 @@ class WebsitePage extends CommonObject
|
||||
|
||||
// If this object has a subtable with lines
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
*/
|
||||
// /**
|
||||
// * @var string Name of subtable line
|
||||
// */
|
||||
//public $table_element_line = 'mymodule_myobjectline';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent or for child tables
|
||||
* @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 int Name of subtable class that manage subtable lines
|
||||
*/
|
||||
// /**
|
||||
// * @var string Name of subtable class that manage subtable lines
|
||||
// */
|
||||
//public $class_element_line = 'MyObjectline';
|
||||
|
||||
/**
|
||||
|
||||
@ -252,35 +252,6 @@ class Hook extends CommonObject
|
||||
public $import_key;
|
||||
|
||||
|
||||
// If this object has a subtable with lines
|
||||
|
||||
/**
|
||||
* @var int Name of subtable line
|
||||
*/
|
||||
//public $table_element_line = 'hookdet';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
//public $fk_element = 'fk_hook';
|
||||
|
||||
/**
|
||||
* @var int Name of subtable class that manage subtable lines
|
||||
*/
|
||||
//public $class_element_line = 'MyObjectline';
|
||||
|
||||
/**
|
||||
* @var array Array of child tables (child tables to delete before deleting a record)
|
||||
*/
|
||||
//protected $childtables=array('hookdet');
|
||||
|
||||
/**
|
||||
* @var MyObjectLine[] Array of subtable lines
|
||||
*/
|
||||
//public $lines = array();
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user