function save(&$PDOdb) { /*$this->set_tags('/(^|\s)@(\w*)/'); $this->set_tags('/(^|\s):(\w*)/'); $this->set_tags('/(^|\s)#(\w*)/'); */ //$PDOdb->debug=true; parent::save($PDOdb); }
function save(&$PDOdb) { global $user; if (empty($this->fk_user_author)) { $this->fk_user_author = $user->id; } // creator $this->fk_user = $user->id; // last updater if (empty($this->uid)) { $this->uid = md5(time() . $this->title . rand(1000, 999999)); } parent::save($PDOdb); }
function save(&$PDOdb) { global $db, $conf, $user; $this->entity = $conf->entity; if ($this->type_menu == 'MENU') { $this->setMenu(); $this->deleteTab(); } parent::save($PDOdb); if ($this->type_menu == 'TAB') { $this->deleteMenu(); $this->setTab(); } }
function save(&$PDOdb) { global $db, $user; parent::save($PDOdb); $TCharges = $this->get_prochaines_charges($PDOdb, $this->fk_chargesociale, date('Y-m-d')); foreach ($TCharges as $data) { $chargesociale = new ChargeSociales($db); $chargesociale->fetch($data->rowid); $chargesociale->amount = price2num($this->montant); echo $chargesociale->amount . '<br>'; $chargesociale->update($user); } }
function save(&$PDOdb) { global $db, $conf, $user; $this->entity = $conf->entity; parent::save($PDOdb); }
function save(&$db) { parent::save($db); }
function save(&$PDOdb) { global $user, $langs, $conf, $db; parent::save($PDOdb); // Appel des triggers include_once DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php"; $interface = new Interfaces($db); $result = $interface->run_triggers('ASSET_OF_CONTROL_SAVE', $this, $user, $langs, $conf); if ($result < 0) { $this->errors[] = $interface->errors; } }