142 lines
10 KiB
PHP
142 lines
10 KiB
PHP
<?php
|
|
class Words
|
|
{
|
|
public $adrRef = array('RUE', 'AV', 'AVENUE', 'BD', 'BOULEVARD', 'R', 'ARRONDISSEMENT', 'ARR');
|
|
public $wordformRS = array('SAS', 'SA', 'EURL', 'SARL', 'SCI', 'SA', 'LES', 'LE', 'LA', 'DE');
|
|
public $refSequence = array(/*'acrony',*/ 'normal', 'points', /*'split',*/ 'space', 'double', 'quorum');
|
|
}
|
|
|
|
class Sequence
|
|
{
|
|
/**
|
|
* S : RaisonSociale
|
|
* I : Siren/Siret
|
|
* N : Numero de rue
|
|
* R : Rue Type de voie
|
|
* D : Departement ou Code Postal
|
|
* L : Les trois derniers chiffre du code postal
|
|
* V : Ville
|
|
* F : Code Ape
|
|
*
|
|
**/
|
|
|
|
public $link = array(
|
|
'S' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('10')),
|
|
'S.R' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('11', '10')),
|
|
'S.N' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('12', '10')),
|
|
'S.N.R' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('13', '12', '11', '10')),
|
|
'S.R.V' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('16', '14', '11', '10')),
|
|
'S.N.R.V' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('17', '16', '15' ,'14' ,'13', '12', '11', '10')),
|
|
'S.V' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('14', '10')),
|
|
'S.N.V' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('15', '14', '12', '10')),
|
|
'S.V.R' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('16', '14', '11', '10')),
|
|
'S.N.V.R' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('17', '15', '14', '13', '12', '11', '10')),
|
|
'S.D' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('18', '10')),
|
|
'S.R.D' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('24', '11', '36', '10')),
|
|
'S.N.D' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('19', '18', '12', '10')),
|
|
'S.D.R' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('24', '18', '11', '10')),
|
|
'S.D.V' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('20', '18', '14', '10')),
|
|
'S.R.D.V' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('21', '20', '18', '14', '11', '42', '10')),
|
|
'S.N.R.D' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('25', '24', '19', '18', '40', '12', '11', '10')),
|
|
'S.N.D.V' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('22', '20', '18', '14', '12', '10')),
|
|
'S.N.R.D.V' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('23' ,'25', '21', '24', '22', '20', '18', '14', '12', '11', '32', '31', '30', '29', '10')),
|
|
|
|
'R' => array('id' => array('26')),
|
|
'R.V' => array('normal' => true ,'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('40', '26')),
|
|
'R.D' => array('id' => array('40', '26')),
|
|
'R.D.V' => array('normal' => true ,'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('42', '40', '31', '26')),
|
|
'N.R' => array('id' => array('28')),
|
|
'N.R.D' => array('id' => array('34', '45', '40')),
|
|
'N.R.D.V' => array('normal' => true ,'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('67', '34', '32', '42', '43', '40')),
|
|
'N.R.V' => array('normal' => true ,'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('32', '31', '30' ,'29' ,'28', '27', '26')),
|
|
'R.V' => array('normal' => true ,'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('31', '28', '26')),
|
|
'D' => array('id'=> array('44')),
|
|
'N.D' => array('id' => array('45', '44')),
|
|
'N.V' => array('id' => array('30', '47')),
|
|
|
|
'F.S.N.R.D.V' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('49', '50', '51', '52', '53', '54', '55', '67', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66')),
|
|
'F.S.N.R.D' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('50', '67', '69', '56', '59', '60', '61', '62', '63', '64', '65')),
|
|
'F.N.R.D.V' => array('id' => array('51', '53', '69', '54', '57', '58', '60', '61', '63', '64', '65', '66')),
|
|
'F.S.R.D.V' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('52', '68', '53', '55', '57', '58', '59', '61', '62', '63', '65', '66')),
|
|
'F.R.D.V' => array('id' => array('53', '57', '58', '61', '63', '65', '66')),
|
|
'F.N.D.V' => array('id' => array('54', '57', '70', '72', '64', '65', '66')),
|
|
'F.S.D.V' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('55', '57', '73', '74', '62', '65', '66')),
|
|
'F.S.N.D' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('69')),
|
|
'F.S.N' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('56')),
|
|
'F.D.V' => array('id' => array('57')),
|
|
'F.R.V' => array('id' => array('58')),
|
|
'F.S.R' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('59')),
|
|
'F.N.R' => array('id' => array('60')),
|
|
'F.R.D' => array('id' => array('61')),
|
|
'F.S' => array('acrony' => true, 'points' => true ,'radica' => true, 'normal' => true, 'split' => true, 'space' => true, 'double' => true, 'quorum' => true, 'max' => 1000, 'id' => array('62')),
|
|
'F.R' => array('id' => array('63')),
|
|
'F.N' => array('id' => array('64')),
|
|
'D.F' => array('id' => array('65')),
|
|
'F.V' => array('id' => array('66')),
|
|
'F' => array('id' => array('46')),
|
|
|
|
'V' => array('id' => array('47'))
|
|
);
|
|
|
|
public $sequence = array(
|
|
'10' => 'S',
|
|
'11' => 'S.R',
|
|
'12' => 'S.N',
|
|
'13' => 'S.N.R',
|
|
'14' => 'S.V',
|
|
'15' => 'S.N.V',
|
|
'16' => 'S.R.V',
|
|
'17' => 'S.N.R.V',
|
|
'18' => 'S.D',
|
|
'19' => 'S.N.D',
|
|
'20' => 'S.D.V ',
|
|
'21' => 'S.R.D.V',
|
|
'22' => 'S.N.D.V',
|
|
'23' => 'S.N.R.D.V',
|
|
'24' => 'S.R.D',
|
|
'25' => 'S.N.R.D',
|
|
'26' => 'R',
|
|
'27' => 'N',
|
|
'28' => 'N.R',
|
|
'29' => 'V',
|
|
'30' => 'N.V',
|
|
'31' => 'R.V',
|
|
'32' => 'N.R.V',
|
|
'34' => 'N.R.D',
|
|
'40' => 'R.D',
|
|
'42' => 'R.D.V',
|
|
'43' => 'N.D.V',
|
|
'44' => 'D',
|
|
'45' => 'N.D',
|
|
'46' => 'F',
|
|
'47' => 'V',
|
|
'48' => 'I',
|
|
'49' => 'F.S.N.R.D.V',
|
|
'50' => 'F.S.N.R.D',
|
|
'51' => 'F.N.R.D.V',
|
|
'52' => 'F.S.R.D.V',
|
|
'68' => 'F.S.R.D',
|
|
'53' => 'F.R.D.V',
|
|
'69' => 'F.S.N.D',
|
|
'54' => 'F.N.D.V',
|
|
'55' => 'F.S.D.V',
|
|
'67' => 'F.S.N.R',
|
|
'56' => 'F.S.N',
|
|
'73' => 'F.S.D',
|
|
'57' => 'F.D.V',
|
|
'58' => 'F.R.V',
|
|
'59' => 'F.S.R',
|
|
'60' => 'F.N.R',
|
|
'61' => 'F.R.D',
|
|
'70' => 'F.N.D',
|
|
'72' => 'F.N.V',
|
|
'71' => 'F.S.V',
|
|
'62' => 'F.S',
|
|
'63' => 'F.R',
|
|
'64' => 'F.N',
|
|
'65' => 'D.F',
|
|
'66' => 'F.V',
|
|
'67' => 'N.R.D.V'
|
|
);
|
|
}
|
|
?>
|