objects_type = 'publishers';
}
protected function get_form() {
global $charset;
global $selector_publisher_form;
$form = $selector_publisher_form;
$form = str_replace("!!deb_saisie!!", htmlentities($this->user_input,ENT_QUOTES,$charset), $form);
$form = str_replace("!!base_url!!",static::get_base_url(),$form);
return $form;
}
protected function save() {
global $ed_nom;
global $ed_adr1, $ed_adr2;
global $ed_cp, $ed_ville, $ed_pays;
global $ed_web;
$value['name'] = $ed_nom;
$value['adr1'] = $ed_adr1;
$value['adr2'] = $ed_adr2;
$value['cp'] = $ed_cp;
$value['ville'] = $ed_ville;
$value['pays'] = $ed_pays;
$value['web'] = $ed_web;
$editeur = new editeur();
$editeur->update($value);
return $editeur->id;
}
protected function get_authority_instance($authority_id=0, $object_id=0) {
return new authority($authority_id, $object_id, AUT_TABLE_PUBLISHERS);
}
protected function get_display_object($authority_id=0, $object_id=0) {
global $msg, $charset;
global $caller;
global $callback;
$display = '';
$authority = $this->get_authority_instance($authority_id, $object_id);
$editeur = $authority->get_object_instance();
print pmb_bidi($authority->get_display_statut_class_html(). "
get_num_object()."', '".htmlentities(addslashes($editeur->get_header()),ENT_QUOTES, $charset)."','$callback')\">".
htmlentities($editeur->get_header(),ENT_QUOTES, $charset)."
");
return $display;
}
protected function get_searcher_instance() {
return searcher_factory::get_searcher('publishers', '', $this->user_input);
}
protected function get_entities_controller_instance($id=0) {
return new entities_publishers_controller($id);
}
public static function get_params_url() {
global $p3, $p4, $p5, $p6;
$params_url = parent::get_params_url();
$params_url .= ($p3 ? "&p3=".$p3 : "").($p4 ? "&p4=".$p4 : "").($p5 ? "&p5=".$p5 : "").($p6 ? "&p6=".$p6 : "");
return $params_url;
}
}
?>