<?php // $Id: CLRSS.def.conf.inc.php 9707 2007-12-12 13:46:31Z mlaurent $
if ( count( get_included_files() ) == 1 ) die( '---' );
/**
 * CLAROLINE
 *
 * This file describe the parameter for user tool
 *
 * @version 1.8 $Revision: 9707 $
 *
 * @copyright 2001-2006 Universite catholique de Louvain (UCL)
 *
 * @license http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE
 *
 * @see http://www.claroline.net/wiki/index.php/Config
 *
 * @author Claro Team <cvs@claroline.net>
 *
 * @package CLRSS
 *
 */
// TOOL
$conf_def['config_code']  = 'CLRSS';
$conf_def['config_file']  = 'rss.conf.php';
$conf_def['config_name']  = 'Rss (read and write) tool';
$conf_def['config_class'] = 'kernel';

//SECTION
$conf_def['section']['main']['label']='Main settings';
$conf_def['section']['main']['properties'] =
array ( 'enableRssInCourse'
      , 'rssRepositoryCache'
      , 'rssUseCache'
      , 'rssCacheLifeTime'
      );

//PROPERTIES

$conf_def_property_list['enableRssInCourse'] =
array ('label'          => 'Enable RSS in course'
      , 'description'   => ''
      ,'default'        => TRUE
      ,'type'           => 'boolean'
      , 'readonly'      => FALSE
      , 'acceptedValue' => array('TRUE'=>'Yes', 'FALSE' => 'No')

      );

$conf_def_property_list['rssRepositoryCache'] =
array ('label'         => 'Repository for cache files'
      , 'description'  => 'Note :  this repository should be protected with a .htaccess or
       be placed outside the web. Because there contain data of private courses.'
      ,'default'       => 'tmp/cache/rss/'
      ,'type'          => 'relpath'
      );

$conf_def_property_list['rssUseCache'] =
array (
        'label'         => 'Use the cache'
      , 'description'   => 'File are always created in cache, but if this value is true feed file in cache arent rebuilt on request if exiting in cache.'
      , 'default'       => TRUE
      ,'type'           => 'boolean'
      , 'readonly'      => FALSE
      , 'acceptedValue' => array('TRUE'=>'Use it, and build  on change', 'FALSE' => 'rebuild file on each request')
      , 'oldName' => 'use_rss_cache'
      );

$conf_def_property_list['rssCacheLifeTime'] =
array (
        'label'         => 'Life time of cache'
      , 'description'   => 'Time before really compute data. 86400 = 1 day.'
      , 'default'       => '86400'
      , 'type'          => 'integer'
      , 'unit'          => 'seconds'
      , 'display'       => true
      , 'readonly'      => FALSE
      , 'acceptedValue' => array('min'=> '360', 'max' => '8640000')
      , 'oldName'       => 'use_rss_cache'
      );

?>
