protected function get_fields_type() { global $dbh; $this->fields_type = array(); $query = "select id_editorial_type from cms_editorial_types where editorial_type_element = '" . $this->type . "_generic'"; $result = pmb_mysql_query($query, $dbh); if (pmb_mysql_num_rows($result)) { $fields_type = new cms_editorial_parametres_perso(pmb_mysql_result($result, 0, 0)); $this->fields_type = $fields_type->get_out_values($this->id); } if ($this->num_type) { $query = "select editorial_type_label from cms_editorial_types where id_editorial_type = " . $this->num_type; $result = pmb_mysql_query($query, $dbh); if (pmb_mysql_num_rows($result)) { $this->type_content = pmb_mysql_result($result, 0, 0); $fields_type = new cms_editorial_parametres_perso($this->num_type); $this->fields_type = array_merge($this->fields_type, $fields_type->get_out_values($this->id)); } } }