objects_type = 'collections'; } protected function get_form() { global $charset; global $selector_collection_form; $form = $selector_collection_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 $collection_nom; global $ed_id; global $issn; $value['name'] = $collection_nom; $value['parent'] = $ed_id; $value['issn'] = $issn; $collection = new collection(); $collection->update($value); return $collection->id; } protected function get_authority_instance($authority_id=0, $object_id=0) { return new authority($authority_id, $object_id, AUT_TABLE_COLLECTIONS); } 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); $collection = $authority->get_object_instance(); $display .= pmb_bidi($authority->get_display_statut_class_html()." get_num_object().", '".htmlentities(addslashes($collection->name),ENT_QUOTES, $charset)."', '$callback', $collection->parent, '".htmlentities(addslashes($collection->editor_isbd),ENT_QUOTES,$charset)."')\"> ".$collection->name.""); $display .= pmb_bidi(". ".$collection->editeur."
"); return $display; } protected function get_searcher_instance() { return searcher_factory::get_searcher('collections', '', $this->user_input); } protected function get_entities_controller_instance($id=0) { return new entities_collections_controller($id); } public static function get_params_url() { global $p3, $p4, $p5, $p6, $mode; $params_url = parent::get_params_url(); $params_url .= ($p3 ? "&p3=".$p3 : "").($p4 ? "&p4=".$p4 : "").($p5 ? "&p5=".$p5 : "").($p6 ? "&p6=".$p6 : "").($mode ? "&mode=".$mode : ""); return $params_url; } } ?>