<?php
// +-------------------------------------------------+
// | 2002-2011 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: frbr_entity_common_datasource_aut_link_works.class.php,v 1.1 2017/05/05 07:43:35 dgoron Exp $

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

class frbr_entity_common_datasource_aut_link_works extends frbr_entity_common_datasource_aut_link_authorities {
	
	protected $key_name = 'tu_id';
	protected $table_name = 'titres_uniformes';
	protected $authority_type = AUT_TABLE_TITRES_UNIFORMES;
	
	public function __construct($id=0){
		$this->entity_type = "works";
		parent::__construct($id);
	}
	
// 	public function get_query() {
// 		$query = "select distinct titres_uniformes.tu_id FROM titres_uniformes 
// 			WHERE (tu_id IN (select aut_link_from_num FROM aut_link WHERE aut_link_from = 7 AND aut_link_type = '!!p!!' and aut_link_to_num = '!!id!!')
// 			OR tu_id IN (select aut_link_to_num FROM aut_link WHERE aut_link_to = 7 and aut_link_reciproc = 1 and aut_link_type = '!!p!!' and aut_link_from_num = '!!id!!')
// 			";
// 		return $query;
// 	}
}