=') && extension_loaded('xsl')) { if (substr(phpversion(), 0, 1) == "5") @ini_set("zend.ze1_compatibility_mode", "0"); require_once($include_path.'/xslt-php4-to-php5.inc.php'); } class artevod extends connector { //Variables internes pour la progression de la récupération des notices public $profile; //Profil ArteVOD public $n_recu; //Nombre de notices reçues protected $default_enrichment_template; // Template par défaut de l'enrichissement public function __construct($connector_path="") { parent::__construct($connector_path); $xml=file_get_contents($connector_path."/profil.xml"); $this->profile=_parser_text_no_function_($xml,"ARTEVODCONFIG"); $this->set_default_enrichment_template(); } public function get_id() { return "artevod"; } //Est-ce un entrepot ? public function is_repository() { return 1; } public function source_get_property_form($source_id) { global $charset; $params=$this->get_source_params($source_id); if ($params["PARAMETERS"]) { //Affichage du formulaire avec $params["PARAMETERS"] $vars=unserialize($params["PARAMETERS"]); foreach ($vars as $key=>$val) { global ${$key}; ${$key}=$val; } } $searchindexes=$this->profile["SEARCHINDEXES"][0]["SEARCHINDEX"]; if (!$url) $url=$searchindexes[0]["URL"]; $form = ""; if (count($searchindexes) > 1) { $form .= "
Avec {{ film.actors }}
{% endif %} {* infos *}{% if film.production_year %}Année : {{ film.production_year }}.{% endif %} {% if film.production_countries %} Pays : {{ film.production_countries }}.{% endif %} {% for language in film.languages.langues %} {% if loop.first %}Langue :{% endif %} {{ language.langue }}{%if !loop.last %}, {% endif %} {% endfor %} {% if film.target_audience %} Public : {{ film.target_audience }}.{% endif %}
{* description *} {% if film.description %}{{ film.description }}
{% endif %} {* durée *} {% if film.duration %}Durée : {{ film.duration }}
{% endif %} {* extrait *} {% for trailer in film.trailers %} {% endfor %} {* photos *} {% for photo in film.photos %} {% if loop.first %}{% endif %} {{genre}} {%if !loop.last %}, {% endif %} {% endfor %}