id=$id*1; $this->record_child = new nomenclature_record_child($this->id); } // end of member function __construct public function create_record_child($id_parent){ global $record_child_data; return $this->record_child->create_record_child($id_parent,$record_child_data); } public function get_child($id_parent){ global $record_child_data; return $this->record_child->get_child($id_parent,$record_child_data); } public function get_form(){ $data= encoding_normalize::json_encode($this->record_child->get_data()); $div .= "
"; return $div; } public function save_form(){ if(!$this->id)return; // pas id de notice $this->record_child->save_form(); } public function delete(){ $this->record_child->delete(); } public function get_isbd(){ global $dbh,$msg; $isbd=""; $data=$this->record_child->get_data(); $type_display=""; if($data["type_name"])$type_display.=" / ".$data["type_name"]; if($data["formation_label"])$type_display.=" / ".$data["formation_label"]; if(!$data["nature"]){ // Instrument $isbd.=" ".$msg["nomenclature_isbd_child_formation"]." : ".$data["formation_name"].$type_display."