text stringlengths 0 828 |
|---|
'PNRE' => array('repertoire' => 'europe/resolutions', 'prefixe' => 'ppe', 'suffixe' => ''), |
'RION' => array('repertoire' => '', 'prefixe' => '', 'suffixe' => ''), |
'TCOM' => array('repertoire' => 'ta-commission', 'prefixe' => 'r', 'suffixe' => '-a0'), |
'TCOMMODREGLTAN' => array('repertoire' => 'ta-commission', 'prefixe' => 'r', 'suffixe' => '-a0'), |
'TCOMTVXINSTITEUROP' => array('repertoire' => 'ta-commission', 'prefixe' => 'r', 'suffixe' => '-a0'), |
'TCOMCOMENQ' => array('repertoire' => 'ta-commission', 'prefixe' => 'r', 'suffixe' => '-a0'), |
'TADO' => array('repertoire' => 'ta', 'prefixe' => 'ta', 'suffixe' => ''), |
); |
preg_match('/(.{4})([ANS]*)(R[0-9])([LS]*)([0-9]*)([BTACP]*)(.*)/', $identifiant, $matches); |
$leg = $matches[5]; |
$typeTa = $matches[6]; |
$num = $matches[7]; |
switch ($typeTa) { |
case 'BTC': |
$type = 'TCOM'; |
break; |
case 'BTA': |
$type = 'TADO'; |
break; |
default: |
$type = $codeType; |
} |
$host = ""http://www.assemblee-nationale.fr/""; |
return $host . $leg . ""/"" . $datas[$type]['repertoire'] . ""/"" . $datas[$type]['prefixe'] . $num . $datas[$type]['suffixe'] . "".pdf""; |
} |
"""""" |
datas = { |
'PRJL': { |
'repertoire': 'projets', |
'prefixe': 'pl', |
'suffixe': '', |
}, |
'PION': { |
'repertoire': 'propositions', |
'prefixe': 'pion', |
'suffixe': '', |
}, |
'PNRECOMENQ': { |
'repertoire': 'propositions', |
'prefixe': 'pion', |
'suffixe': '', |
}, |
'PNREAPPART341': { |
'repertoire': 'propositions', |
'prefixe': 'pion', |
'suffixe': '', |
}, |
'PNREMODREGLTAN': { |
'repertoire': 'propositions', |
'prefixe': 'pion', |
'suffixe': '', |
}, |
'AVCE': { |
'repertoire': 'projets', |
'prefixe': 'pl', |
'suffixe': '-ace', |
}, |
'ETDI': { |
'repertoire': 'projets', |
'prefixe': 'pl', |
'suffixe': '-ei', |
}, |
'ACIN': { |
'repertoire': 'projets', |
'prefixe': 'pl', |
'suffixe': '-ai', |
}, |
'LETT': { |
'repertoire': 'projets', |
'prefixe': 'pl', |
'suffixe': '-l', |
}, |
'PNRETVXINSTITEUROP': { |
'repertoire': 'europe/resolutions', |
'prefixe': 'ppe', |
'suffixe': '', |
}, |
'PNRE': { |
'repertoire': 'propositions', |
'prefixe': 'pion', |
'suffixe': '', |
}, |
'RION': { |
'repertoire': '', |
'prefixe': '', |
'suffixe': '', |
}, |
'TCOM': { |
'repertoire': 'ta-commission', |
'prefixe': 'r', |
'suffixe': '-a0', |
}, |
'TCOMMODREGLTAN': { |
'repertoire': 'ta-commission', |
'prefixe': 'r', |
'suffixe': '-a0', |
}, |
'TCOMTVXINSTITEUROP': { |
'repertoire': 'ta-commission', |
'prefixe': 'r', |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.