fetch_pmb_datatype(); $this->fetch_default_value(); } // end of member function __construct protected function fetch_label(){ $this->label = $this->ontology->get_property_label($this->uri); } protected function fetch_pmb_datatype(){ $this->pmb_datatype = $this->ontology->get_property_pmb_datatype($this->uri); } protected function fetch_default_value(){ $this->default_value = $this->ontology->get_property_default_value($this->uri); } protected function fetch_flags(){ $this->flags = $this->ontology->get_flags("",$this->uri); } public function set_domain($domain){ $this->domain = $domain; } public function set_range($range){ $this->range = $range; } public function set_pmb_name($pmb_name){ $this->pmb_name = $pmb_name; } public function set_inverse_of($inverse_of){ $this->inverse_of = $inverse_of; } public function set_pmb_marclist_type($pmb_marclist_type) { $this->pmb_marclist_type = $pmb_marclist_type; } public function set_pmb_list_item($pmb_list_item) { $this->pmb_list_item = $pmb_list_item; } public function set_pmb_list_query($pmb_list_query) { $this->pmb_list_query = $pmb_list_query; } public function set_cp_options($cp_options) { $this->cp_options = $cp_options; } public function get_pmb_datatype_label($datatype) { global $msg; switch($datatype){ case "http://www.pmbservices.fr/ontology#small_text": $label = $msg['onto_onto_pmb_datatype_pmb_datatype_small_text']; break; case "http://www.pmbservices.fr/ontology#small_text_link": $label = $msg['onto_onto_pmb_datatype_pmb_datatype_small_text_link']; break; case "http://www.pmbservices.fr/ontology#resource_selector": $label = $msg['onto_onto_pmb_datatype_pmb_datatype_resource_selector']; break; case "http://www.pmbservices.fr/ontology#text": $label = $msg['onto_onto_pmb_datatype_pmb_datatype_text']; break; case "http://www.pmbservices.fr/ontology#date": $label = $msg['onto_onto_pmb_datatype_pmb_datatype_date']; break; case "http://www.pmbservices.fr/ontology#small_text_card": $label = $msg['onto_onto_pmb_datatype_pmb_datatype_small_text_card']; break; default : $label = $datatype; break; } return $label; } public function set_pmb_extended($pmb_extended) { $this->pmb_extended = $pmb_extended; return $this; } public function set_form_id($form_id) { $this->form_id = $form_id; return $this; } public function set_form_uri($form_uri) { $this->form_uri = $form_uri; return $this; } public function get_pmb_extended() { return $this->pmb_extended; } public function get_label() { $this->label = onto_common_ui::get_message($this->label); return $this->label; } public function set_undisplayed($undisplayed) { if ($undisplayed) { $this->undisplayed = true; } return $this; } public function is_undisplayed() { return $this->undisplayed; } public function set_no_search($no_search) { if ($no_search) { $this->no_search = true; } return $this; } public function is_no_search() { return $this->no_search; } } // end of onto_common_property