add_register("frbr_entities",true);
class frbr_entities {
/**
* Liste des entités
*/
protected static $entities;
/**
* Constructeur
*/
public function __construct() {
}
/**
* Sélecteur des entités
*/
public static function get_selector($name, $selected = '', $onchange = '') {
global $charset;
$entities_parser = new frbr_entities_parser();
$managed_entities = $entities_parser->get_managed_entities();
$selector = "";
return $selector;
}
public static function get_hidden_field($name, $selected = '') {
global $charset;
$entities_parser = new frbr_entities_parser();
$managed_entities = $entities_parser->get_managed_entities();
$hidden_field = "";
$hidden_field .= htmlentities($managed_entities[$selected]['name'], ENT_QUOTES, $charset);
return $hidden_field;
}
}