function load(&$PDOdb, $id) { parent::load($PDOdb, $id); if ($this->fk_asset > 0) { $this->asset->load($PDOdb, $this->fk_asset, false); } }
function __construct() { global $langs; parent::set_table(MAIN_DB_PREFIX . 'commercial_category'); parent::add_champs('fk_user,fk_category', array('type' => 'int', 'index' => true)); parent::_init_vars('label'); parent::start(); }
function load(&$PDOdb, $id, $loadChild = true) { parent::load($PDOdb, $id); if ($this->fk_query > 0) { $this->query = new TQuery(); $this->query->load($PDOdb, $this->fk_query); } }
function __construct() { parent::set_table(MAIN_DB_PREFIX . 'ha_pouvoirs'); parent::add_champs('fk_hero,active', array('type' => 'integer', 'index' => true)); parent::add_champs('name,description'); parent::_init_vars(); $this->start(); }
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 __construct() { global $langs; parent::set_table(MAIN_DB_PREFIX . 'remise'); parent::add_champs('palier,remise', array('type' => 'float', 'index' => true)); parent::add_champs('zip,type', array('index' => true)); parent::add_champs('fk_shipment_mode', array('type' => 'int', 'index' => true)); parent::_init_vars(); parent::start(); }
function __construct() { $this->set_table(MAIN_DB_PREFIX . 'product_cost_price_log'); parent::add_champs('fk_supplier,fk_product', array('type' => 'integer', 'index' => true)); parent::add_champs('qty,price', array('type' => 'float')); parent::add_champs('log_type', array('index' => true, 'type' => 'string', 'length' => 10)); parent::_init_vars(); parent::start(); //log_type : PA, PMP, OF }
function __construct() { /* declaration */ global $conf; parent::set_table(MAIN_DB_PREFIX . 'factor'); parent::add_champs('fk_soc,fk_bank_account', array('type' => 'int', 'index' => true)); //type de valideur parent::add_champs('mention', array('type' => 'text')); parent::_init_vars(); parent::start(); }
function __construct() { global $langs; parent::set_table(MAIN_DB_PREFIX . 'recurrence'); parent::add_champs('fk_chargesociale', array('type' => 'entier', 'index' => true)); parent::add_champs('periode', array('type' => 'text')); parent::add_champs('nb_previsionnel', array('type' => 'entier')); parent::add_champs('date_fin', array('type' => 'date')); parent::_init_vars(); parent::start(); $this->lines = array(); $this->nbLines = 0; }
function __construct() { global $langs; parent::set_table(MAIN_DB_PREFIX . 'commande_fournisseurdet_asset'); parent::add_champs('fk_commandedet,fk_product,fk_warehouse', 'type=entier;index;'); parent::add_champs('rang', 'type=entier;'); parent::add_champs('lot_number,carton,numerosuivi,imei,firmware,serial_number', 'type=chaine;'); parent::add_champs('weight, weight_reel, tare', 'type=float;'); parent::add_champs('dluo', 'type=date;'); parent::add_champs('weight_unit, weight_reel_unit, tare_unit', 'type=entier;'); parent::_init_vars(); parent::start(); }
function __construct() { global $langs, $db; parent::set_table(MAIN_DB_PREFIX . 'routing'); parent::add_champs('trigger_code,trigger_code_reverse', array('index' => true, 'type' => 'string', 'length' => 50)); parent::add_champs('fk_warehouse_from,fk_warehouse_to', array('index' => true, 'type' => 'integer')); parent::add_champs('check_old', array('type' => 'integer')); parent::add_champs('message_condition,message_code', array('type' => 'text')); parent::_init_vars('qty_field,fk_product_field,lines_field,product_type_field'); parent::start(); $this->qty_field = 'qty'; $this->fk_product_field = 'fk_product'; $this->lines_field = 'lines'; $this->product_type_field = 'product_type'; }
static function get_time($date) { $std = new TObjetStd(); $std->set_date('dt_date', $date); return $std->dt_date; }
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 TSSObjet(&$db, $table) { parent::set_table($table); parent::init_vars_by_db($db); parent::start(); }
function delete(&$ATMdb) { parent::delete($ATMdb); }
function load(&$PDOdb, $id) { parent::load($PDOdb, $id); $this->setCheck($type_object); }
function delete(&$PDOdb) { parent::delete($PDOdb); $this->deleteMenu(); $this->deleteTab(); }
function save(&$PDOdb) { global $db, $conf, $user; $this->entity = $conf->entity; parent::save($PDOdb); }
function delete(&$PDOdb) { global $user, $langs, $conf, $db; // Appel des triggers include_once DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php"; $interface = new Interfaces($db); $result = $interface->run_triggers('ASSET_OF_CONTROL_DELETE', $this, $user, $langs, $conf); if ($result < 0) { $this->errors[] = $interface->errors; } parent::delete($PDOdb); }