<?php
// +-------------------------------------------------+
//  2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: searcher_authorities_subcollections.class.php,v 1.6 2018/03/12 11:17:53 apetithomme Exp $

if (stristr($_SERVER['REQUEST_URI'], ".class.php")) die("no access");

require_once($class_path.'/searcher/searcher_autorities.class.php');

class searcher_authorities_subcollections extends searcher_autorities {

	public function __construct($user_query){
		$this->authority_type = AUT_TABLE_SUB_COLLECTIONS;
		parent::__construct($user_query);
		$this->object_table = "sub_collections";
		$this->object_table_key = "sub_coll_id";
	}
	
	public function _get_search_type(){
		return parent::_get_search_type()."_subcollections";
	}
	
	public function get_authority_tri() {
		return 'index_sub_coll';
	}
}