public function get_form($prefix_url = "", $flag = "", $action = "save") { $form = parent::get_form($prefix_url, $flag, $action); if ($flag != "concept_selector_form") { $aut_link = new aut_link(AUT_TABLE_CONCEPT, onto_common_uri::get_id($this->get_uri())); $form = str_replace('<!-- aut_link -->', $aut_link->get_form(onto_common_uri::get_name_from_uri($this->get_uri(), $this->onto_class->pmb_name)), $form); } else { $form = str_replace('<!-- aut_link -->', "", $form); } return $form; }
/** * Instancie les datatypes à partir des données postées du formulaire * * @return void * @access public */ public function get_values_from_form() { $this->datatypes = array(); $prefix = onto_common_uri::get_name_from_uri($this->uri, $this->onto_class->pmb_name); if (sizeof($this->onto_class->get_properties())) { foreach ($this->onto_class->get_properties() as $uri_property) { $property = $this->onto_class->get_property($uri_property); $datatype_class_name = $this->resolve_datatype_class_name($property); $this->datatypes = array_merge($this->datatypes, $datatype_class_name::get_values_from_form($prefix, $property, $this->uri)); } } return $this->datatypes; }