| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| - |
|
2 |
// declare(encoding='UTF-8');
|
| 2 |
/**
|
3 |
/**
|
| 3 |
* Service fournissant des informations concernant le CEL au format RSS1, RSS2 ou ATOM.
|
4 |
* Service fournissant des exports des données publiques du CEL pour le widget.
|
| 4 |
* Encodage en entrée : utf8
|
- |
|
| 5 |
* Encodage en sortie : utf8
|
5 |
*
|
| 6 |
* Format du service :
|
6 |
* Format du service :
|
| 7 |
* /CelWidgetExport/format
|
7 |
* /CelWidgetExport/format
|
| 8 |
* /CelWidgetExport/csv
|
8 |
* /CelWidgetExport/csv
|
| 9 |
*
|
9 |
*
|
| 10 |
* Les paramêtres :
|
10 |
* Les paramêtres :
|
| 11 |
* - "start" indique le numéro du premier item à afficher
|
11 |
* - "start" indique le numéro du premier item à afficher
|
| 12 |
* - "limit" nombre d'items à afficher
|
12 |
* - "limit" nombre d'items à afficher
|
| 13 |
*
|
13 |
*
|
| - |
|
14 |
* @internal Mininum PHP version : 5.2
|
| - |
|
15 |
* @category CEL
|
| - |
|
16 |
* @package Services
|
| - |
|
17 |
* @subpackage Widget
|
| - |
|
18 |
* @version 0.1
|
| - |
|
19 |
* @author Mathias CHOUET <mathias@tela-botanica.org>
|
| - |
|
20 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
| 14 |
* @author Aurélien Peronnet <aurelien@tela-botanica.org>
|
21 |
* @author Aurelien PERONNET <aurelien@tela-botanica.org>
|
| 15 |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
|
22 |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
|
| 16 |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
|
23 |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
|
| 17 |
* @version $Id$
|
- |
|
| 18 |
* @copyright 2012
|
24 |
* @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org>
|
| 19 |
*/
|
25 |
*/
|
| 20 |
|
- |
|
| 21 |
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(realpath(__FILE__))) . '/lib');
|
26 |
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(realpath(__FILE__))) . '/lib');
|
| 22 |
// la sortie est binaire (xls), mais OLE n'est pas compatible E_ALL en PHP-5.4
|
27 |
// la sortie est binaire (xls), mais OLE n'est pas compatible E_ALL en PHP-5.4
|
| 23 |
error_reporting(error_reporting() & ~E_STRICT);
|
28 |
error_reporting(error_reporting() & ~E_STRICT);
|
| 24 |
require_once 'lib/OLE.php';
|
29 |
require_once 'lib/OLE.php';
|
| 25 |
require_once 'lib/Spreadsheet/Excel/Writer.php';
|
30 |
require_once 'lib/Spreadsheet/Excel/Writer.php';
|