Location: PHPKode > projects > Claroline Course Exchange > conf/def/CLCEX.def.conf.inc.php
<?php // $Id: CLCEX.def.conf.inc.php,v 1.2 2009-08-12 13:27:31 kraedani Exp $
/**
 * Claroline (LOR) Course Exchange
 * 
 * @version $Revision: 1.2 $
 * 
 * @copyright (c) 2009 University of Applied Science Chur (HTW Chur)
 * 
 * @license http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE
 *
 * @package CLCEX
 * 
 * @author Daniel Krähenbühl, hide@address.com
 * @author Mathias Füglistaler, hide@address.com
 */

/**
 * INFO
 * 
 * This file defines the configuration for CLCEXP
 *
 */

//-- Configuration
if ( count( get_included_files() ) == 1 ) die( '---' );

// CONFIG HEADER
$conf_def['config_code'] = 'CLCEX';
$conf_def['config_file'] = 'CLCEX.conf.php';
$conf_def['config_name'] = 'Claroline Course Exchange';

// CONFIG MAIN
$conf_def['section']['main']['label']      = 'Main';
$conf_def['section']['main']['description']= '';
$conf_def['section']['main']['properties'] = 
array ( 'show_lor_export'
      ); 
      
      
// CONFIG REPOSITORYS
$conf_def['section']['repos']['label']      = 'Repositorys';
$conf_def['section']['repos']['description']= '';
$conf_def['section']['repos']['properties'] = 
array ( 'repo_1_name', 
		'repo_url_1',
		'repo_folder_1', 
 		'repo_2_name',
		'repo_url_2',
		'repo_folder_2',
 		'repo_3_name',
		'repo_url_3',
		'repo_folder_3', 
 		'repo_4_name',
		'repo_url_4',
		'repo_folder_4' 
      ); 

// CONFIG SWITCH-Collection-EXPORT
$conf_def['section']['quota']['label']='Default Settings';
$conf_def['section']['quota']['description']='';
$conf_def['section']['quota']['properties'] =
array ( 'lor_access_rights'
      , 'lor_edit_rights'
      , 'lor_licence'
      );       
       
// SHOW LOR EXPORT  
$conf_def_property_list['show_lor_export'] = 	 
 array ( 'label'       	=> 'Enable SWITCHCollection Export:'
       , 'description' 	=> 'Show the export button to export to a SWITCHcollection repository in addition to the export to file button.'
       , 'default'     	=> TRUE
       , 'type'        	=> 'boolean'
       , 'display'     	=> TRUE	 
	   , 'acceptedValue'=> array('TRUE' => 'Yes', 'FALSE' => 'No')  
       );

      
/**************************
 * LOR EXPORT Repositorys *
 **************************/
// Repo 1
$conf_def_property_list['repo_1_name'] =
array ( 'label'       => 'Name of repository 1'
      , 'description' => 'The name for this repository'
      , 'default'     => 'collection.switch.ch'
      , 'type'        => 'string'
      );
$conf_def_property_list['repo_url_1'] =
array ( 'label'       => 'Repository 1 URL'
      , 'description' => 'The URL of the SWITCHCollection repository upload form.'
      , 'default'     => 'https://collection.switch.ch/detour/index.php'
      , 'type'        => 'url'
      );
$conf_def_property_list['repo_folder_1'] = 	 
array ( 'label'       => 'Folder'
      , 'description' => 'ID of the folder in the repository to upload to, usually the folder of An institution. 
      This is a default value: it can be changed on the upload form.
      Example: LOR:322 (for folder HTW Chur)'
      , 'default'     => 'LORtest:327'
      , 'type'        => 'string'
      );
      
// Repo 2
$conf_def_property_list['repo_2_name'] =
array ( 'label'       => 'Name repository 2'
      , 'description' => 'The name for this repository'
      , 'default'     => 'test.collection.switch.ch'
      , 'type'        => 'string'
      );
