Ajout service export
This commit is contained in:
parent
ecebb1644d
commit
1dbd519a93
3
library/WsScore/Export/Versions.ini
Normal file
3
library/WsScore/Export/Versions.ini
Normal file
@ -0,0 +1,3 @@
|
||||
[0.1]
|
||||
actif = true;
|
||||
defaut = true;
|
0
library/WsScore/Export/v0.1/Export.ini
Normal file
0
library/WsScore/Export/v0.1/Export.ini
Normal file
34
library/WsScore/Export/v0.1/Export.php
Normal file
34
library/WsScore/Export/v0.1/Export.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
require_once 'WsScore/WsScore.php';
|
||||
require_once realpath(dirname(__FILE__)).'/Types.php';
|
||||
|
||||
class Export extends WsScore
|
||||
{
|
||||
protected $elements = array(
|
||||
'naf' => array(
|
||||
'entete' => array("codNaf", "libNaf"),
|
||||
'sql' => "SELECT codNaf5 AS codNaf, libNaf5 AS libNaf FROM jo.tabNaf5 UNION SELECT codNaf700 AS codNaf, libNaf700 AS libNaf FROM jo.tabNaf4 ORDER BY codNaf",
|
||||
),
|
||||
);
|
||||
|
||||
/**
|
||||
* Retourne la liste des élements disponible
|
||||
* @return Elements[]
|
||||
*/
|
||||
public function getElements()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Enter description here ...
|
||||
* @param string $key
|
||||
* @return string
|
||||
*/
|
||||
public function getDataCSV($key)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
15
library/WsScore/Export/v0.1/Types.php
Normal file
15
library/WsScore/Export/v0.1/Types.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
class Elements
|
||||
{
|
||||
/**
|
||||
* Enter description here ...
|
||||
* @var string
|
||||
*/
|
||||
public $cle;
|
||||
|
||||
/**
|
||||
* Enter description here ...
|
||||
* @var string
|
||||
*/
|
||||
public $desc;
|
||||
}
|
@ -11,4 +11,8 @@ idClient = 1;
|
||||
|
||||
[extraction]
|
||||
actif = true;
|
||||
idClient = 1;
|
||||
idClient = 1;
|
||||
|
||||
[export]
|
||||
actif = true;
|
||||
idClient = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user