$conf_def_property_list['repo_url_2'] =
array ( 'label'       => 'Repository 2 URL'
      , 'description' => 'The URL of the SWITCHCollection repository upload form.'
      , 'default'     => 'https://test.collection.switch.ch/detour/index.php'
      , 'type'        => 'url'
      );
$conf_def_property_list['repo_folder_2'] = 	
array ( 'label'       => 'Folder'
      , 'description' => 'ID of the folder in the repository to upload to, usually the folder of An institution. 
      This is a default value: it can be changed on the upload form.
      Example: LOR:322 (for folder HTW Chur)'
      , 'default'     => 'LORtest:627'
      , 'type'        => 'string'
      );
      
// Repo 3
$conf_def_property_list['repo_3_name'] =
array ( 'label'       => 'Name repository 3'
      , 'description' => 'The name for this repository'
      , 'type'        => 'string'
      );
$conf_def_property_list['repo_url_3'] =
array ( 'label'       => 'Repository 3 URL'
      , 'description' => 'The URL of the SWITCHCollection repository upload form.'
      , 'default'     => 'https://test.collection.switch.ch/detour/index.php'
      , 'type'        => 'url'
      );
$conf_def_property_list['repo_folder_3'] = 	
array ( 'label'       => 'Folder'
      , 'description' => 'ID of the folder in the repository to upload to, usually the folder of An institution. 
      This is a default value: it can be changed on the upload form.
      Example: LOR:322 (for folder HTW Chur)'
      , 'default'     => 'LORtest:627'
      , 'type'        => 'string'
      );

// Repo 4
$conf_def_property_list['repo_4_name'] =
array ( 'label'       => 'Name repository 4' 
      , 'description' => 'The name for this repository'
      , 'type'        => 'string'
      );
$conf_def_property_list['repo_url_4'] =
array ( 'label'       => 'Repository 4 URL'
      , 'description' => 'The URL of the SWITCHCollection repository upload form.'
      , 'default'     => 'https://test.collection.switch.ch/detour/index.php'
      , 'type'        => 'url'
      );
$conf_def_property_list['repo_folder_4'] = 
array ( 'label'       => 'Folder'
      , 'description' => 'ID of the folder in the repository to upload to, usually the folder of An institution. 
      This is a default value: it can be changed on the upload form.
      Example: LOR:322 (for folder HTW Chur)'
      , 'default'     => 'LORtest:627'
      , 'type'        => 'string'
      );

// ACCESS RIGHT
$conf_def_property_list['lor_access_rights'] = 	 
array ( 'label'         => 'Access rights'
      , 'description'   => 'Access rights to the course object.
      This is a default value: it can be changed on the upload form.'
      , 'default'       => 'private'
      , 'type'          => 'enum'
      , 'acceptedValue' => array ('private' 	=> 'Private'
                                 ,'institution' => 'Institution'
                                 ,'federation' 	=> 'Federation'
                                 ,'public' 		=> 'Public'
                                 )
      );
      
// EDIT RIGHTS
$conf_def_property_list['lor_edit_rights'] = 	 
array ( 'label'         => 'Edit rights'
      , 'description'   => 'Edit rights to the course object.
      This is a default value: it can be changed on the upload form.'
      , 'default'       => 'private'
      , 'type'          => 'enum'
      , 'acceptedValue' => array ('private' 	=> 'Private'
                                 ,'institution' => 'Institution'
                                 ,'federation' 	=> 'Federation'
                                 )
      );

// LICENCE
$conf_def_property_list['lor_licence'] = 	 
array ( 'label'       => 'License'
      , 'description' => 'ID of the license under which the course can be used. 
      See the SWITCHCollection specification for a list of possible values.
      This is a default value: it can be changed on the upload form.'
      , 'default'     => 'http://creativecommons.org/licenses/by/2.5/ch/'
      , 'type'        => 'string'
      );    
?>
Return current item: Claroline Course Exchange