*Merge branch 'master' of https://github.com/xdrm-brackets/projetphp
merge remote
This commit is contained in:
commit
b477e9d1dd
318
Docs/BDD.sql
318
Docs/BDD.sql
|
@ -3,9 +3,9 @@
|
|||
-- http://www.phpmyadmin.net
|
||||
--
|
||||
-- Client : localhost
|
||||
-- Généré le : Mar 08 Décembre 2015 à 08:30
|
||||
-- Généré le : Jeu 10 Décembre 2015 à 09:46
|
||||
-- Version du serveur : 10.1.9-MariaDB-log
|
||||
-- Version de PHP : 7.0.0RC7
|
||||
-- Version de PHP : 7.0.0
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET time_zone = "+00:00";
|
||||
|
@ -146,17 +146,17 @@ INSERT INTO `Medecin` (`Id`, `Civilite`, `Prenom`, `Nom`) VALUES
|
|||
--
|
||||
|
||||
CREATE TABLE `Patient` (
|
||||
`Id` int(11) NOT NULL,
|
||||
`Civilite` char(1) NOT NULL,
|
||||
`Nom` varchar(45) CHARACTER SET big5 NOT NULL,
|
||||
`Prenom` varchar(45) NOT NULL,
|
||||
`Adresse` varchar(255) NOT NULL,
|
||||
`Adresse 2` varchar(255) DEFAULT NULL,
|
||||
`Adresse2` varchar(255) DEFAULT NULL,
|
||||
`Ville` varchar(50) NOT NULL,
|
||||
`CodePostal` varchar(5) NOT NULL,
|
||||
`DateNaissance` date NOT NULL,
|
||||
`LieuNaissance` varchar(50) NOT NULL,
|
||||
`NumSecuriteSociale` varchar(15) NOT NULL,
|
||||
`Id` int(11) NOT NULL,
|
||||
`MedecinTraitant` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
|
@ -164,107 +164,107 @@ CREATE TABLE `Patient` (
|
|||
-- Contenu de la table `Patient`
|
||||
--
|
||||
|
||||
INSERT INTO `Patient` (`Civilite`, `Nom`, `Prenom`, `Adresse`, `Adresse 2`, `Ville`, `CodePostal`, `DateNaissance`, `LieuNaissance`, `NumSecuriteSociale`, `Id`, `MedecinTraitant`) VALUES
|
||||
('M', 'SILVA', 'Lena', '649 Banner Avenue, Tooleville, Iowa', NULL, 'North Dakota', '52882', '1911-09-13', 'Texas', '12698948371', 1, 33),
|
||||
('F', 'KEMP', 'Clay', '807 Beayer Place, Linganore, New Hampshire', NULL, 'South Dakota', '61218', '2010-08-20', 'Arkansas', '20628078948', 2, 70),
|
||||
('M', 'PAUL', 'Buck', '494 Macdougal Street, Chumuckla, Marshall Islands', NULL, 'Massachusetts', '68865', '1910-12-09', 'Federated States Of Micronesia', '15945373003', 3, 9),
|
||||
('M', 'GARNER', 'Martina', '339 Frank Court, Defiance, West Virginia', NULL, 'Puerto Rico', '62671', '2008-10-01', 'Hawaii', '19329610967', 4, 66),
|
||||
('F', 'BURCH', 'Chasity', '866 Clarendon Road, Cumminsville, Virginia', NULL, 'Vermont', '38435', '2012-06-25', 'Arizona', '27391164606', 5, 25),
|
||||
('F', 'JEFFERSON', 'Shana', '175 Wyckoff Street, Trucksville, South Carolina', NULL, 'New Mexico', '85431', '2006-10-15', 'Mississippi', '26819094421', 6, 30),
|
||||
('F', 'BLAKE', 'Arlene', '859 Debevoise Street, Russellville, Virgin Islands', NULL, 'Wyoming', '61926', '1966-06-18', 'Pennsylvania', '23960497083', 7, 93),
|
||||
('F', 'DIAZ', 'Dawn', '273 Madison Street, Boonville, Idaho', NULL, 'North Carolina', '02209', '2006-10-04', 'Rhode Island', '27215823739', 8, 40),
|
||||
('F', 'WHITLEY', 'Franco', '693 Horace Court, Rockbridge, Florida', NULL, 'California', '97479', '1927-06-07', 'Indiana', '29328474141', 9, 46),
|
||||
('M', 'BUCK', 'Beck', '919 Cleveland Street, Barronett, Montana', NULL, 'Palau', '48585', '2012-12-09', 'American Samoa', '19699641707', 10, 67),
|
||||
('M', 'COLE', 'Solomon', '412 Elizabeth Place, Bannock, Wisconsin', NULL, 'Michigan', '12693', '1935-04-15', 'Tennessee', '10678642104', 11, 89),
|
||||
('M', 'VASQUEZ', 'Best', '335 Krier Place, Tedrow, Delaware', NULL, 'Connecticut', '32627', '2007-08-28', 'Guam', '19009855991', 12, 32),
|
||||
('M', 'ROSS', 'Clark', '979 Celeste Court, Hessville, Louisiana', NULL, 'Northern Mariana Islands', '87310', '2007-06-27', 'Illinois', '11086416557', 13, 72),
|
||||
('M', 'CHEN', 'Ida', '205 Malta Street, Camas, Oklahoma', NULL, 'Alaska', '14500', '1927-06-02', 'New York', '17998195070', 14, 35),
|
||||
('F', 'BUCKLEY', 'Kathie', '415 Varick Street, Watchtower, Nevada', NULL, 'Minnesota', '87418', '2010-11-20', 'Colorado', '28577369272', 15, 29),
|
||||
('F', 'FOX', 'Mitchell', '474 Navy Walk, Waterford, Alabama', NULL, 'Kentucky', '20730', '2008-12-13', 'Missouri', '23197712678', 16, 94),
|
||||
('M', 'GOODMAN', 'Anthony', '526 Dodworth Street, Shawmut, Kansas', NULL, 'Ohio', '73624', '2000-11-21', 'Nebraska', '14355429029', 17, 87),
|
||||
('M', 'SAWYER', 'Brigitte', '490 Ebony Court, Steinhatchee, Maryland', NULL, 'Maine', '90009', '1993-09-30', 'Georgia', '19496691291', 18, 12),
|
||||
('F', 'CHRISTENSEN', 'Bates', '743 Middleton Street, Lowell, District Of Columbia', NULL, 'Washington', '43676', '2015-09-05', 'Oregon', '29308759372', 19, 84),
|
||||
('M', 'TALLEY', 'Angela', '524 Wythe Avenue, Bawcomville, New Jersey', NULL, 'Iowa', '50898', '2003-10-30', 'North Dakota', '11465049462', 20, 43),
|
||||
('F', 'COLEMAN', 'Logan', '238 Kent Street, Celeryville, Texas', NULL, 'New Hampshire', '06311', '2008-03-17', 'South Dakota', '28533965670', 21, 21),
|
||||
('M', 'MCCULLOUGH', 'Newman', '199 Kane Place, Yogaville, Arkansas', NULL, 'Marshall Islands', '80883', '2002-07-04', 'Massachusetts', '13498991796', 22, 48),
|
||||
('M', 'ROWLAND', 'Koch', '676 Oliver Street, Kraemer, Federated States Of Micronesia', NULL, 'West Virginia', '52228', '1998-05-18', 'Puerto Rico', '15879675253', 23, 63),
|
||||
('M', 'COOLEY', 'Matthews', '610 Arlington Avenue, Kennedyville, Hawaii', NULL, 'Virginia', '57187', '2003-05-13', 'Vermont', '12165901177', 24, 35),
|
||||
('M', 'PENNINGTON', 'Robbins', '101 Falmouth Street, Unionville, Arizona', NULL, 'South Carolina', '16649', '2012-09-12', 'New Mexico', '13627814148', 25, 50),
|
||||
('M', 'FARLEY', 'Austin', '869 Duffield Street, Rivers, Mississippi', NULL, 'Virgin Islands', '41659', '2002-08-03', 'Wyoming', '19094300308', 26, 8),
|
||||
('M', 'VELAZQUEZ', 'Winifred', '594 Rock Street, Fairacres, Pennsylvania', NULL, 'Idaho', '99838', '1981-06-30', 'North Carolina', '15647563918', 27, 24),
|
||||
('F', 'WALLACE', 'Frost', '135 Sapphire Street, Tolu, Rhode Island', NULL, 'Florida', '85278', '2007-11-12', 'California', '25913410982', 28, 39),
|
||||
('M', 'STANLEY', 'Hood', '833 Fountain Avenue, Moraida, Indiana', NULL, 'Montana', '96419', '2006-08-16', 'Palau', '17946621124', 29, 26),
|
||||
('M', 'GILES', 'Maggie', '643 Joval Court, Trail, American Samoa', NULL, 'Wisconsin', '48204', '2012-03-04', 'Michigan', '10662686180', 30, 26),
|
||||
('F', 'ESPINOZA', 'Tamara', '371 Ralph Avenue, Cuylerville, Tennessee', NULL, 'Delaware', '07341', '2008-08-10', 'Connecticut', '20083172261', 31, 26),
|
||||
('F', 'HOLDER', 'Pena', '712 Channel Avenue, Richmond, Guam', NULL, 'Louisiana', '72630', '2013-06-17', 'Northern Mariana Islands', '29005097826', 32, 65),
|
||||
('M', 'STOKES', 'Strong', '389 Dank Court, Temperanceville, Illinois', NULL, 'Oklahoma', '19213', '1924-04-09', 'Alaska', '14386411303', 33, 82),
|
||||
('M', 'PENA', 'Pamela', '979 Dumont Avenue, Stollings, New York', NULL, 'Nevada', '01244', '2008-09-06', 'Minnesota', '19329398624', 34, 50),
|
||||
('F', 'LEON', 'Allen', '899 Nevins Street, Fedora, Colorado', NULL, 'Alabama', '14863', '2015-05-10', 'Kentucky', '20535405226', 35, 52),
|
||||
('M', 'STOUT', 'Gamble', '238 Oceanview Avenue, Graball, Missouri', NULL, 'Kansas', '35626', '2011-12-13', 'Ohio', '16717569080', 36, 67),
|
||||
('M', 'BUTLER', 'Shawn', '563 Interborough Parkway, Lupton, Nebraska', NULL, 'Maryland', '82759', '1953-09-09', 'Maine', '18681124800', 37, 45),
|
||||
('F', 'HENDRICKS', 'Ayala', '839 Navy Street, Grahamtown, Georgia', NULL, 'District Of Columbia', '60566', '2004-07-12', 'Washington', '29995060639', 38, 48),
|
||||
('M', 'MAYO', 'Hicks', '626 Wilson Street, Noxen, Oregon', NULL, 'New Jersey', '87938', '2002-10-26', 'Iowa', '11993094532', 39, 45),
|
||||
('M', 'ATKINS', 'Cecelia', '210 Humboldt Street, Elbert, North Dakota', NULL, 'Texas', '17198', '2002-08-06', 'New Hampshire', '15111976539', 40, 49),
|
||||
('F', 'SUMMERS', 'Pauline', '550 Lorimer Street, Hailesboro, South Dakota', NULL, 'Arkansas', '95004', '1958-10-05', 'Marshall Islands', '28350963212', 41, 47),
|
||||
('F', 'GREER', 'Shelly', '469 Livonia Avenue, Lodoga, Massachusetts', NULL, 'Federated States Of Micronesia', '30292', '2001-01-30', 'West Virginia', '21326809626', 42, 67),
|
||||
('F', 'NIEVES', 'Wilma', '450 Guider Avenue, Selma, Puerto Rico', NULL, 'Hawaii', '39647', '1917-02-04', 'Virginia', '27216034661', 43, 5),
|
||||
('F', 'WALLER', 'Duncan', '255 Blake Court, Freetown, Vermont', NULL, 'Arizona', '48683', '2008-03-07', 'South Carolina', '25345198647', 44, 36),
|
||||
('M', 'VINCENT', 'Glenna', '727 Leonora Court, Tryon, New Mexico', NULL, 'Mississippi', '55687', '2009-10-09', 'Virgin Islands', '10271387742', 45, 16),
|
||||
('F', 'WILKERSON', 'Kelley', '304 Bleecker Street, Concho, Wyoming', NULL, 'Pennsylvania', '30593', '2004-10-12', 'Idaho', '20837368947', 46, 76),
|
||||
('M', 'CHAVEZ', 'Carolina', '620 Cumberland Street, Greer, North Carolina', NULL, 'Rhode Island', '72334', '1996-06-02', 'Florida', '13128264581', 47, 39),
|
||||
('F', 'CORTEZ', 'Donaldson', '654 Diamond Street, Bonanza, California', NULL, 'Indiana', '67633', '1936-05-13', 'Montana', '20450513660', 48, 5),
|
||||
('M', 'WHITAKER', 'Geraldine', '248 Louisiana Avenue, Hobucken, Palau', NULL, 'American Samoa', '19680', '1912-01-11', 'Wisconsin', '14501409312', 49, 71),
|
||||
('F', 'WILSON', 'Isabelle', '319 Stryker Street, Henrietta, Michigan', NULL, 'Tennessee', '75542', '2013-09-30', 'Delaware', '21523135649', 50, 93),
|
||||
('F', 'KLINE', 'Shirley', '325 Newel Street, Retsof, Connecticut', NULL, 'Guam', '67214', '2006-04-28', 'Louisiana', '29829440387', 51, 97),
|
||||
('F', 'CROSBY', 'Sweet', '406 Dekalb Avenue, Nadine, Northern Mariana Islands', NULL, 'Illinois', '18491', '2002-10-02', 'Oklahoma', '22799689361', 52, 15),
|
||||
('M', 'PRUITT', 'Bette', '140 Voorhies Avenue, Weedville, Alaska', NULL, 'New York', '73961', '1961-11-01', 'Nevada', '11917517213', 53, 59),
|
||||
('F', 'LARSEN', 'Julianne', '706 Tiffany Place, Eagleville, Minnesota', NULL, 'Colorado', '39520', '1984-01-12', 'Alabama', '29343266278', 54, 29),
|
||||
('F', 'NICHOLS', 'Mckay', '383 Dewey Place, Lithium, Kentucky', NULL, 'Missouri', '20493', '1929-07-17', 'Kansas', '21719339678', 55, 47),
|
||||
('M', 'REEVES', 'Vasquez', '164 Cozine Avenue, Tecolotito, Ohio', NULL, 'Nebraska', '64893', '2009-06-25', 'Maryland', '16427456557', 56, 40),
|
||||
('M', 'HERRING', 'Finch', '798 Albemarle Road, Gouglersville, Maine', NULL, 'Georgia', '58812', '1957-06-18', 'District Of Columbia', '13122477225', 57, 24),
|
||||
('M', 'HOLLOWAY', 'Cummings', '522 Howard Alley, Escondida, Washington', NULL, 'Oregon', '62194', '1960-09-09', 'New Jersey', '19596957459', 58, 89),
|
||||
('M', 'MILLER', 'Oliver', '273 Lenox Road, Norwood, Iowa', NULL, 'North Dakota', '62699', '1932-03-25', 'Texas', '19968426193', 59, 57),
|
||||
('M', 'CAMPOS', 'Hart', '787 Polhemus Place, Motley, New Hampshire', NULL, 'South Dakota', '77516', '2007-12-21', 'Arkansas', '17253462074', 60, 31),
|
||||
('M', 'CASE', 'Henson', '174 Stillwell Place, Mulino, Marshall Islands', NULL, 'Massachusetts', '85870', '2001-09-11', 'Federated States Of Micronesia', '12489367510', 61, 96),
|
||||
('M', 'HANSEN', 'Melisa', '349 Berriman Street, Shasta, West Virginia', NULL, 'Puerto Rico', '48480', '2000-12-22', 'Hawaii', '12589313144', 62, 6),
|
||||
('F', 'DALE', 'Jean', '169 Bay Parkway, Mayfair, Virginia', NULL, 'Vermont', '98518', '2009-06-09', 'Arizona', '22810920517', 63, 86),
|
||||
('F', 'GONZALEZ', 'Combs', '374 Merit Court, Sperryville, South Carolina', NULL, 'New Mexico', '59695', '2013-05-27', 'Mississippi', '20990109001', 64, 61),
|
||||
('M', 'SWEENEY', 'Edith', '995 Maple Avenue, Ilchester, Virgin Islands', NULL, 'Wyoming', '67276', '2007-02-02', 'Pennsylvania', '16022894937', 65, 70),
|
||||
('F', 'STRONG', 'Jacquelyn', '626 Hazel Court, Allensworth, Idaho', NULL, 'North Carolina', '67826', '2005-07-12', 'Rhode Island', '20684605971', 66, 56),
|
||||
('F', 'RIVERA', 'Leigh', '708 Quay Street, Hachita, Florida', NULL, 'California', '91928', '2005-12-05', 'Indiana', '29628059742', 67, 33),
|
||||
('F', 'MYERS', 'Gladys', '141 Heyward Street, Darbydale, Montana', NULL, 'Palau', '84636', '1969-09-14', 'American Samoa', '28694761131', 68, 40),
|
||||
('F', 'KELLER', 'Terry', '170 Hanover Place, Boykin, Wisconsin', NULL, 'Michigan', '78173', '2014-01-01', 'Tennessee', '26102225068', 69, 22),
|
||||
('M', 'MAY', 'Snyder', '854 Orange Street, Stouchsburg, Delaware', NULL, 'Connecticut', '55484', '1936-10-14', 'Guam', '16217199153', 70, 75),
|
||||
('M', 'DOTSON', 'Joanna', '976 Albany Avenue, Saranap, Louisiana', NULL, 'Northern Mariana Islands', '88021', '2003-04-25', 'Illinois', '18490418466', 71, 58),
|
||||
('F', 'CRANE', 'Sampson', '574 Summit Street, Johnsonburg, Oklahoma', NULL, 'Alaska', '09843', '2013-01-22', 'New York', '27655744344', 72, 58),
|
||||
('M', 'ROBERTS', 'Elizabeth', '679 Highland Place, Riviera, Nevada', NULL, 'Minnesota', '28575', '1934-06-02', 'Colorado', '19433331796', 73, 8),
|
||||
('F', 'DELANEY', 'Gross', '467 Butler Place, Aurora, Alabama', NULL, 'Kentucky', '69364', '2005-01-08', 'Missouri', '22011388800', 74, 46),
|
||||
('M', 'ROBERSON', 'Claire', '792 Nichols Avenue, Roulette, Kansas', NULL, 'Ohio', '01221', '1919-11-19', 'Nebraska', '16305786338', 75, 80),
|
||||
('F', 'CONRAD', 'Tammi', '621 Crystal Street, Newkirk, Maryland', NULL, 'Maine', '03729', '2010-05-19', 'Georgia', '25770649159', 76, 23),
|
||||
('F', 'ERICKSON', 'Grace', '736 Commerce Street, Beechmont, District Of Columbia', NULL, 'Washington', '32188', '2002-08-09', 'Oregon', '23105547041', 77, 99),
|
||||
('F', 'STEWART', 'Alston', '807 Empire Boulevard, Keyport, New Jersey', NULL, 'Iowa', '73784', '1923-04-03', 'North Dakota', '27009664661', 78, 17),
|
||||
('M', 'RIOS', 'Terri', '462 Fanchon Place, Zeba, Texas', NULL, 'New Hampshire', '50920', '2012-12-10', 'South Dakota', '13800615485', 79, 3),
|
||||
('F', 'BOND', 'Spence', '803 Amherst Street, Rosine, Arkansas', NULL, 'Marshall Islands', '11222', '1975-07-18', 'Massachusetts', '23767781414', 80, 77),
|
||||
('M', 'BARTON', 'Blake', '636 Prince Street, Mammoth, Federated States Of Micronesia', NULL, 'West Virginia', '17295', '2014-09-29', 'Puerto Rico', '10219535739', 81, 22),
|
||||
('M', 'VANG', 'Monica', '691 Gerry Street, Toftrees, Hawaii', NULL, 'Virginia', '17720', '2006-07-08', 'Vermont', '19231014062', 82, 41),
|
||||
('F', 'FIELDS', 'Giles', '189 Sullivan Place, Hilltop, Arizona', NULL, 'South Carolina', '93234', '1945-10-11', 'New Mexico', '24846926528', 83, 75),
|
||||
('M', 'CLAY', 'Dalton', '375 Fay Court, Greensburg, Mississippi', NULL, 'Virgin Islands', '15908', '1939-12-22', 'Wyoming', '19933111163', 84, 24),
|
||||
('M', 'WEEKS', 'Tonya', '411 Milton Street, Valmy, Pennsylvania', NULL, 'Idaho', '64798', '2004-02-08', 'North Carolina', '17176317887', 85, 24),
|
||||
('F', 'WALTER', 'Sanford', '984 Rapelye Street, Oasis, Rhode Island', NULL, 'Florida', '19871', '2007-02-03', 'California', '22983447225', 86, 85),
|
||||
('M', 'SCHWARTZ', 'Mae', '740 Kossuth Place, Tyro, Indiana', NULL, 'Montana', '56876', '2010-11-17', 'Palau', '18050339720', 87, 8),
|
||||
('F', 'HILL', 'Alyson', '935 Bay Avenue, Neibert, American Samoa', NULL, 'Wisconsin', '81361', '2006-11-22', 'Michigan', '24102999369', 88, 37),
|
||||
('F', 'BAKER', 'Judy', '159 Kenilworth Place, Washington, Tennessee', NULL, 'Delaware', '23849', '2012-11-08', 'Connecticut', '28124601703', 89, 92),
|
||||
('F', 'VALDEZ', 'Phelps', '207 Grant Avenue, Buxton, Guam', NULL, 'Louisiana', '39088', '1948-10-28', 'Northern Mariana Islands', '23363949354', 90, 18),
|
||||
('M', 'TERRY', 'Bernadine', '126 Cook Street, Drummond, Illinois', NULL, 'Oklahoma', '82875', '1902-12-13', 'Alaska', '10607274186', 91, 54),
|
||||
('F', 'COFFEY', 'Mabel', '242 Dupont Street, Wiscon, New York', NULL, 'Nevada', '34688', '2015-10-18', 'Minnesota', '20291563081', 92, 95),
|
||||
('F', 'TODD', 'Lucy', '158 Jardine Place, Bowie, Colorado', NULL, 'Alabama', '84196', '2011-01-08', 'Kentucky', '29773564480', 93, 24),
|
||||
('F', 'MENDEZ', 'Joann', '584 Kiely Place, Frizzleburg, Missouri', NULL, 'Kansas', '80528', '2007-04-19', 'Ohio', '22504705446', 94, 47),
|
||||
('F', 'KIRKLAND', 'Patrice', '924 Bond Street, Katonah, Nebraska', NULL, 'Maryland', '56940', '1972-03-21', 'Maine', '25277175911', 95, 34),
|
||||
('F', 'NASH', 'Sexton', '323 Coventry Road, Spelter, Georgia', NULL, 'District Of Columbia', '74403', '1994-03-26', 'Washington', '20857808066', 96, 100),
|
||||
('M', 'FLORES', 'Yvonne', '606 Beacon Court, Westwood, Oregon', NULL, 'New Jersey', '17963', '1977-08-10', 'Iowa', '10912788354', 97, 81),
|
||||
('F', 'IRWIN', 'Helene', '747 Martense Street, Lafferty, North Dakota', NULL, 'Texas', '00597', '1953-06-21', 'New Hampshire', '21111493296', 98, 96),
|
||||
('F', 'JACOBSON', 'Wendi', '482 Poly Place, Veyo, South Dakota', NULL, 'Arkansas', '54428', '1980-12-11', 'Marshall Islands', '20915062532', 99, 69),
|
||||
('F', 'RICH', 'Guerra', '191 Hart Street, Teasdale, Massachusetts', NULL, 'Federated States Of Micronesia', '67771', '2001-05-16', 'West Virginia', '24748914281', 100, 71);
|
||||
INSERT INTO `Patient` (`Id`, `Civilite`, `Nom`, `Prenom`, `Adresse`, `Adresse2`, `Ville`, `CodePostal`, `DateNaissance`, `LieuNaissance`, `NumSecuriteSociale`, `MedecinTraitant`) VALUES
|
||||
(1, 'M', 'SILVA', 'Lena', '649 Banner Avenue, Tooleville, Iowa', NULL, 'North Dakota', '52882', '1911-09-13', 'Texas', '12698948371', 33),
|
||||
(2, 'F', 'KEMP', 'Clay', '807 Beayer Place, Linganore, New Hampshire', NULL, 'South Dakota', '61218', '2010-08-20', 'Arkansas', '20628078948', 88),
|
||||
(3, 'M', 'PAUL', 'Buck', '494 Macdougal Street, Chumuckla, Marshall Islands', NULL, 'Massachusetts', '68865', '1910-12-09', 'Federated States Of Micronesia', '15945373003', 9),
|
||||
(4, 'M', 'GARNER', 'Martina', '339 Frank Court, Defiance, West Virginia', NULL, 'Puerto Rico', '62671', '2008-10-01', 'Hawaii', '19329610967', 66),
|
||||
(5, 'F', 'BURCH', 'Chasity', '866 Clarendon Road, Cumminsville, Virginia', NULL, 'Vermont', '38435', '2012-06-25', 'Arizona', '27391164606', 25),
|
||||
(6, 'F', 'JEFFERSON', 'Shana', '175 Wyckoff Street, Trucksville, South Carolina', NULL, 'New Mexico', '85431', '2006-10-15', 'Mississippi', '26819094421', 30),
|
||||
(7, 'F', 'BLAKE', 'Arlene', '859 Debevoise Street, Russellville, Virgin Islands', NULL, 'Wyoming', '61926', '1966-06-18', 'Pennsylvania', '23960497083', 93),
|
||||
(8, 'F', 'DIAZ', 'Dawn', '273 Madison Street, Boonville, Idaho', NULL, 'North Carolina', '02209', '2006-10-04', 'Rhode Island', '27215823739', 40),
|
||||
(9, 'F', 'WHITLEY', 'Franco', '693 Horace Court, Rockbridge, Florida', NULL, 'California', '97479', '1927-06-07', 'Indiana', '29328474141', 46),
|
||||
(10, 'M', 'BUCK', 'Beck', '919 Cleveland Street, Barronett, Montana', NULL, 'Palau', '48585', '2012-12-09', 'American Samoa', '19699641707', 67),
|
||||
(11, 'M', 'COLE', 'Solomon', '412 Elizabeth Place, Bannock, Wisconsin', NULL, 'Michigan', '12693', '1935-04-15', 'Tennessee', '10678642104', 89),
|
||||
(12, 'M', 'VASQUEZ', 'Best', '335 Krier Place, Tedrow, Delaware', NULL, 'Connecticut', '32627', '2007-08-28', 'Guam', '19009855991', 32),
|
||||
(13, 'M', 'ROSS', 'Clark', '979 Celeste Court, Hessville, Louisiana', NULL, 'Northern Mariana Islands', '87310', '2007-06-27', 'Illinois', '11086416557', 72),
|
||||
(14, 'M', 'CHEN', 'Ida', '205 Malta Street, Camas, Oklahoma', NULL, 'Alaska', '14500', '1927-06-02', 'New York', '17998195070', 35),
|
||||
(15, 'F', 'BUCKLEY', 'Kathie', '415 Varick Street, Watchtower, Nevada', NULL, 'Minnesota', '87418', '2010-11-20', 'Colorado', '28577369272', 29),
|
||||
(16, 'F', 'FOX', 'Mitchell', '474 Navy Walk, Waterford, Alabama', NULL, 'Kentucky', '20730', '2008-12-13', 'Missouri', '23197712678', 94),
|
||||
(17, 'M', 'GOODMAN', 'Anthony', '526 Dodworth Street, Shawmut, Kansas', NULL, 'Ohio', '73624', '2000-11-21', 'Nebraska', '14355429029', 87),
|
||||
(18, 'M', 'SAWYER', 'Brigitte', '490 Ebony Court, Steinhatchee, Maryland', NULL, 'Maine', '90009', '1993-09-30', 'Georgia', '19496691291', 12),
|
||||
(19, 'F', 'CHRISTENSEN', 'Bates', '743 Middleton Street, Lowell, District Of Columbia', NULL, 'Washington', '43676', '2015-09-05', 'Oregon', '29308759372', 84),
|
||||
(20, 'M', 'TALLEY', 'Angela', '524 Wythe Avenue, Bawcomville, New Jersey', NULL, 'Iowa', '50898', '2003-10-30', 'North Dakota', '11465049462', 43),
|
||||
(21, 'F', 'COLEMAN', 'Logan', '238 Kent Street, Celeryville, Texas', NULL, 'New Hampshire', '06311', '2008-03-17', 'South Dakota', '28533965670', 21),
|
||||
(22, 'M', 'MCCULLOUGH', 'Newman', '199 Kane Place, Yogaville, Arkansas', NULL, 'Marshall Islands', '80883', '2002-07-04', 'Massachusetts', '13498991796', 48),
|
||||
(23, 'M', 'ROWLAND', 'Koch', '676 Oliver Street, Kraemer, Federated States Of Micronesia', NULL, 'West Virginia', '52228', '1998-05-18', 'Puerto Rico', '15879675253', 63),
|
||||
(24, 'M', 'COOLEY', 'Matthews', '610 Arlington Avenue, Kennedyville, Hawaii', NULL, 'Virginia', '57187', '2003-05-13', 'Vermont', '12165901177', 35),
|
||||
(25, 'M', 'PENNINGTON', 'Robbins', '101 Falmouth Street, Unionville, Arizona', NULL, 'South Carolina', '16649', '2012-09-12', 'New Mexico', '13627814148', 50),
|
||||
(26, 'M', 'FARLEY', 'Austin', '869 Duffield Street, Rivers, Mississippi', NULL, 'Virgin Islands', '41659', '2002-08-03', 'Wyoming', '19094300308', 8),
|
||||
(27, 'M', 'VELAZQUEZ', 'Winifred', '594 Rock Street, Fairacres, Pennsylvania', NULL, 'Idaho', '99838', '1981-06-30', 'North Carolina', '15647563918', 24),
|
||||
(28, 'F', 'WALLACE', 'Frost', '135 Sapphire Street, Tolu, Rhode Island', NULL, 'Florida', '85278', '2007-11-12', 'California', '25913410982', 39),
|
||||
(29, 'M', 'STANLEY', 'Hood', '833 Fountain Avenue, Moraida, Indiana', NULL, 'Montana', '96419', '2006-08-16', 'Palau', '17946621124', 26),
|
||||
(30, 'M', 'GILES', 'Maggie', '643 Joval Court, Trail, American Samoa', NULL, 'Wisconsin', '48204', '2012-03-04', 'Michigan', '10662686180', 26),
|
||||
(31, 'F', 'ESPINOZA', 'Tamara', '371 Ralph Avenue, Cuylerville, Tennessee', NULL, 'Delaware', '07341', '2008-08-10', 'Connecticut', '20083172261', 26),
|
||||
(32, 'F', 'HOLDER', 'Pena', '712 Channel Avenue, Richmond, Guam', NULL, 'Louisiana', '72630', '2013-06-17', 'Northern Mariana Islands', '29005097826', 65),
|
||||
(33, 'M', 'STOKES', 'Strong', '389 Dank Court, Temperanceville, Illinois', NULL, 'Oklahoma', '19213', '1924-04-09', 'Alaska', '14386411303', 82),
|
||||
(34, 'M', 'PENA', 'Pamela', '979 Dumont Avenue, Stollings, New York', NULL, 'Nevada', '01244', '2008-09-06', 'Minnesota', '19329398624', 50),
|
||||
(35, 'F', 'LEON', 'Allen', '899 Nevins Street, Fedora, Colorado', NULL, 'Alabama', '14863', '2015-05-10', 'Kentucky', '20535405226', 52),
|
||||
(36, 'M', 'STOUT', 'Gamble', '238 Oceanview Avenue, Graball, Missouri', NULL, 'Kansas', '35626', '2011-12-13', 'Ohio', '16717569080', 67),
|
||||
(37, 'M', 'BUTLER', 'Shawn', '563 Interborough Parkway, Lupton, Nebraska', NULL, 'Maryland', '82759', '1953-09-09', 'Maine', '18681124800', 45),
|
||||
(38, 'F', 'HENDRICKS', 'Ayala', '839 Navy Street, Grahamtown, Georgia', NULL, 'District Of Columbia', '60566', '2004-07-12', 'Washington', '29995060639', 48),
|
||||
(39, 'M', 'MAYO', 'Hicks', '626 Wilson Street, Noxen, Oregon', NULL, 'New Jersey', '87938', '2002-10-26', 'Iowa', '11993094532', 45),
|
||||
(40, 'M', 'ATKINS', 'Cecelia', '210 Humboldt Street, Elbert, North Dakota', NULL, 'Texas', '17198', '2002-08-06', 'New Hampshire', '15111976539', 49),
|
||||
(41, 'F', 'SUMMERS', 'Pauline', '550 Lorimer Street, Hailesboro, South Dakota', NULL, 'Arkansas', '95004', '1958-10-05', 'Marshall Islands', '28350963212', 47),
|
||||
(42, 'F', 'GREER', 'Shelly', '469 Livonia Avenue, Lodoga, Massachusetts', NULL, 'Federated States Of Micronesia', '30292', '2001-01-30', 'West Virginia', '21326809626', 67),
|
||||
(43, 'F', 'NIEVES', 'Wilma', '450 Guider Avenue, Selma, Puerto Rico', NULL, 'Hawaii', '39647', '1917-02-04', 'Virginia', '27216034661', 5),
|
||||
(44, 'F', 'WALLER', 'Duncan', '255 Blake Court, Freetown, Vermont', NULL, 'Arizona', '48683', '2008-03-07', 'South Carolina', '25345198647', 36),
|
||||
(45, 'M', 'VINCENT', 'Glenna', '727 Leonora Court, Tryon, New Mexico', NULL, 'Mississippi', '55687', '2009-10-09', 'Virgin Islands', '10271387742', 16),
|
||||
(46, 'F', 'WILKERSON', 'Kelley', '304 Bleecker Street, Concho, Wyoming', NULL, 'Pennsylvania', '30593', '2004-10-12', 'Idaho', '20837368947', 76),
|
||||
(47, 'M', 'CHAVEZ', 'Carolina', '620 Cumberland Street, Greer, North Carolina', NULL, 'Rhode Island', '72334', '1996-06-02', 'Florida', '13128264581', 39),
|
||||
(48, 'F', 'CORTEZ', 'Donaldson', '654 Diamond Street, Bonanza, California', NULL, 'Indiana', '67633', '1936-05-13', 'Montana', '20450513660', 5),
|
||||
(49, 'M', 'WHITAKER', 'Geraldine', '248 Louisiana Avenue, Hobucken, Palau', NULL, 'American Samoa', '19680', '1912-01-11', 'Wisconsin', '14501409312', 71),
|
||||
(50, 'F', 'WILSON', 'Isabelle', '319 Stryker Street, Henrietta, Michigan', NULL, 'Tennessee', '75542', '2013-09-30', 'Delaware', '21523135649', 93),
|
||||
(51, 'F', 'KLINE', 'Shirley', '325 Newel Street, Retsof, Connecticut', NULL, 'Guam', '67214', '2006-04-28', 'Louisiana', '29829440387', 97),
|
||||
(52, 'F', 'CROSBY', 'Sweet', '406 Dekalb Avenue, Nadine, Northern Mariana Islands', NULL, 'Illinois', '18491', '2002-10-02', 'Oklahoma', '22799689361', 15),
|
||||
(53, 'M', 'PRUITT', 'Bette', '140 Voorhies Avenue, Weedville, Alaska', NULL, 'New York', '73961', '1961-11-01', 'Nevada', '11917517213', 59),
|
||||
(54, 'F', 'LARSEN', 'Julianne', '706 Tiffany Place, Eagleville, Minnesota', NULL, 'Colorado', '39520', '1984-01-12', 'Alabama', '29343266278', 29),
|
||||
(55, 'F', 'NICHOLS', 'Mckay', '383 Dewey Place, Lithium, Kentucky', NULL, 'Missouri', '20493', '1929-07-17', 'Kansas', '21719339678', 47),
|
||||
(56, 'M', 'REEVES', 'Vasquez', '164 Cozine Avenue, Tecolotito, Ohio', NULL, 'Nebraska', '64893', '2009-06-25', 'Maryland', '16427456557', 40),
|
||||
(57, 'M', 'HERRING', 'Finch', '798 Albemarle Road, Gouglersville, Maine', NULL, 'Georgia', '58812', '1957-06-18', 'District Of Columbia', '13122477225', 24),
|
||||
(58, 'M', 'HOLLOWAY', 'Cummings', '522 Howard Alley, Escondida, Washington', NULL, 'Oregon', '62194', '1960-09-09', 'New Jersey', '19596957459', 89),
|
||||
(59, 'M', 'MILLER', 'Oliver', '273 Lenox Road, Norwood, Iowa', NULL, 'North Dakota', '62699', '1932-03-25', 'Texas', '19968426193', 57),
|
||||
(60, 'M', 'CAMPOS', 'Hart', '787 Polhemus Place, Motley, New Hampshire', NULL, 'South Dakota', '77516', '2007-12-21', 'Arkansas', '17253462074', 31),
|
||||
(61, 'M', 'CASE', 'Henson', '174 Stillwell Place, Mulino, Marshall Islands', NULL, 'Massachusetts', '85870', '2001-09-11', 'Federated States Of Micronesia', '12489367510', 96),
|
||||
(62, 'M', 'HANSEN', 'Melisa', '349 Berriman Street, Shasta, West Virginia', NULL, 'Puerto Rico', '48480', '2000-12-22', 'Hawaii', '12589313144', 6),
|
||||
(63, 'F', 'DALE', 'Jean', '169 Bay Parkway, Mayfair, Virginia', NULL, 'Vermont', '98518', '2009-06-09', 'Arizona', '22810920517', 86),
|
||||
(64, 'F', 'GONZALEZ', 'Combs', '374 Merit Court, Sperryville, South Carolina', NULL, 'New Mexico', '59695', '2013-05-27', 'Mississippi', '20990109001', 61),
|
||||
(65, 'M', 'SWEENEY', 'Edith', '995 Maple Avenue, Ilchester, Virgin Islands', NULL, 'Wyoming', '67276', '2007-02-02', 'Pennsylvania', '16022894937', 70),
|
||||
(66, 'F', 'STRONG', 'Jacquelyn', '626 Hazel Court, Allensworth, Idaho', NULL, 'North Carolina', '67826', '2005-07-12', 'Rhode Island', '20684605971', 56),
|
||||
(67, 'F', 'RIVERA', 'Leigh', '708 Quay Street, Hachita, Florida', NULL, 'California', '91928', '2005-12-05', 'Indiana', '29628059742', 33),
|
||||
(68, 'F', 'MYERS', 'Gladys', '141 Heyward Street, Darbydale, Montana', NULL, 'Palau', '84636', '1969-09-14', 'American Samoa', '28694761131', 40),
|
||||
(69, 'F', 'KELLER', 'Terry', '170 Hanover Place, Boykin, Wisconsin', NULL, 'Michigan', '78173', '2014-01-01', 'Tennessee', '26102225068', 22),
|
||||
(70, 'M', 'MAY', 'Snyder', '854 Orange Street, Stouchsburg, Delaware', NULL, 'Connecticut', '55484', '1936-10-14', 'Guam', '16217199153', 75),
|
||||
(71, 'M', 'DOTSON', 'Joanna', '976 Albany Avenue, Saranap, Louisiana', NULL, 'Northern Mariana Islands', '88021', '2003-04-25', 'Illinois', '18490418466', 58),
|
||||
(72, 'F', 'CRANE', 'Sampson', '574 Summit Street, Johnsonburg, Oklahoma', NULL, 'Alaska', '09843', '2013-01-22', 'New York', '27655744344', 58),
|
||||
(73, 'M', 'ROBERTS', 'Elizabeth', '679 Highland Place, Riviera, Nevada', NULL, 'Minnesota', '28575', '1934-06-02', 'Colorado', '19433331796', 8),
|
||||
(74, 'F', 'DELANEY', 'Gross', '467 Butler Place, Aurora, Alabama', NULL, 'Kentucky', '69364', '2005-01-08', 'Missouri', '22011388800', 46),
|
||||
(75, 'M', 'ROBERSON', 'Claire', '792 Nichols Avenue, Roulette, Kansas', NULL, 'Ohio', '01221', '1919-11-19', 'Nebraska', '16305786338', 80),
|
||||
(76, 'F', 'CONRAD', 'Tammi', '621 Crystal Street, Newkirk, Maryland', NULL, 'Maine', '03729', '2010-05-19', 'Georgia', '25770649159', 23),
|
||||
(77, 'F', 'ERICKSON', 'Grace', '736 Commerce Street, Beechmont, District Of Columbia', NULL, 'Washington', '32188', '2002-08-09', 'Oregon', '23105547041', 99),
|
||||
(78, 'F', 'STEWART', 'Alston', '807 Empire Boulevard, Keyport, New Jersey', NULL, 'Iowa', '73784', '1923-04-03', 'North Dakota', '27009664661', 17),
|
||||
(79, 'M', 'RIOS', 'Terri', '462 Fanchon Place, Zeba, Texas', NULL, 'New Hampshire', '50920', '2012-12-10', 'South Dakota', '13800615485', 3),
|
||||
(80, 'F', 'BOND', 'Spence', '803 Amherst Street, Rosine, Arkansas', NULL, 'Marshall Islands', '11222', '1975-07-18', 'Massachusetts', '23767781414', 77),
|
||||
(81, 'M', 'BARTON', 'Blake', '636 Prince Street, Mammoth, Federated States Of Micronesia', NULL, 'West Virginia', '17295', '2014-09-29', 'Puerto Rico', '10219535739', 22),
|
||||
(82, 'M', 'VANG', 'Monica', '691 Gerry Street, Toftrees, Hawaii', NULL, 'Virginia', '17720', '2006-07-08', 'Vermont', '19231014062', 41),
|
||||
(83, 'F', 'FIELDS', 'Giles', '189 Sullivan Place, Hilltop, Arizona', NULL, 'South Carolina', '93234', '1945-10-11', 'New Mexico', '24846926528', 75),
|
||||
(84, 'M', 'CLAY', 'Dalton', '375 Fay Court, Greensburg, Mississippi', NULL, 'Virgin Islands', '15908', '1939-12-22', 'Wyoming', '19933111163', 24),
|
||||
(85, 'M', 'WEEKS', 'Tonya', '411 Milton Street, Valmy, Pennsylvania', NULL, 'Idaho', '64798', '2004-02-08', 'North Carolina', '17176317887', 24),
|
||||
(86, 'F', 'WALTER', 'Sanford', '984 Rapelye Street, Oasis, Rhode Island', NULL, 'Florida', '19871', '2007-02-03', 'California', '22983447225', 85),
|
||||
(87, 'M', 'SCHWARTZ', 'Mae', '740 Kossuth Place, Tyro, Indiana', NULL, 'Montana', '56876', '2010-11-17', 'Palau', '18050339720', 8),
|
||||
(88, 'F', 'HILL', 'Alyson', '935 Bay Avenue, Neibert, American Samoa', NULL, 'Wisconsin', '81361', '2006-11-22', 'Michigan', '24102999369', 37),
|
||||
(89, 'F', 'BAKER', 'Judy', '159 Kenilworth Place, Washington, Tennessee', NULL, 'Delaware', '23849', '2012-11-08', 'Connecticut', '28124601703', 92),
|
||||
(90, 'F', 'VALDEZ', 'Phelps', '207 Grant Avenue, Buxton, Guam', NULL, 'Louisiana', '39088', '1948-10-28', 'Northern Mariana Islands', '23363949354', 18),
|
||||
(91, 'M', 'TERRY', 'Bernadine', '126 Cook Street, Drummond, Illinois', NULL, 'Oklahoma', '82875', '1902-12-13', 'Alaska', '10607274186', 54),
|
||||
(92, 'F', 'COFFEY', 'Mabel', '242 Dupont Street, Wiscon, New York', NULL, 'Nevada', '34688', '2015-10-18', 'Minnesota', '20291563081', 95),
|
||||
(93, 'F', 'TODD', 'Lucy', '158 Jardine Place, Bowie, Colorado', NULL, 'Alabama', '84196', '2011-01-08', 'Kentucky', '29773564480', 24),
|
||||
(94, 'F', 'MENDEZ', 'Joann', '584 Kiely Place, Frizzleburg, Missouri', NULL, 'Kansas', '80528', '2007-04-19', 'Ohio', '22504705446', 47),
|
||||
(95, 'F', 'KIRKLAND', 'Patrice', '924 Bond Street, Katonah, Nebraska', NULL, 'Maryland', '56940', '1972-03-21', 'Maine', '25277175911', 34),
|
||||
(96, 'F', 'NASH', 'Sexton', '323 Coventry Road, Spelter, Georgia', NULL, 'District Of Columbia', '74403', '1994-03-26', 'Washington', '20857808066', 100),
|
||||
(97, 'M', 'FLORES', 'Yvonne', '606 Beacon Court, Westwood, Oregon', NULL, 'New Jersey', '17963', '1977-08-10', 'Iowa', '10912788354', 81),
|
||||
(98, 'F', 'IRWIN', 'Helene', '747 Martense Street, Lafferty, North Dakota', NULL, 'Texas', '00597', '1953-06-21', 'New Hampshire', '21111493296', 96),
|
||||
(99, 'F', 'JACOBSON', 'Wendi', '482 Poly Place, Veyo, South Dakota', NULL, 'Arkansas', '54428', '1980-12-11', 'Marshall Islands', '20915062532', 69),
|
||||
(100, 'F', 'RICH', 'Guerra', '191 Hart Street, Teasdale, Massachusetts', NULL, 'Federated States Of Micronesia', '67771', '2001-05-16', 'West Virginia', '24748914281', 71);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
@ -285,8 +285,106 @@ CREATE TABLE `RDV` (
|
|||
--
|
||||
|
||||
INSERT INTO `RDV` (`Id`, `DateRDV`, `Duree`, `Patient_Id`, `Medecin_id`) VALUES
|
||||
(1, '2015-12-08 08:28:12', '08:58:12', 2, 1),
|
||||
(2, '2015-12-08 08:28:47', '00:30:00', 2, 1);
|
||||
(1, '2015-06-08 11:33:43', '01:00:00', 14, 60),
|
||||
(2, '2015-04-04 04:22:43', '01:00:00', 9, 15),
|
||||
(3, '2015-02-08 06:05:29', '01:00:00', 63, 2),
|
||||
(4, '2015-04-13 08:48:17', '00:30:00', 3, 40),
|
||||
(5, '2015-10-23 08:01:11', '01:00:00', 58, 74),
|
||||
(6, '2015-01-02 09:51:57', '00:30:00', 33, 71),
|
||||
(7, '2015-09-17 11:06:44', '01:00:00', 21, 69),
|
||||
(8, '2015-07-08 03:55:22', '00:30:00', 18, 41),
|
||||
(9, '2015-10-18 03:25:50', '01:00:00', 23, 70),
|
||||
(10, '2015-01-29 09:21:39', '00:30:00', 82, 8),
|
||||
(11, '2015-08-23 02:57:06', '00:30:00', 13, 25),
|
||||
(12, '2015-11-30 05:11:44', '01:00:00', 20, 77),
|
||||
(13, '2015-06-28 09:08:39', '00:30:00', 49, 82),
|
||||
(14, '2015-06-08 02:00:35', '00:30:00', 93, 13),
|
||||
(15, '2015-03-01 02:39:30', '01:00:00', 28, 26),
|
||||
(16, '2015-09-24 01:02:24', '00:30:00', 56, 76),
|
||||
(17, '2015-09-06 11:13:48', '01:00:00', 39, 97),
|
||||
(18, '2015-01-15 03:36:46', '00:30:00', 46, 78),
|
||||
(19, '2015-06-26 09:04:07', '01:00:00', 97, 55),
|
||||
(20, '2015-07-01 08:27:26', '01:00:00', 22, 50),
|
||||
(21, '2015-02-08 11:50:46', '00:30:00', 18, 34),
|
||||
(22, '2015-01-29 03:27:30', '01:00:00', 14, 58),
|
||||
(23, '2015-03-16 01:57:19', '00:30:00', 52, 4),
|
||||
(24, '2015-09-21 05:49:59', '00:30:00', 11, 14),
|
||||
(25, '2015-08-09 03:58:24', '00:30:00', 91, 29),
|
||||
(26, '2015-02-04 06:35:51', '00:30:00', 29, 62),
|
||||
(27, '2015-11-04 09:18:35', '00:30:00', 99, 87),
|
||||
(28, '2015-05-02 04:25:22', '00:30:00', 2, 50),
|
||||
(29, '2015-11-29 02:33:10', '01:00:00', 51, 89),
|
||||
(30, '2015-10-15 07:02:24', '01:00:00', 10, 8),
|
||||
(31, '2015-04-23 08:57:53', '00:30:00', 65, 35),
|
||||
(32, '2015-02-22 04:17:11', '01:00:00', 35, 82),
|
||||
(33, '2015-04-04 07:48:57', '00:30:00', 76, 53),
|
||||
(34, '2015-09-18 07:48:07', '00:30:00', 94, 19),
|
||||
(35, '2015-02-15 07:25:06', '01:00:00', 69, 44),
|
||||
(36, '2015-06-08 04:25:39', '01:00:00', 15, 88),
|
||||
(37, '2015-11-24 01:33:30', '01:00:00', 84, 20),
|
||||
(38, '2015-07-11 04:17:24', '01:00:00', 30, 78),
|
||||
(39, '2015-08-12 10:59:53', '00:30:00', 61, 95),
|
||||
(40, '2015-09-19 05:08:41', '00:30:00', 11, 23),
|
||||
(41, '2015-09-29 07:56:16', '00:30:00', 75, 86),
|
||||
(42, '2015-03-22 01:07:22', '00:30:00', 83, 23),
|
||||
(43, '2015-06-11 06:05:41', '01:00:00', 89, 20),
|
||||
(44, '2015-03-17 04:28:43', '01:00:00', 77, 88),
|
||||
(45, '2015-11-27 06:14:03', '01:00:00', 27, 54),
|
||||
(46, '2015-03-07 09:38:22', '01:00:00', 2, 4),
|
||||
(47, '2015-02-02 01:45:32', '00:30:00', 36, 60),
|
||||
(48, '2015-06-18 04:52:09', '01:00:00', 69, 99),
|
||||
(49, '2015-06-24 11:53:34', '01:00:00', 89, 40),
|
||||
(50, '2015-10-21 04:19:14', '01:00:00', 85, 76),
|
||||
(51, '2015-04-14 09:14:08', '00:30:00', 73, 48),
|
||||
(52, '2015-04-18 09:11:32', '00:30:00', 90, 11),
|
||||
(53, '2015-08-23 02:03:16', '00:30:00', 17, 57),
|
||||
(54, '2015-05-03 02:25:11', '00:30:00', 21, 63),
|
||||
(55, '2015-08-07 09:12:44', '00:30:00', 97, 92),
|
||||
(56, '2015-05-09 06:18:46', '00:30:00', 21, 32),
|
||||
(57, '2015-09-10 10:26:08', '00:30:00', 9, 6),
|
||||
(58, '2015-09-06 11:38:09', '00:30:00', 26, 48),
|
||||
(59, '2015-07-22 04:18:29', '01:00:00', 81, 90),
|
||||
(60, '2015-11-29 12:25:38', '01:00:00', 91, 2),
|
||||
(61, '2015-07-22 05:27:02', '01:00:00', 92, 27),
|
||||
(62, '2015-02-12 09:02:35', '00:30:00', 50, 35),
|
||||
(63, '2015-11-07 04:16:19', '01:00:00', 98, 35),
|
||||
(64, '2015-11-20 09:12:30', '01:00:00', 22, 57),
|
||||
(65, '2015-11-13 09:09:55', '00:30:00', 98, 69),
|
||||
(66, '2015-08-04 07:56:59', '00:30:00', 88, 44),
|
||||
(67, '2015-07-15 07:32:15', '01:00:00', 72, 59),
|
||||
(68, '2015-05-26 07:16:43', '01:00:00', 22, 57),
|
||||
(69, '2015-03-08 05:21:56', '01:00:00', 95, 19),
|
||||
(70, '2015-01-12 02:11:24', '00:30:00', 51, 72),
|
||||
(71, '2015-11-29 08:22:29', '01:00:00', 95, 56),
|
||||
(72, '2015-10-09 06:50:11', '01:00:00', 53, 5),
|
||||
(73, '2015-01-09 04:59:41', '01:00:00', 9, 44),
|
||||
(74, '2015-03-06 01:45:26', '00:30:00', 50, 90),
|
||||
(75, '2015-08-20 07:20:01', '00:30:00', 70, 60),
|
||||
(76, '2015-08-08 03:18:32', '01:00:00', 34, 23),
|
||||
(77, '2015-07-07 05:49:03', '00:30:00', 100, 97),
|
||||
(78, '2015-05-14 12:17:01', '01:00:00', 37, 4),
|
||||
(79, '2015-05-26 02:31:26', '00:30:00', 26, 92),
|
||||
(80, '2015-07-10 01:06:31', '00:30:00', 37, 19),
|
||||
(81, '2015-02-12 06:48:08', '01:00:00', 26, 36),
|
||||
(82, '2015-04-04 09:58:14', '01:00:00', 56, 51),
|
||||
(83, '2015-09-09 11:00:38', '00:30:00', 58, 60),
|
||||
(84, '2015-04-07 06:46:08', '01:00:00', 6, 18),
|
||||
(85, '2015-12-07 04:20:04', '01:00:00', 64, 6),
|
||||
(86, '2015-09-28 02:43:55', '01:00:00', 57, 66),
|
||||
(87, '2015-08-26 12:20:03', '01:00:00', 27, 36),
|
||||
(88, '2015-09-06 08:31:43', '00:30:00', 71, 80),
|
||||
(89, '2015-04-21 08:18:20', '00:30:00', 22, 30),
|
||||
(90, '2015-08-13 11:00:42', '00:30:00', 10, 72),
|
||||
(91, '2015-05-18 01:40:59', '01:00:00', 2, 78),
|
||||
(92, '2015-11-15 05:32:12', '01:00:00', 94, 77),
|
||||
(93, '2015-02-27 03:23:52', '01:00:00', 2, 71),
|
||||
(94, '2015-11-07 04:56:09', '00:30:00', 96, 52),
|
||||
(95, '2015-07-20 10:32:31', '00:30:00', 57, 38),
|
||||
(96, '2015-04-09 06:30:20', '00:30:00', 91, 67),
|
||||
(97, '2015-10-20 04:25:11', '00:30:00', 56, 98),
|
||||
(98, '2015-11-11 08:29:45', '00:30:00', 88, 39),
|
||||
(99, '2015-10-21 07:55:43', '00:30:00', 97, 6),
|
||||
(100, '2015-07-11 11:02:43', '01:00:00', 7, 22);
|
||||
|
||||
--
|
||||
-- Index pour les tables exportées
|
||||
|
@ -324,17 +422,17 @@ ADD KEY `fk_RDV_Medecin1_idx` (`Medecin_id`);
|
|||
-- AUTO_INCREMENT pour la table `Medecin`
|
||||
--
|
||||
ALTER TABLE `Medecin`
|
||||
MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=105;
|
||||
MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=101;
|
||||
--
|
||||
-- AUTO_INCREMENT pour la table `Patient`
|
||||
--
|
||||
ALTER TABLE `Patient`
|
||||
MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=105;
|
||||
MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=101;
|
||||
--
|
||||
-- AUTO_INCREMENT pour la table `RDV`
|
||||
--
|
||||
ALTER TABLE `RDV`
|
||||
MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
||||
MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=101;
|
||||
--
|
||||
-- Contraintes pour les tables exportées
|
||||
--
|
||||
|
|
|
@ -9,7 +9,7 @@ error_reporting(-1);
|
|||
*/
|
||||
|
||||
//pour l'inclusion dans le dossier src
|
||||
$GLOBALS['managers_dir'] = dirname(__FILE__).DIRECTORY_SEPARATOR.'src';
|
||||
$GLOBALS['managers_dir'] = dirname(__FILE__).DIRECTORY_SEPARATOR.'managers';
|
||||
|
||||
function autoloader($class) {
|
||||
|
||||
|
|
|
@ -201,13 +201,13 @@
|
|||
<tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"><span class="comment"> * @return PDO instance de la connexion a la BDD</span></td></tr>
|
||||
<tr><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="comment"> */</span></td></tr>
|
||||
<tr><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="20 tests cover line 15" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testAdd</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testGetConnexion</li><li class="covered-by-large-tests">StaticRepoTest::testTestConnexion</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="default"> </span><span class="default">==</span><span class="default"> </span><span class="default">null</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="21 tests cover line 15" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li><li class="covered-by-large-tests">RDVRepoTest::testAdd</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testGetConnexion</li><li class="covered-by-large-tests">StaticRepoTest::testTestConnexion</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="default"> </span><span class="default">==</span><span class="default"> </span><span class="default">null</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 16" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">json_decode</span><span class="keyword">(</span><span class="default">file_get_contents</span><span class="keyword">(</span><span class="default">dirname</span><span class="keyword">(</span><span class="default">__FILE__</span><span class="keyword">)</span><span class="keyword">.</span><span class="default">DIRECTORY_SEPARATOR</span><span class="keyword">.</span><span class="default">'config.json'</span><span class="keyword">)</span><span class="keyword">,</span><span class="default">true</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="20 tests cover line 18" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testAdd</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testGetConnexion</li><li class="covered-by-large-tests">StaticRepoTest::testTestConnexion</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="keyword">static</span><span class="default">::</span><span class="default">$connexion</span><span class="default"> </span><span class="default">==</span><span class="default"> </span><span class="default">null</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="21 tests cover line 18" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li><li class="covered-by-large-tests">RDVRepoTest::testAdd</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testGetConnexion</li><li class="covered-by-large-tests">StaticRepoTest::testTestConnexion</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="keyword">static</span><span class="default">::</span><span class="default">$connexion</span><span class="default"> </span><span class="default">==</span><span class="default"> </span><span class="default">null</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 19" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">static</span><span class="default">::</span><span class="default">$connexion</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">new</span><span class="default"> </span><span class="default">PDO</span><span class="keyword">(</span><span class="default">'mysql:host='</span><span class="keyword">.</span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="keyword">[</span><span class="default">'host'</span><span class="keyword">]</span><span class="keyword">.</span><span class="default">';dbname='</span><span class="keyword">.</span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="keyword">[</span><span class="default">'database'</span><span class="keyword">]</span><span class="keyword">,</span><span class="default"> </span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="keyword">[</span><span class="default">'login'</span><span class="keyword">]</span><span class="keyword">,</span><span class="default"> </span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="keyword">[</span><span class="default">'password'</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="20 tests cover line 21" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testAdd</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testGetConnexion</li><li class="covered-by-large-tests">StaticRepoTest::testTestConnexion</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="keyword">static</span><span class="default">::</span><span class="default">$connexion</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="21 tests cover line 21" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li><li class="covered-by-large-tests">RDVRepoTest::testAdd</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testGetConnexion</li><li class="covered-by-large-tests">StaticRepoTest::testTestConnexion</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="keyword">static</span><span class="default">::</span><span class="default">$connexion</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/**</span></td></tr>
|
||||
|
@ -230,11 +230,11 @@
|
|||
<tr><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$fetchData</span><span class="keyword">,</span><span class="default"> </span><span class="default">$oneDimension</span><span class="keyword">=</span><span class="default">false</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"><span class="default"> </span></td></tr>
|
||||
<tr><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// cas où fetch renvoie FALSE</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="17 tests cover line 44" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="default">$fetchData</span><span class="default"> </span><span class="default">===</span><span class="default"> </span><span class="default">false</span><span class="default"> </span><span class="keyword">)</span><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="18 tests cover line 44" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="default">$fetchData</span><span class="default"> </span><span class="default">===</span><span class="default"> </span><span class="default">false</span><span class="default"> </span><span class="keyword">)</span><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* [1] 2 dimensions</span></td></tr>
|
||||
<tr><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"><span class="comment"> ===============================================*/</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="17 tests cover line 48" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="keyword">!</span><span class="default">$oneDimension</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="18 tests cover line 48" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="keyword">!</span><span class="default">$oneDimension</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// on supprime les doublons des entrées (indice numérique)</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="10 tests cover line 51" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">for</span><span class="keyword">(</span><span class="default"> </span><span class="default">$i</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">0</span><span class="default"> </span><span class="keyword">;</span><span class="default"> </span><span class="default">$i</span><span class="default"> </span><span class="keyword"><</span><span class="default"> </span><span class="default">count</span><span class="keyword">(</span><span class="default">$fetchData</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">;</span><span class="default"> </span><span class="default">$i</span><span class="default">++</span><span class="default"> </span><span class="keyword">)</span><span class="default"> </span><span class="comment">// pour tout les utilisateurs</span></td></tr>
|
||||
|
@ -252,18 +252,18 @@
|
|||
<tr><td><div align="right"><a name="63"></a><a href="#63">63</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span><span class="keyword">else</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="65"></a><a href="#65">65</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// on supprime les doublons des entrées (indice numérique)</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="7 tests cover line 66" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">foreach</span><span class="keyword">(</span><span class="default">$fetchData</span><span class="default"> </span><span class="keyword">as</span><span class="default"> </span><span class="default">$i</span><span class="default">=></span><span class="default">$val</span><span class="keyword">)</span><span class="keyword">{</span><span class="default"> </span><span class="comment">// pour toutes les entrées</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="8 tests cover line 66" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">foreach</span><span class="keyword">(</span><span class="default">$fetchData</span><span class="default"> </span><span class="keyword">as</span><span class="default"> </span><span class="default">$i</span><span class="default">=></span><span class="default">$val</span><span class="keyword">)</span><span class="keyword">{</span><span class="default"> </span><span class="comment">// pour toutes les entrées</span></td></tr>
|
||||
<tr><td><div align="right"><a name="67"></a><a href="#67">67</a></div></td><td class="codeLine"><span class="default"> </span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="7 tests cover line 68" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="68"></a><a href="#68">68</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="keyword">!</span><span class="default">mb_detect_encoding</span><span class="keyword">(</span><span class="default">$val</span><span class="keyword">,</span><span class="default"> </span><span class="default">'UTF-8'</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="8 tests cover line 68" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="68"></a><a href="#68">68</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="keyword">!</span><span class="default">mb_detect_encoding</span><span class="keyword">(</span><span class="default">$val</span><span class="keyword">,</span><span class="default"> </span><span class="default">'UTF-8'</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="69"></a><a href="#69">69</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$fetchData</span><span class="keyword">[</span><span class="default">$i</span><span class="keyword">]</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">utf8_encode</span><span class="keyword">(</span><span class="default">$val</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="70"></a><a href="#70">70</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="7 tests cover line 71" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="71"></a><a href="#71">71</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="default">is_int</span><span class="keyword">(</span><span class="default">$i</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="default"> </span><span class="comment">// si l'indice est un entier</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="7 tests cover line 72" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="72"></a><a href="#72">72</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">unset</span><span class="keyword">(</span><span class="default"> </span><span class="default">$fetchData</span><span class="keyword">[</span><span class="default">$i</span><span class="keyword">]</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span><span class="default"> </span><span class="comment">// on le supprime</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="8 tests cover line 71" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="71"></a><a href="#71">71</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="default">is_int</span><span class="keyword">(</span><span class="default">$i</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="default"> </span><span class="comment">// si l'indice est un entier</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="8 tests cover line 72" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="72"></a><a href="#72">72</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">unset</span><span class="keyword">(</span><span class="default"> </span><span class="default">$fetchData</span><span class="keyword">[</span><span class="default">$i</span><span class="keyword">]</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span><span class="default"> </span><span class="comment">// on le supprime</span></td></tr>
|
||||
<tr><td><div align="right"><a name="73"></a><a href="#73">73</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="74"></a><a href="#74">74</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="75"></a><a href="#75">75</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="76"></a><a href="#76">76</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="17 tests cover line 77" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="77"></a><a href="#77">77</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$fetchData</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="18 tests cover line 77" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testSearch</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li><li class="covered-by-large-tests">RDVRepoTest::testGetById</li><li class="covered-by-large-tests">RDVRepoTest::testUpdateTime</li><li class="covered-by-large-tests">RDVRepoTest::testGetByDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetByPAtientAndDate</li><li class="covered-by-large-tests">RDVRepoTest::testGetAll</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericOneDimension</li><li class="covered-by-large-tests">StaticRepoTest::testDelNumericTwoDimension</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li><li class="covered-by-large-tests">StatsRepoTest::testRDVStat</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="77"></a><a href="#77">77</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$fetchData</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="78"></a><a href="#78">78</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="79"></a><a href="#79">79</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="80"></a><a href="#80">80</a></div></td><td class="codeLine"></td></tr>
|
||||
|
@ -291,24 +291,24 @@
|
|||
<tr><td><div align="right"><a name="102"></a><a href="#102">102</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">checkParam</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">,</span><span class="default"> </span><span class="default">$dbtype</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="103"></a><a href="#103">103</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* [1] on vérifie que $dbtype est un String</span></td></tr>
|
||||
<tr><td><div align="right"><a name="104"></a><a href="#104">104</a></div></td><td class="codeLine"><span class="comment"> =============================================================*/</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 105" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="105"></a><a href="#105">105</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="keyword">!</span><span class="default">is_string</span><span class="keyword">(</span><span class="default">$dbtype</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 105" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="105"></a><a href="#105">105</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default"> </span><span class="keyword">!</span><span class="default">is_string</span><span class="keyword">(</span><span class="default">$dbtype</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="106"></a><a href="#106">106</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="107"></a><a href="#107">107</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="108"></a><a href="#108">108</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* [2] Vérifications</span></td></tr>
|
||||
<tr><td><div align="right"><a name="109"></a><a href="#109">109</a></div></td><td class="codeLine"><span class="comment"> =============================================================*/</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 110" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="110"></a><a href="#110">110</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">true</span><span class="keyword">;</span><span class="default"> </span><span class="comment">// contiendra VRAI si la vérification s'avère correcte</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 111" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="111"></a><a href="#111">111</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$matches</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">[</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 110" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="110"></a><a href="#110">110</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">true</span><span class="keyword">;</span><span class="default"> </span><span class="comment">// contiendra VRAI si la vérification s'avère correcte</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 111" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="111"></a><a href="#111">111</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$matches</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">[</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="112"></a><a href="#112">112</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">//si on a un type scalairexlongueur, on traite</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 113" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="113"></a><a href="#113">113</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">preg_match_all</span><span class="keyword">(</span><span class="default">'/((?:[a-z][a-z]+))(\\d+)/is'</span><span class="keyword">,</span><span class="default">$dbtype</span><span class="keyword">,</span><span class="default">$matches</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 113" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="113"></a><a href="#113">113</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">preg_match_all</span><span class="keyword">(</span><span class="default">'/((?:[a-z][a-z]+))(\\d+)/is'</span><span class="keyword">,</span><span class="default">$dbtype</span><span class="keyword">,</span><span class="default">$matches</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 114" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="114"></a><a href="#114">114</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$dbtype</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$matches</span><span class="keyword">[</span><span class="default">1</span><span class="keyword">]</span><span class="keyword">[</span><span class="default">0</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 115" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="115"></a><a href="#115">115</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">isset</span><span class="keyword">(</span><span class="default">$matches</span><span class="keyword">[</span><span class="default">2</span><span class="keyword">]</span><span class="keyword">[</span><span class="default">0</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">?</span><span class="default"> </span><span class="default">$len</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$matches</span><span class="keyword">[</span><span class="default">2</span><span class="keyword">]</span><span class="keyword">[</span><span class="default">0</span><span class="keyword">]</span><span class="default"> </span><span class="keyword">:</span><span class="default"> </span><span class="default">$len</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">8</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="116"></a><a href="#116">116</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="117"></a><a href="#117">117</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="118"></a><a href="#118">118</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">switch</span><span class="keyword">(</span><span class="default">$dbtype</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="119"></a><a href="#119">119</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// [1] 'M' / 'F' </span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 120" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="120"></a><a href="#120">120</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">case</span><span class="default"> </span><span class="default">'Civilite'</span><span class="keyword">:</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 121" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="121"></a><a href="#121">121</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="default">is_string</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">)</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="default">in_array</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">,</span><span class="keyword">[</span><span class="default">'M'</span><span class="keyword">,</span><span class="default">'F'</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 122" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="122"></a><a href="#122">122</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 120" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="120"></a><a href="#120">120</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">case</span><span class="default"> </span><span class="default">'Civilite'</span><span class="keyword">:</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 121" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="121"></a><a href="#121">121</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="default">is_string</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">)</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="default">in_array</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">,</span><span class="keyword">[</span><span class="default">'M'</span><span class="keyword">,</span><span class="default">'F'</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 122" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="122"></a><a href="#122">122</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="123"></a><a href="#123">123</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="124"></a><a href="#124">124</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// [2] Chaine de caractère (longueur variable)</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="125"></a><a href="#125">125</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">case</span><span class="default"> </span><span class="default">'String'</span><span class="keyword">:</span></td></tr>
|
||||
|
@ -316,8 +316,8 @@
|
|||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 127" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="127"></a><a href="#127">127</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="128"></a><a href="#128">128</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="129"></a><a href="#129">129</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">case</span><span class="default"> </span><span class="default">'Integer'</span><span class="keyword">:</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 130" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="130"></a><a href="#130">130</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="default">is_int</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">)</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="default">$variable</span><span class="keyword"><</span><span class="default">pow</span><span class="keyword">(</span><span class="default">2</span><span class="keyword">,</span><span class="default">32</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 131" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="131"></a><a href="#131">131</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 130" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="130"></a><a href="#130">130</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="default">is_int</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">)</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="default">$variable</span><span class="keyword"><</span><span class="default">pow</span><span class="keyword">(</span><span class="default">2</span><span class="keyword">,</span><span class="default">32</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 131" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="131"></a><a href="#131">131</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="132"></a><a href="#132">132</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="133"></a><a href="#133">133</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">case</span><span class="default"> </span><span class="default">'SmallInteger'</span><span class="keyword">:</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 134" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="134"></a><a href="#134">134</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$checker</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="default">is_int</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">)</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="default">$variable</span><span class="keyword"><</span><span class="default">pow</span><span class="keyword">(</span><span class="default">2</span><span class="keyword">,</span><span class="default">16</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
|
@ -338,7 +338,7 @@
|
|||
<tr><td><div align="right"><a name="149"></a><a href="#149">149</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="150"></a><a href="#150">150</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/* [3] On retourne le résultat de la vérif</span></td></tr>
|
||||
<tr><td><div align="right"><a name="151"></a><a href="#151">151</a></div></td><td class="codeLine"><span class="comment"> =============================================================*/</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 152" data-content="<ul><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="152"></a><a href="#152">152</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$checker</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 152" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li><li class="covered-by-large-tests">StaticRepoTest::testCheckParam</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="152"></a><a href="#152">152</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$checker</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="153"></a><a href="#153">153</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="154"></a><a href="#154">154</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="155"></a><a href="#155">155</a></div></td><td class="codeLine"></td></tr>
|
||||
|
@ -358,7 +358,7 @@
|
|||
<span class="warning"><strong>Dead Code</strong></span>
|
||||
</p>
|
||||
<p>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 8:01:23 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 9:54:17 UTC 2015.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
|
|
|
@ -113,9 +113,9 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="repos/MedecinRepo.php.html#19"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">83%</td></tr>
|
||||
<tr><td><a href="StaticRepo.php.html#102"><abbr title="StaticRepo::checkParam">checkParam</abbr></a></td><td class="text-right">84%</td></tr>
|
||||
<tr><td><a href="StaticRepo.php.html#41"><abbr title="StaticRepo::delNumeric">delNumeric</abbr></a></td><td class="text-right">85%</td></tr>
|
||||
<tr><td><a href="repos/MedecinRepo.php.html#22"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">85%</td></tr>
|
||||
<tr><td><a href="repos/RDVRepo.php.html#59"><abbr title="RDVRepo::getAll">getAll</abbr></a></td><td class="text-right">85%</td></tr>
|
||||
<tr><td><a href="repos/RDVRepo.php.html#31"><abbr title="RDVRepo::add">add</abbr></a></td><td class="text-right">88%</td></tr>
|
||||
|
||||
|
@ -136,8 +136,8 @@
|
|||
<tbody>
|
||||
<tr><td><a href="StaticRepo.php.html#102"><abbr title="StaticRepo::checkParam">checkParam</abbr></a></td><td class="text-right">23</td></tr>
|
||||
<tr><td><a href="StaticRepo.php.html#41"><abbr title="StaticRepo::delNumeric">delNumeric</abbr></a></td><td class="text-right">10</td></tr>
|
||||
<tr><td><a href="repos/MedecinRepo.php.html#22"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">5</td></tr>
|
||||
<tr><td><a href="repos/RDVRepo.php.html#59"><abbr title="RDVRepo::getAll">getAll</abbr></a></td><td class="text-right">4</td></tr>
|
||||
<tr><td><a href="repos/MedecinRepo.php.html#19"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">2</td></tr>
|
||||
<tr><td><a href="repos/RDVRepo.php.html#31"><abbr title="RDVRepo::add">add</abbr></a></td><td class="text-right">2</td></tr>
|
||||
|
||||
</tbody>
|
||||
|
@ -148,7 +148,7 @@
|
|||
<footer>
|
||||
<hr/>
|
||||
<p>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 8:01:23 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 9:54:17 UTC 2015.</small>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
@ -187,7 +187,7 @@ $(document).ready(function() {
|
|||
.yAxis.tickFormat(d3.format('d'));
|
||||
|
||||
d3.select('#methodCoverageDistribution svg')
|
||||
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,5,2,18], "Method Coverage"))
|
||||
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,5,3,18], "Method Coverage"))
|
||||
.transition().duration(500).call(chart);
|
||||
|
||||
nv.utils.windowResize(chart.update);
|
||||
|
@ -237,7 +237,7 @@ $(document).ready(function() {
|
|||
chart.yAxis.axisLabel('Cyclomatic Complexity');
|
||||
|
||||
d3.select('#classComplexity svg')
|
||||
.datum(getComplexityData([[86.95652173913,36,"<a href=\"StaticRepo.php.html#3\">StaticRepo<\/a>"],[95.238095238095,7,"<a href=\"repos\/MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[96.428571428571,7,"<a href=\"repos\/PatientRepo.php.html#9\">PatientRepo<\/a>"],[92.682926829268,11,"<a href=\"repos\/RDVRepo.php.html#9\">RDVRepo<\/a>"],[92.307692307692,9,"<a href=\"repos\/StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
|
||||
.datum(getComplexityData([[86.95652173913,36,"<a href=\"StaticRepo.php.html#3\">StaticRepo<\/a>"],[95.652173913043,11,"<a href=\"repos\/MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[95.652173913043,9,"<a href=\"repos\/PatientRepo.php.html#9\">PatientRepo<\/a>"],[92.682926829268,11,"<a href=\"repos\/RDVRepo.php.html#9\">RDVRepo<\/a>"],[92.307692307692,9,"<a href=\"repos\/StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
|
||||
.transition()
|
||||
.duration(500)
|
||||
.call(chart);
|
||||
|
@ -261,7 +261,7 @@ $(document).ready(function() {
|
|||
chart.yAxis.axisLabel('Method Complexity');
|
||||
|
||||
d3.select('#methodComplexity svg')
|
||||
.datum(getComplexityData([[100,3,"<a href=\"StaticRepo.php.html#14\">StaticRepo::getConnexion<\/a>"],[100,1,"<a href=\"StaticRepo.php.html#27\">StaticRepo::testConnexion<\/a>"],[85.714285714286,10,"<a href=\"StaticRepo.php.html#41\">StaticRepo::delNumeric<\/a>"],[84.615384615385,22,"<a href=\"StaticRepo.php.html#102\">StaticRepo::checkParam<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[83.333333333333,2,"<a href=\"repos\/MedecinRepo.php.html#19\">MedecinRepo::add<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#28\">MedecinRepo::delete<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#33\">MedecinRepo::search<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#41\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#51\">MedecinRepo::getAll<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#17\">PatientRepo::getById<\/a>"],[93.75,2,"<a href=\"repos\/PatientRepo.php.html#24\">PatientRepo::add<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#46\">PatientRepo::delete<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#53\">PatientRepo::updateMedecinTraitant<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#60\">PatientRepo::search<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#68\">PatientRepo::getAll<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#19\">RDVRepo::getByDate<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#26\">RDVRepo::delete<\/a>"],[88.888888888889,2,"<a href=\"repos\/RDVRepo.php.html#31\">RDVRepo::add<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#44\">RDVRepo::updateDateTime<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#51\">RDVRepo::getByPatientAndDate<\/a>"],[85.714285714286,4,"<a href=\"repos\/RDVRepo.php.html#59\">RDVRepo::getAll<\/a>"],[91.304347826087,8,"<a href=\"repos\/StatsRepo.php.html#12\">StatsRepo::getAgePatient<\/a>"],[100,1,"<a href=\"repos\/StatsRepo.php.html#48\">StatsRepo::getRDVStat<\/a>"]], 'Method Complexity'))
|
||||
.datum(getComplexityData([[100,3,"<a href=\"StaticRepo.php.html#14\">StaticRepo::getConnexion<\/a>"],[100,1,"<a href=\"StaticRepo.php.html#27\">StaticRepo::testConnexion<\/a>"],[85.714285714286,10,"<a href=\"StaticRepo.php.html#41\">StaticRepo::delNumeric<\/a>"],[84.615384615385,22,"<a href=\"StaticRepo.php.html#102\">StaticRepo::checkParam<\/a>"],[100,2,"<a href=\"repos\/MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[85.714285714286,5,"<a href=\"repos\/MedecinRepo.php.html#22\">MedecinRepo::add<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#34\">MedecinRepo::delete<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#39\">MedecinRepo::search<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#47\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#57\">MedecinRepo::getAll<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#17\">PatientRepo::getById<\/a>"],[93.75,2,"<a href=\"repos\/PatientRepo.php.html#24\">PatientRepo::add<\/a>"],[94.444444444444,2,"<a href=\"repos\/PatientRepo.php.html#46\">PatientRepo::update<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#69\">PatientRepo::delete<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#76\">PatientRepo::updateMedecinTraitant<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#83\">PatientRepo::search<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#91\">PatientRepo::getAll<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#19\">RDVRepo::getByDate<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#26\">RDVRepo::delete<\/a>"],[88.888888888889,2,"<a href=\"repos\/RDVRepo.php.html#31\">RDVRepo::add<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#44\">RDVRepo::updateDateTime<\/a>"],[100,1,"<a href=\"repos\/RDVRepo.php.html#51\">RDVRepo::getByPatientAndDate<\/a>"],[85.714285714286,4,"<a href=\"repos\/RDVRepo.php.html#59\">RDVRepo::getAll<\/a>"],[91.304347826087,8,"<a href=\"repos\/StatsRepo.php.html#12\">StatsRepo::getAgePatient<\/a>"],[100,1,"<a href=\"repos\/StatsRepo.php.html#48\">StatsRepo::getRDVStat<\/a>"]], 'Method Complexity'))
|
||||
.transition()
|
||||
.duration(500)
|
||||
.call(chart);
|
||||
|
|
|
@ -43,21 +43,21 @@
|
|||
<tr>
|
||||
<td class="success">Total</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="91.98" aria-valuemin="0" aria-valuemax="100" style="width: 91.98%">
|
||||
<span class="sr-only">91.98% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="92.31" aria-valuemin="0" aria-valuemax="100" style="width: 92.31%">
|
||||
<span class="sr-only">92.31% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">91.98%</div></td>
|
||||
<td class="success small"><div align="right">149 / 162</div></td>
|
||||
<td class="success small"><div align="right">92.31%</div></td>
|
||||
<td class="success small"><div align="right">168 / 182</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="72.00" aria-valuemin="0" aria-valuemax="100" style="width: 72.00%">
|
||||
<span class="sr-only">72.00% covered (warning)</span>
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="69.23" aria-valuemin="0" aria-valuemax="100" style="width: 69.23%">
|
||||
<span class="sr-only">69.23% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">72.00%</div></td>
|
||||
<td class="warning small"><div align="right">18 / 25</div></td>
|
||||
<td class="warning small"><div align="right">69.23%</div></td>
|
||||
<td class="warning small"><div align="right">18 / 26</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
|
@ -71,21 +71,21 @@
|
|||
<tr>
|
||||
<td class="success"><span class="glyphicon glyphicon-folder-open"></span> <a href="repos/index.html">repos</a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="93.97" aria-valuemin="0" aria-valuemax="100" style="width: 93.97%">
|
||||
<span class="sr-only">93.97% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="94.12" aria-valuemin="0" aria-valuemax="100" style="width: 94.12%">
|
||||
<span class="sr-only">94.12% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">93.97%</div></td>
|
||||
<td class="success small"><div align="right">109 / 116</div></td>
|
||||
<td class="success small"><div align="right">94.12%</div></td>
|
||||
<td class="success small"><div align="right">128 / 136</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="76.19" aria-valuemin="0" aria-valuemax="100" style="width: 76.19%">
|
||||
<span class="sr-only">76.19% covered (warning)</span>
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="72.73" aria-valuemin="0" aria-valuemax="100" style="width: 72.73%">
|
||||
<span class="sr-only">72.73% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">76.19%</div></td>
|
||||
<td class="warning small"><div align="right">16 / 21</div></td>
|
||||
<td class="warning small"><div align="right">72.73%</div></td>
|
||||
<td class="warning small"><div align="right">16 / 22</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
|
@ -136,7 +136,7 @@
|
|||
<span class="success"><strong>High</strong>: 90% to 100%</span>
|
||||
</p>
|
||||
<p>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 8:01:23 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 9:54:17 UTC 2015.</small>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -61,13 +61,13 @@
|
|||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.24" aria-valuemin="0" aria-valuemax="100" style="width: 95.24%">
|
||||
<span class="sr-only">95.24% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.65" aria-valuemin="0" aria-valuemax="100" style="width: 95.65%">
|
||||
<span class="sr-only">95.65% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">95.24%</div></td>
|
||||
<td class="success small"><div align="right">20 / 21</div></td>
|
||||
<td class="success small"><div align="right">95.65%</div></td>
|
||||
<td class="success small"><div align="right">22 / 23</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -88,15 +88,15 @@
|
|||
</td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small">7</td>
|
||||
<td class="warning small">11</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.24" aria-valuemin="0" aria-valuemax="100" style="width: 95.24%">
|
||||
<span class="sr-only">95.24% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.65" aria-valuemin="0" aria-valuemax="100" style="width: 95.65%">
|
||||
<span class="sr-only">95.65% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">95.24%</div></td>
|
||||
<td class="success small"><div align="right">20 / 21</div></td>
|
||||
<td class="success small"><div align="right">95.65%</div></td>
|
||||
<td class="success small"><div align="right">22 / 23</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -109,7 +109,7 @@
|
|||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">1 / 1</div></td>
|
||||
<td class="success small">1</td>
|
||||
<td class="success small">2</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
|
@ -117,11 +117,11 @@
|
|||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">100.00%</div></td>
|
||||
<td class="success small"><div align="right">3 / 3</div></td>
|
||||
<td class="success small"><div align="right">4 / 4</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="danger" colspan="4"> <a href="#19"><abbr title="add($civilite,$prenom,$nom)">add</abbr></a></td>
|
||||
<td class="danger" colspan="4"> <a href="#22"><abbr title="add($civilite,$prenom,$nom)">add</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
|
@ -130,19 +130,19 @@
|
|||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">2.02</td>
|
||||
<td class="danger small">5.07</td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="85.71" aria-valuemin="0" aria-valuemax="100" style="width: 85.71%">
|
||||
<span class="sr-only">85.71% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small"><div align="right">85.71%</div></td>
|
||||
<td class="warning small"><div align="right">6 / 7</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#28"><abbr title="delete($idMedecin)">delete</abbr></a></td>
|
||||
<td class="success" colspan="4"> <a href="#34"><abbr title="delete($idMedecin)">delete</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
|
@ -163,7 +163,7 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#33"><abbr title="search($nom,$prenom)">search</abbr></a></td>
|
||||
<td class="success" colspan="4"> <a href="#39"><abbr title="search($nom,$prenom)">search</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
|
@ -184,7 +184,7 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#41"><abbr title="getPatients($idMedecin)">getPatients</abbr></a></td>
|
||||
<td class="success" colspan="4"> <a href="#47"><abbr title="getPatients($idMedecin)">getPatients</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
|
@ -205,7 +205,7 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#51"><abbr title="getAll()">getAll</abbr></a></td>
|
||||
<td class="success" colspan="4"> <a href="#57"><abbr title="getAll()">getAll</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
|
@ -242,53 +242,59 @@
|
|||
<tr><td><div align="right"><a name="10"></a><a href="#10">10</a></div></td><td class="codeLine"><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getById</span><span class="keyword">(</span><span class="default">$id</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 13" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Medecin WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 14" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$id</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 15" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetch</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="default">true</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">add</span><span class="keyword">(</span><span class="default">$civilite</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">,</span><span class="default">$nom</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 20" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'INSERT INTO Medecin VALUES (DEFAULT,:civilite,:prenom,:nom)'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 21" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$result</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'civilite'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$civilite</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 22" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 23" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 24" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$result</span><span class="default"> </span><span class="default">!=</span><span class="default"> </span><span class="default">false</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">lastInsertId</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">else</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">delete</span><span class="keyword">(</span><span class="default">$idMedecin</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 29" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'DELETE FROM Medecin WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 30" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idMedecin</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">search</span><span class="keyword">(</span><span class="default">$nom</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 34" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Medecin WHERE Nom LIKE :nom AND Prenom LIKE :prenom'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 35" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 36" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 38" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getPatients</span><span class="keyword">(</span><span class="default">$idMedecin</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 43" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT Patient.* FROM Patient,Medecin</span></td></tr>
|
||||
<tr><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"><span class="default"> WHERE Medecin.Id = :id</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 45" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"><span class="default"> AND Medecin.Id = Patient.MedecinTraitant'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 14" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="keyword">!</span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">checkParam</span><span class="keyword">(</span><span class="default">$id</span><span class="keyword">,</span><span class="default">'Integer'</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 16" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Medecin WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 17" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$id</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 18" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetById</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetch</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="default">true</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">add</span><span class="keyword">(</span><span class="default">$civilite</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">,</span><span class="default">$nom</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 24" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="keyword">!</span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">checkParam</span><span class="keyword">(</span><span class="default">$civilite</span><span class="keyword">,</span><span class="default">'Civilite'</span><span class="keyword">)</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="keyword">!</span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">checkParam</span><span class="keyword">(</span><span class="default">$prenom</span><span class="keyword">,</span><span class="default">'String45'</span><span class="keyword">)</span><span class="default"> </span><span class="default">&&</span><span class="default"> </span><span class="keyword">!</span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">checkParam</span><span class="keyword">(</span><span class="default">$nom</span><span class="keyword">,</span><span class="default">'String45'</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 26" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'INSERT INTO Medecin VALUES (DEFAULT,:civilite,:prenom,:nom)'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 27" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$result</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'civilite'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$civilite</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 28" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 29" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 30" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$result</span><span class="default"> </span><span class="default">!=</span><span class="default"> </span><span class="default">false</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">lastInsertId</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">else</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">delete</span><span class="keyword">(</span><span class="default">$idMedecin</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 35" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'DELETE FROM Medecin WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 36" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testAddAndDelete</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idMedecin</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">search</span><span class="keyword">(</span><span class="default">$nom</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 40" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Medecin WHERE Nom LIKE :nom AND Prenom LIKE :prenom'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 41" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 42" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 44" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 47" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idMedecin</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 48" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getPatients</span><span class="keyword">(</span><span class="default">$idMedecin</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 49" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT Patient.* FROM Patient,Medecin</span></td></tr>
|
||||
<tr><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"><span class="default"> WHERE Medecin.Id = :id</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 51" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"><span class="default"> AND Medecin.Id = Patient.MedecinTraitant'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 53" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">query</span><span class="keyword">(</span><span class="default">'SELECT * FROM Medecin ORDER BY nom, prenom ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 55" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 53" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idMedecin</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 54" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetPatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="58"></a><a href="#58">58</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="59"></a><a href="#59">59</a></div></td><td class="codeLine"><span class="keyword">}</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 59" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="59"></a><a href="#59">59</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">query</span><span class="keyword">(</span><span class="default">'SELECT * FROM Medecin ORDER BY nom, prenom ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="60"></a><a href="#60">60</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 61" data-content="<ul><li class="covered-by-large-tests">MedecinRepoTest::testGetAll</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="61"></a><a href="#61">61</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="62"></a><a href="#62">62</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="63"></a><a href="#63">63</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="65"></a><a href="#65">65</a></div></td><td class="codeLine"><span class="keyword">}</span></td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -301,7 +307,7 @@
|
|||
<span class="warning"><strong>Dead Code</strong></span>
|
||||
</p>
|
||||
<p>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 8:01:23 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 9:54:17 UTC 2015.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
|
|
|
@ -52,22 +52,22 @@
|
|||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="71.43" aria-valuemin="0" aria-valuemax="100" style="width: 71.43%">
|
||||
<span class="sr-only">71.43% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small"><div align="right">71.43%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 7</div></td>
|
||||
<td class="warning small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.43" aria-valuemin="0" aria-valuemax="100" style="width: 96.43%">
|
||||
<span class="sr-only">96.43% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.65" aria-valuemin="0" aria-valuemax="100" style="width: 95.65%">
|
||||
<span class="sr-only">95.65% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">96.43%</div></td>
|
||||
<td class="success small"><div align="right">27 / 28</div></td>
|
||||
<td class="success small"><div align="right">95.65%</div></td>
|
||||
<td class="success small"><div align="right">44 / 46</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -81,22 +81,22 @@
|
|||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="71.43" aria-valuemin="0" aria-valuemax="100" style="width: 71.43%">
|
||||
<span class="sr-only">71.43% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small">7</td>
|
||||
<td class="warning small"><div align="right">71.43%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 7</div></td>
|
||||
<td class="warning small">9</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.43" aria-valuemin="0" aria-valuemax="100" style="width: 96.43%">
|
||||
<span class="sr-only">96.43% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.65" aria-valuemin="0" aria-valuemax="100" style="width: 95.65%">
|
||||
<span class="sr-only">95.65% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">96.43%</div></td>
|
||||
<td class="success small"><div align="right">27 / 28</div></td>
|
||||
<td class="success small"><div align="right">95.65%</div></td>
|
||||
<td class="success small"><div align="right">44 / 46</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -142,7 +142,28 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#46"><abbr title="delete($idPatient)">delete</abbr></a></td>
|
||||
<td class="danger" colspan="4"> <a href="#46"><abbr title="update($id,$civilite,$prenom,$nom,$adresse,$adresse2,$ville,$codePostal,$dateNaissance,$lieuNaissance,$numSecu,$medecinTraitant)">update</abbr></a></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="danger small"><div align="right">0.00%</div></td>
|
||||
<td class="danger small"><div align="right">0 / 1</div></td>
|
||||
<td class="danger small">2.00</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="94.44" aria-valuemin="0" aria-valuemax="100" style="width: 94.44%">
|
||||
<span class="sr-only">94.44% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">94.44%</div></td>
|
||||
<td class="success small"><div align="right">17 / 18</div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#69"><abbr title="delete($idPatient)">delete</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
|
@ -163,7 +184,7 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#53"><abbr title="updateMedecinTraitant($idPatient,$idMedecin)">updateMedecinTraitant</abbr></a></td>
|
||||
<td class="success" colspan="4"> <a href="#76"><abbr title="updateMedecinTraitant($idPatient,$idMedecin)">updateMedecinTraitant</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
|
@ -184,7 +205,7 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#60"><abbr title="search($nom,$prenom)">search</abbr></a></td>
|
||||
<td class="success" colspan="4"> <a href="#83"><abbr title="search($nom,$prenom)">search</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
|
@ -205,7 +226,7 @@
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="success" colspan="4"> <a href="#68"><abbr title="getAll()">getAll</abbr></a></td>
|
||||
<td class="success" colspan="4"> <a href="#91"><abbr title="getAll()">getAll</abbr></a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
|
||||
<span class="sr-only">100.00% covered (success)</span>
|
||||
|
@ -247,65 +268,88 @@
|
|||
<tr><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// }</span></td></tr>
|
||||
<tr><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getById</span><span class="keyword">(</span><span class="default">$id</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 18" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Patient WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 19" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$id</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 20" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetch</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="default">true</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 18" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Patient WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 19" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$id</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="3 tests cover line 20" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetById</li><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetch</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">,</span><span class="default"> </span><span class="default">true</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">add</span><span class="keyword">(</span><span class="default">$civilite</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">,</span><span class="default">$nom</span><span class="keyword">,</span><span class="default">$adresse</span><span class="keyword">,</span><span class="default">$adresse2</span><span class="keyword">,</span><span class="default">$ville</span><span class="keyword">,</span><span class="default">$codePostal</span><span class="keyword">,</span><span class="default">$dateNaissance</span><span class="keyword">,</span><span class="default">$lieuNaissance</span><span class="keyword">,</span><span class="default">$numSecu</span><span class="keyword">,</span><span class="default">$medecinTraitant</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">null</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 26" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$dateNaissance</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$dateNaissance</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 27" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$dateNaissance</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">Date</span><span class="keyword">(</span><span class="default">'o-m-d'</span><span class="keyword">,</span><span class="default">$dateNaissance</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 26" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$dateNaissance</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$dateNaissance</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 27" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$dateNaissance</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">Date</span><span class="keyword">(</span><span class="default">'o-m-d'</span><span class="keyword">,</span><span class="default">$dateNaissance</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 29" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'INSERT INTO Patient VALUES (:civilite,:nom,:prenom,:adresse,:adresse2,:ville,:codePostal,:dateNaissance,:lieuNaissance,:numSecu,DEFAULT,:medecin)'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 30" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$result</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'civilite'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$civilite</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 31" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 32" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 33" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'adresse'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$adresse</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 34" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'adresse2'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$adresse2</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 35" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'ville'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$ville</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 36" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'codePostal'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$codePostal</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 37" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'dateNaissance'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$dateNaissance</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 38" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'lieuNaissance'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$lieuNaissance</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 39" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'numSecu'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$numSecu</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 40" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'medecin'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$medecinTraitant</span><span class="default"> </span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 41" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$result</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">lastInsertId</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 29" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'INSERT INTO Patient VALUES (DEFAULT,:civilite,:nom,:prenom,:adresse,:adresse2,:ville,:codePostal,:dateNaissance,:lieuNaissance,:numSecu,:medecin)'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 30" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$result</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'civilite'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$civilite</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 31" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 32" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 33" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'adresse'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$adresse</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 34" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'adresse2'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$adresse2</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 35" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'ville'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$ville</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 36" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'codePostal'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$codePostal</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 37" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'dateNaissance'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$dateNaissance</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 38" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="38"></a><a href="#38">38</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'lieuNaissance'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$lieuNaissance</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 39" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="39"></a><a href="#39">39</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'numSecu'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$numSecu</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 40" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="40"></a><a href="#40">40</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'medecin'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$medecinTraitant</span><span class="default"> </span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 41" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$result</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">lastInsertId</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">else</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">delete</span><span class="keyword">(</span><span class="default">$idPatient</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 48" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'DELETE FROM Patient WHERE Patient.Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 49" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">updateMedecinTraitant</span><span class="keyword">(</span><span class="default">$idPatient</span><span class="keyword">,</span><span class="default">$idMedecin</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 55" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'UPDATE Patient SET MedecinTraitant = :medecin WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 56" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'medecin'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idMedecin</span><span class="keyword">,</span><span class="default"> </span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="58"></a><a href="#58">58</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="59"></a><a href="#59">59</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="60"></a><a href="#60">60</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">search</span><span class="keyword">(</span><span class="default">$nom</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="61"></a><a href="#61">61</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 62" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="62"></a><a href="#62">62</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Patient WHERE Nom LIKE :nom AND Prenom LIKE :prenom'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 63" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="63"></a><a href="#63">63</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 64" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="65"></a><a href="#65">65</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="67"></a><a href="#67">67</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="68"></a><a href="#68">68</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="69"></a><a href="#69">69</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 70" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="70"></a><a href="#70">70</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">query</span><span class="keyword">(</span><span class="default">'SELECT * FROM Patient ORDER BY nom, prenom ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="71"></a><a href="#71">71</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 72" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="72"></a><a href="#72">72</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">update</span><span class="keyword">(</span><span class="default">$id</span><span class="keyword">,</span><span class="default">$civilite</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">,</span><span class="default">$nom</span><span class="keyword">,</span><span class="default">$adresse</span><span class="keyword">,</span><span class="default">$adresse2</span><span class="keyword">,</span><span class="default">$ville</span><span class="keyword">,</span><span class="default">$codePostal</span><span class="keyword">,</span><span class="default">$dateNaissance</span><span class="keyword">,</span><span class="default">$lieuNaissance</span><span class="keyword">,</span><span class="default">$numSecu</span><span class="keyword">,</span><span class="default">$medecinTraitant</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 47" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$dateNaissance</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$dateNaissance</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 48" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$dateNaissance</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">Date</span><span class="keyword">(</span><span class="default">'o-m-d'</span><span class="keyword">,</span><span class="default">$dateNaissance</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 50" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'UPDATE Patient SET Civilite=:civilite,Nom=:nom,Prenom=:prenom,Adresse=:adresse,Adresse2=:adresse2,Ville=:ville,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 51" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"><span class="default"> CodePostal=:codePostal,DateNaissance=:dateNaissance,LieuNaissance=:lieuNaissance,NumSecuriteSociale=:numSecu,MedecinTraitant=:medecin WHERE Id=:id;'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 52" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$result</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'civilite'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$civilite</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 53" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 54" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 55" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'adresse'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$adresse</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 56" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'adresse2'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$adresse2</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 57" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'ville'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$ville</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 58" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="58"></a><a href="#58">58</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'codePostal'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$codePostal</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 59" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="59"></a><a href="#59">59</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'dateNaissance'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$dateNaissance</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 60" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="60"></a><a href="#60">60</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'lieuNaissance'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$lieuNaissance</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 61" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="61"></a><a href="#61">61</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'numSecu'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$numSecu</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 62" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="62"></a><a href="#62">62</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'medecin'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$medecinTraitant</span><span class="keyword">,</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 63" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="63"></a><a href="#63">63</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$id</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 64" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="64"></a><a href="#64">64</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="keyword">(</span><span class="default">$result</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">lastInsertId</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr class="danger"><td><div align="right"><a name="65"></a><a href="#65">65</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">else</span><span class="keyword">{</span><span class="keyword">return</span><span class="default"> </span><span class="default">false</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="66"></a><a href="#66">66</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="67"></a><a href="#67">67</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="68"></a><a href="#68">68</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="69"></a><a href="#69">69</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">delete</span><span class="keyword">(</span><span class="default">$idPatient</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="70"></a><a href="#70">70</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 71" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="71"></a><a href="#71">71</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'DELETE FROM Patient WHERE Patient.Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 72" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testAddAndDeletePatient</li><li class="covered-by-large-tests">PatientRepoTest::testUpdate</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="72"></a><a href="#72">72</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="73"></a><a href="#73">73</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="74"></a><a href="#74">74</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="75"></a><a href="#75">75</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="76"></a><a href="#76">76</a></div></td><td class="codeLine"><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="76"></a><a href="#76">76</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">updateMedecinTraitant</span><span class="keyword">(</span><span class="default">$idPatient</span><span class="keyword">,</span><span class="default">$idMedecin</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="77"></a><a href="#77">77</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 78" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="78"></a><a href="#78">78</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'UPDATE Patient SET MedecinTraitant = :medecin WHERE Id = :id'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 79" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testUpdateMedecinTraitant</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="79"></a><a href="#79">79</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'medecin'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idMedecin</span><span class="keyword">,</span><span class="default"> </span><span class="default">'id'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$idPatient</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="80"></a><a href="#80">80</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="81"></a><a href="#81">81</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="82"></a><a href="#82">82</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="83"></a><a href="#83">83</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">search</span><span class="keyword">(</span><span class="default">$nom</span><span class="keyword">,</span><span class="default">$prenom</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="84"></a><a href="#84">84</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 85" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="85"></a><a href="#85">85</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT * FROM Patient WHERE Nom LIKE :nom AND Prenom LIKE :prenom'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 86" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="86"></a><a href="#86">86</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'nom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$nom</span><span class="keyword">,</span><span class="default"> </span><span class="default">'prenom'</span><span class="default"> </span><span class="default">=></span><span class="default"> </span><span class="default">$prenom</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="1 test covers line 87" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testSearch</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="87"></a><a href="#87">87</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="88"></a><a href="#88">88</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="89"></a><a href="#89">89</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="90"></a><a href="#90">90</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="91"></a><a href="#91">91</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
|
||||
<tr><td><div align="right"><a name="92"></a><a href="#92">92</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 93" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="93"></a><a href="#93">93</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$req</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-></span><span class="default">query</span><span class="keyword">(</span><span class="default">'SELECT * FROM Patient ORDER BY nom, prenom ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="94"></a><a href="#94">94</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="covered-by-large-tests popin" data-title="2 tests cover line 95" data-content="<ul><li class="covered-by-large-tests">PatientRepoTest::testGetAll</li><li class="covered-by-large-tests">StatsRepoTest::testAgePatient</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="95"></a><a href="#95">95</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default"> </span><span class="default">$req</span><span class="default">-></span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
|
||||
<tr><td><div align="right"><a name="96"></a><a href="#96">96</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr class="warning"><td><div align="right"><a name="97"></a><a href="#97">97</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr>
|
||||
<tr><td><div align="right"><a name="98"></a><a href="#98">98</a></div></td><td class="codeLine"></td></tr>
|
||||
<tr><td><div align="right"><a name="99"></a><a href="#99">99</a></div></td><td class="codeLine"><span class="keyword">}</span></td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -318,7 +362,7 @@
|
|||
<span class="warning"><strong>Dead Code</strong></span>
|
||||
</p>
|
||||
<p>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 8:01:23 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 9:54:17 UTC 2015.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
|
|
|
@ -341,7 +341,7 @@
|
|||
<span class="warning"><strong>Dead Code</strong></span>
|
||||
</p>
|
||||
<p>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 8:01:23 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 9:54:17 UTC 2015.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
|
|
|
@ -213,7 +213,7 @@
|
|||
<span class="warning"><strong>Dead Code</strong></span>
|
||||
</p>
|
||||
<p>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 8:01:23 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 9:54:17 UTC 2015.</small>
|
||||
</p>
|
||||
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
|
||||
</footer>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="MedecinRepo.php.html#19"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">83%</td></tr>
|
||||
<tr><td><a href="MedecinRepo.php.html#22"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">85%</td></tr>
|
||||
<tr><td><a href="RDVRepo.php.html#59"><abbr title="RDVRepo::getAll">getAll</abbr></a></td><td class="text-right">85%</td></tr>
|
||||
<tr><td><a href="RDVRepo.php.html#31"><abbr title="RDVRepo::add">add</abbr></a></td><td class="text-right">88%</td></tr>
|
||||
|
||||
|
@ -131,8 +131,8 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="MedecinRepo.php.html#22"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">5</td></tr>
|
||||
<tr><td><a href="RDVRepo.php.html#59"><abbr title="RDVRepo::getAll">getAll</abbr></a></td><td class="text-right">4</td></tr>
|
||||
<tr><td><a href="MedecinRepo.php.html#19"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">2</td></tr>
|
||||
<tr><td><a href="RDVRepo.php.html#31"><abbr title="RDVRepo::add">add</abbr></a></td><td class="text-right">2</td></tr>
|
||||
|
||||
</tbody>
|
||||
|
@ -143,7 +143,7 @@
|
|||
<footer>
|
||||
<hr/>
|
||||
<p>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 8:01:23 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 9:54:17 UTC 2015.</small>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
@ -182,7 +182,7 @@ $(document).ready(function() {
|
|||
.yAxis.tickFormat(d3.format('d'));
|
||||
|
||||
d3.select('#methodCoverageDistribution svg')
|
||||
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,3,2,16], "Method Coverage"))
|
||||
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,3,3,16], "Method Coverage"))
|
||||
.transition().duration(500).call(chart);
|
||||
|
||||
nv.utils.windowResize(chart.update);
|
||||
|
@ -232,7 +232,7 @@ $(document).ready(function() {
|
|||
chart.yAxis.axisLabel('Cyclomatic Complexity');
|
||||
|
||||
d3.select('#classComplexity svg')
|
||||
.datum(getComplexityData([[95.238095238095,7,"<a href=\"MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[96.428571428571,7,"<a href=\"PatientRepo.php.html#9\">PatientRepo<\/a>"],[92.682926829268,11,"<a href=\"RDVRepo.php.html#9\">RDVRepo<\/a>"],[92.307692307692,9,"<a href=\"StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
|
||||
.datum(getComplexityData([[95.652173913043,11,"<a href=\"MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[95.652173913043,9,"<a href=\"PatientRepo.php.html#9\">PatientRepo<\/a>"],[92.682926829268,11,"<a href=\"RDVRepo.php.html#9\">RDVRepo<\/a>"],[92.307692307692,9,"<a href=\"StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
|
||||
.transition()
|
||||
.duration(500)
|
||||
.call(chart);
|
||||
|
@ -256,7 +256,7 @@ $(document).ready(function() {
|
|||
chart.yAxis.axisLabel('Method Complexity');
|
||||
|
||||
d3.select('#methodComplexity svg')
|
||||
.datum(getComplexityData([[100,1,"<a href=\"MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[83.333333333333,2,"<a href=\"MedecinRepo.php.html#19\">MedecinRepo::add<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#28\">MedecinRepo::delete<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#33\">MedecinRepo::search<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#41\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#51\">MedecinRepo::getAll<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#17\">PatientRepo::getById<\/a>"],[93.75,2,"<a href=\"PatientRepo.php.html#24\">PatientRepo::add<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#46\">PatientRepo::delete<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#53\">PatientRepo::updateMedecinTraitant<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#60\">PatientRepo::search<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#68\">PatientRepo::getAll<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#19\">RDVRepo::getByDate<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#26\">RDVRepo::delete<\/a>"],[88.888888888889,2,"<a href=\"RDVRepo.php.html#31\">RDVRepo::add<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#44\">RDVRepo::updateDateTime<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#51\">RDVRepo::getByPatientAndDate<\/a>"],[85.714285714286,4,"<a href=\"RDVRepo.php.html#59\">RDVRepo::getAll<\/a>"],[91.304347826087,8,"<a href=\"StatsRepo.php.html#12\">StatsRepo::getAgePatient<\/a>"],[100,1,"<a href=\"StatsRepo.php.html#48\">StatsRepo::getRDVStat<\/a>"]], 'Method Complexity'))
|
||||
.datum(getComplexityData([[100,2,"<a href=\"MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[85.714285714286,5,"<a href=\"MedecinRepo.php.html#22\">MedecinRepo::add<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#34\">MedecinRepo::delete<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#39\">MedecinRepo::search<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#47\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#57\">MedecinRepo::getAll<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#17\">PatientRepo::getById<\/a>"],[93.75,2,"<a href=\"PatientRepo.php.html#24\">PatientRepo::add<\/a>"],[94.444444444444,2,"<a href=\"PatientRepo.php.html#46\">PatientRepo::update<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#69\">PatientRepo::delete<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#76\">PatientRepo::updateMedecinTraitant<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#83\">PatientRepo::search<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#91\">PatientRepo::getAll<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#19\">RDVRepo::getByDate<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#26\">RDVRepo::delete<\/a>"],[88.888888888889,2,"<a href=\"RDVRepo.php.html#31\">RDVRepo::add<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#44\">RDVRepo::updateDateTime<\/a>"],[100,1,"<a href=\"RDVRepo.php.html#51\">RDVRepo::getByPatientAndDate<\/a>"],[85.714285714286,4,"<a href=\"RDVRepo.php.html#59\">RDVRepo::getAll<\/a>"],[91.304347826087,8,"<a href=\"StatsRepo.php.html#12\">StatsRepo::getAgePatient<\/a>"],[100,1,"<a href=\"StatsRepo.php.html#48\">StatsRepo::getRDVStat<\/a>"]], 'Method Complexity'))
|
||||
.transition()
|
||||
.duration(500)
|
||||
.call(chart);
|
||||
|
|
|
@ -44,21 +44,21 @@
|
|||
<tr>
|
||||
<td class="success">Total</td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="93.97" aria-valuemin="0" aria-valuemax="100" style="width: 93.97%">
|
||||
<span class="sr-only">93.97% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="94.12" aria-valuemin="0" aria-valuemax="100" style="width: 94.12%">
|
||||
<span class="sr-only">94.12% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">93.97%</div></td>
|
||||
<td class="success small"><div align="right">109 / 116</div></td>
|
||||
<td class="success small"><div align="right">94.12%</div></td>
|
||||
<td class="success small"><div align="right">128 / 136</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="76.19" aria-valuemin="0" aria-valuemax="100" style="width: 76.19%">
|
||||
<span class="sr-only">76.19% covered (warning)</span>
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="72.73" aria-valuemin="0" aria-valuemax="100" style="width: 72.73%">
|
||||
<span class="sr-only">72.73% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">76.19%</div></td>
|
||||
<td class="warning small"><div align="right">16 / 21</div></td>
|
||||
<td class="warning small"><div align="right">72.73%</div></td>
|
||||
<td class="warning small"><div align="right">16 / 22</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
|
@ -72,13 +72,13 @@
|
|||
<tr>
|
||||
<td class="success"><span class="glyphicon glyphicon-file"></span> <a href="MedecinRepo.php.html">MedecinRepo.php</a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.24" aria-valuemin="0" aria-valuemax="100" style="width: 95.24%">
|
||||
<span class="sr-only">95.24% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.65" aria-valuemin="0" aria-valuemax="100" style="width: 95.65%">
|
||||
<span class="sr-only">95.65% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">95.24%</div></td>
|
||||
<td class="success small"><div align="right">20 / 21</div></td>
|
||||
<td class="success small"><div align="right">95.65%</div></td>
|
||||
<td class="success small"><div align="right">22 / 23</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
|
@ -100,21 +100,21 @@
|
|||
<tr>
|
||||
<td class="success"><span class="glyphicon glyphicon-file"></span> <a href="PatientRepo.php.html">PatientRepo.php</a></td>
|
||||
<td class="success big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="96.43" aria-valuemin="0" aria-valuemax="100" style="width: 96.43%">
|
||||
<span class="sr-only">96.43% covered (success)</span>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.65" aria-valuemin="0" aria-valuemax="100" style="width: 95.65%">
|
||||
<span class="sr-only">95.65% covered (success)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="success small"><div align="right">96.43%</div></td>
|
||||
<td class="success small"><div align="right">27 / 28</div></td>
|
||||
<td class="success small"><div align="right">95.65%</div></td>
|
||||
<td class="success small"><div align="right">44 / 46</div></td>
|
||||
<td class="warning big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="83.33" aria-valuemin="0" aria-valuemax="100" style="width: 83.33%">
|
||||
<span class="sr-only">83.33% covered (warning)</span>
|
||||
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="71.43" aria-valuemin="0" aria-valuemax="100" style="width: 71.43%">
|
||||
<span class="sr-only">71.43% covered (warning)</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="warning small"><div align="right">83.33%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 6</div></td>
|
||||
<td class="warning small"><div align="right">71.43%</div></td>
|
||||
<td class="warning small"><div align="right">5 / 7</div></td>
|
||||
<td class="danger big"> <div class="progress">
|
||||
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
|
||||
<span class="sr-only">0.00% covered (danger)</span>
|
||||
|
@ -193,7 +193,7 @@
|
|||
<span class="success"><strong>High</strong>: 90% to 100%</span>
|
||||
</p>
|
||||
<p>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 8:01:23 UTC 2015.</small>
|
||||
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.0</a> at Thu Dec 10 9:54:17 UTC 2015.</small>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: seekdasky
|
||||
* Date: 10/12/15
|
||||
* Time: 10:02
|
||||
*/
|
||||
class Medecin
|
||||
{
|
||||
public function add($params){
|
||||
if(MedecinRepo::add($params['civilite'],strtolower($params['prenom']),strtolower($params['nom'])) !==FALSE){
|
||||
$response = new Response();
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Medecins.php?type=creation");
|
||||
$response->send();
|
||||
}else{
|
||||
$response = new Response(500);
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Medecins.php?type=error");
|
||||
$response->send();
|
||||
}
|
||||
}
|
||||
|
||||
public function delete($params){
|
||||
if(MedecinRepo::delete($params['id_medecin']) !==FALSE){
|
||||
$response = new Response();
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Medecins.php?type=supression");
|
||||
$response->send();
|
||||
}else{
|
||||
$response = new Response(500);
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Medecins.php?type=error");
|
||||
$response->send();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: seekdasky
|
||||
* Date: 10/12/15
|
||||
* Time: 09:16
|
||||
*/
|
||||
class Patient
|
||||
{
|
||||
public function add($params){
|
||||
$params['date_naissance'] = DateTime::createFromFormat('d-m-Y', $params['date_naissance']);
|
||||
if(PatientRepo::add($params['civilite'],strtolower($params['prenom']),strtolower($params['nom']),$params['adresse'],$params['adresse2'],$params['ville'],$params['cope_postal'],
|
||||
$params['date_naissance']->format('Y-m-d'),$params['lieu_naissance'],$params['num_secu'],$params['medecin_traitant']) !==FALSE){
|
||||
$response = new Response();
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/index.php?type=creation");
|
||||
$response->send();
|
||||
}else{
|
||||
$response = new Response(500);
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/index.php?type=error");
|
||||
$response->send();
|
||||
}
|
||||
}
|
||||
|
||||
public function update($params){
|
||||
$params['date_naissance'] = DateTime::createFromFormat('d-m-Y', $params['date_naissance']);
|
||||
if(PatientRepo::update($params['id_patient'],$params['civilite'],strtolower($params['prenom']),strtolower($params['nom']),$params['adresse'],$params['adresse2'],$params['ville'],$params['cope_postal'],
|
||||
$params['date_naissance']->format('Y-m-d'),$params['lieu_naissance'],$params['num_secu'],$params['medecin_traitant']) !==FALSE){
|
||||
$response = new Response();
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/index.php?type=creation");
|
||||
$response->send();
|
||||
}else{
|
||||
$response = new Response(500);
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/index.php?type=error");
|
||||
$response->send();
|
||||
}
|
||||
}
|
||||
|
||||
public function delete($params){
|
||||
if(PatientRepo::delete($params['id_patient']) !==FALSE){
|
||||
$response = new Response();
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Patients.php?type=supression");
|
||||
$response->send();
|
||||
}else{
|
||||
$response = new Response(500);
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Patients.php?type=error");
|
||||
$response->send();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: seekdasky
|
||||
* Date: 10/12/15
|
||||
* Time: 09:52
|
||||
*/
|
||||
class RDV
|
||||
{
|
||||
public function add($params){
|
||||
$params['date'] = DateTime::createFromFormat('d-m-Y', $params['date']);
|
||||
if(RDVRepo::add($params['date']->format('Y-m-d').' '.$params['heure'].':00',$params['duree'],$params['id_patient'],$params['id_medecin']) !==FALSE){
|
||||
$response = new Response();
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Consultation.php?type=creation");
|
||||
$response->send();
|
||||
}else{
|
||||
$response = new Response(500);
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Consultation.php?type=error");
|
||||
$response->send();
|
||||
}
|
||||
}
|
||||
|
||||
public function delete($params){
|
||||
if(RDVRepo::delete($params['id_consultation']) !==FALSE){
|
||||
$response = new Response();
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Consultation.php?type=supression");
|
||||
$response->send();
|
||||
}else{
|
||||
$response = new Response(500);
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Consultation.php?type=error");
|
||||
$response->send();
|
||||
}
|
||||
}
|
||||
|
||||
public function update($params){
|
||||
$params['date'] = DateTime::createFromFormat('d-m-Y', $params['date']);
|
||||
if(RDVRepo::updateDateTime($params['id_consultation'],$params['date']->format('Y-m-d').' '.$params['heure'].':00') !==FALSE){
|
||||
$response = new Response();
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Consultation.php?type=maj");
|
||||
$response->send();
|
||||
}else{
|
||||
$response = new Response(500);
|
||||
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Consultation.php?type=error");
|
||||
$response->send();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -134,7 +134,7 @@ class Response{
|
|||
/**
|
||||
* Envoi les headers de la réponse (status et ceux potentiellement défnini par l'utilisateur)
|
||||
*/
|
||||
public function sendHeader(){
|
||||
private function sendHeader(){
|
||||
//envoie le status de la requete (petit trick suivant l'architecture de PHP)
|
||||
if (strpos(PHP_SAPI, 'cgi') === 0) {
|
||||
header(sprintf('Status: %s', $this->Messages[$this->status]));
|
||||
|
|
|
@ -1,98 +1,33 @@
|
|||
{
|
||||
"Authentification": {
|
||||
"login":{"method": "authentification",
|
||||
"role": 3,
|
||||
"Patient": {
|
||||
"add":{"method": "add",
|
||||
"role": 0,
|
||||
"strict": false},
|
||||
"logout":{"method": "deconnection",
|
||||
"role": 3,
|
||||
"delete":{"method": "delete",
|
||||
"role": 0,
|
||||
"strict": false},
|
||||
"update":{"method": "update",
|
||||
"role": 0,
|
||||
"strict": false}
|
||||
},
|
||||
"Eleves": {
|
||||
"listByGroup": {"method": "getByGroupe",
|
||||
"role": 2,
|
||||
"strict": false},
|
||||
"listAll": {"method": "getAll",
|
||||
"role": 2,
|
||||
"strict": false},
|
||||
"importFromExcel": {"method":"importFromFile",
|
||||
"role":1,
|
||||
"strict":true
|
||||
},
|
||||
"changeGroup": {"method":"changeGroup",
|
||||
"role":1,
|
||||
"strict":true
|
||||
},
|
||||
"search": {"method":"search",
|
||||
"role":2,
|
||||
"strict":false
|
||||
},
|
||||
"listByDiplome": {"method": "getByDiplome",
|
||||
"role": 2,
|
||||
"strict":false
|
||||
},
|
||||
"getByCorrecteurAndControle":{"method": "getElevesByControleAndCorrecteur",
|
||||
"role":1,
|
||||
"strict":false}
|
||||
},
|
||||
"Notes": {
|
||||
"insert": {"method": "insert",
|
||||
"role": 1,
|
||||
"strict": true},
|
||||
"listAllEleve": {"method": "getAllNoteEleve",
|
||||
"role": 3,
|
||||
"strict" : true},
|
||||
"listAllByModuleEleve": {"method": "getAllNoteModuleEleve",
|
||||
"role": 3,
|
||||
"strict" : true},
|
||||
"updateComment": {"method": "updateComment",
|
||||
"role": 1,
|
||||
"strict" : true},
|
||||
"updateNote": {"method": "updateNote",
|
||||
"role": 1,
|
||||
"strict" : true},
|
||||
"exportAll": {"method": "exportAllNotes",
|
||||
"role": 2,
|
||||
"strict" : false}
|
||||
},
|
||||
|
||||
"MCC": {
|
||||
"importFromExcel": {"method": "importFromFile",
|
||||
"role": 1,
|
||||
"strict": true
|
||||
},
|
||||
"getUEByCode": {"method": "getUEByCode",
|
||||
"role": 3,
|
||||
"RDV": {
|
||||
"add": {"method": "add",
|
||||
"role": 0,
|
||||
"strict": false
|
||||
},
|
||||
"getUEByDiplome": {"method": "getUEByDiplome",
|
||||
"role": 1,
|
||||
"strict": true
|
||||
},
|
||||
"getModuleByCode": {"method": "getModuleByCode",
|
||||
"role": 1,
|
||||
"strict": true
|
||||
},
|
||||
"getControleByCode": {"method": "getControleByCode",
|
||||
"role": 1,
|
||||
"strict": true
|
||||
},
|
||||
"getModuleByCodeUE": {"method": "getModuleByCodeUE",
|
||||
"role": 1,
|
||||
"strict": true
|
||||
},
|
||||
"getControleByCodeModule": {"method": "getControleByCodeModule",
|
||||
"role": 1,
|
||||
"strict": true
|
||||
}
|
||||
"delete":{"method": "delete",
|
||||
"role": 0,
|
||||
"strict": false},
|
||||
"updateDateTime":{"method": "update",
|
||||
"role": 0,
|
||||
"strict": false}
|
||||
},
|
||||
"Prof":{"getByControle":{"method":"getByControle",
|
||||
"role" : 3,
|
||||
"strict": false
|
||||
},
|
||||
"setForCorrecteur":{"method":"setForControle",
|
||||
"role":1,
|
||||
"strict":true
|
||||
}
|
||||
|
||||
"Medecin":{
|
||||
"add":{"method":"add",
|
||||
"role":0,
|
||||
"strict":false},
|
||||
"delete":{"method": "delete",
|
||||
"role": 0,
|
||||
"strict": false}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,9 @@ class MedecinRepo
|
|||
{
|
||||
|
||||
public static function getById($id){
|
||||
|
||||
if(!StaticRepo::checkParam($id,'Integer')){return false;}
|
||||
|
||||
$req = StaticRepo::getConnexion()->prepare('SELECT * FROM Medecin WHERE Id = :id');
|
||||
$req->execute(['id' => $id]);
|
||||
return StaticRepo::delNumeric( $req->fetch(), true );
|
||||
|
@ -17,6 +20,9 @@ class MedecinRepo
|
|||
}
|
||||
|
||||
public static function add($civilite,$prenom,$nom){
|
||||
|
||||
if(!StaticRepo::checkParam($civilite,'Civilite') && !StaticRepo::checkParam($prenom,'String45') && !StaticRepo::checkParam($nom,'String45')){return false;}
|
||||
|
||||
$req = StaticRepo::getConnexion()->prepare('INSERT INTO Medecin VALUES (DEFAULT,:civilite,:prenom,:nom)');
|
||||
$result = $req->execute(['civilite' => $civilite,
|
||||
'nom' => $nom,
|
||||
|
@ -40,6 +46,8 @@ class MedecinRepo
|
|||
|
||||
public static function getPatients($idMedecin){
|
||||
|
||||
if(!StaticRepo::checkParam($idMedecin,'Integer')){return false;}
|
||||
|
||||
$req = StaticRepo::getConnexion()->prepare('SELECT Patient.* FROM Patient,Medecin
|
||||
WHERE Medecin.Id = :id
|
||||
AND Medecin.Id = Patient.MedecinTraitant');
|
||||
|
|
|
@ -15,6 +15,9 @@ class PatientRepo
|
|||
// }
|
||||
|
||||
public static function getById($id){
|
||||
|
||||
if(!StaticRepo::checkParam($id,'Integer')){return false;}
|
||||
|
||||
$req = StaticRepo::getConnexion()->prepare('SELECT * FROM Patient WHERE Id = :id');
|
||||
$req->execute(['id' => $id]);
|
||||
return StaticRepo::delNumeric( $req->fetch(), true );
|
||||
|
@ -26,7 +29,7 @@ class PatientRepo
|
|||
$dateNaissance = strtotime($dateNaissance);
|
||||
$dateNaissance = Date('o-m-d',$dateNaissance);
|
||||
|
||||
$req = StaticRepo::getConnexion()->prepare('INSERT INTO Patient VALUES (:civilite,:nom,:prenom,:adresse,:adresse2,:ville,:codePostal,:dateNaissance,:lieuNaissance,:numSecu,DEFAULT,:medecin)');
|
||||
$req = StaticRepo::getConnexion()->prepare('INSERT INTO Patient VALUES (DEFAULT,:civilite,:nom,:prenom,:adresse,:adresse2,:ville,:codePostal,:dateNaissance,:lieuNaissance,:numSecu,:medecin)');
|
||||
$result = $req->execute(['civilite' => $civilite,
|
||||
'nom' => $nom,
|
||||
'prenom' => $prenom,
|
||||
|
@ -43,8 +46,33 @@ class PatientRepo
|
|||
|
||||
}
|
||||
|
||||
public static function update($id,$civilite,$prenom,$nom,$adresse,$adresse2,$ville,$codePostal,$dateNaissance,$lieuNaissance,$numSecu,$medecinTraitant){
|
||||
$dateNaissance = strtotime($dateNaissance);
|
||||
$dateNaissance = Date('o-m-d',$dateNaissance);
|
||||
|
||||
$req = StaticRepo::getConnexion()->prepare('UPDATE Patient SET Civilite=:civilite,Nom=:nom,Prenom=:prenom,Adresse=:adresse,Adresse2=:adresse2,Ville=:ville,
|
||||
CodePostal=:codePostal,DateNaissance=:dateNaissance,LieuNaissance=:lieuNaissance,NumSecuriteSociale=:numSecu,MedecinTraitant=:medecin WHERE Id=:id;');
|
||||
$result = $req->execute(['civilite' => $civilite,
|
||||
'nom' => $nom,
|
||||
'prenom' => $prenom,
|
||||
'adresse' => $adresse,
|
||||
'adresse2' => $adresse2,
|
||||
'ville' => $ville,
|
||||
'codePostal' => $codePostal,
|
||||
'dateNaissance' => $dateNaissance,
|
||||
'lieuNaissance' => $lieuNaissance,
|
||||
'numSecu' => $numSecu,
|
||||
'medecin' => $medecinTraitant,
|
||||
'id' => $id]);
|
||||
if($result){return StaticRepo::getConnexion()->lastInsertId();}
|
||||
else{return false;}
|
||||
|
||||
}
|
||||
|
||||
public static function delete($idPatient){
|
||||
|
||||
if(!StaticRepo::checkParam($idPatient,'Integer')){return false;}
|
||||
|
||||
$req = StaticRepo::getConnexion()->prepare('DELETE FROM Patient WHERE Patient.Id = :id');
|
||||
return $req->execute(['id' => $idPatient]);
|
||||
|
||||
|
@ -52,6 +80,8 @@ class PatientRepo
|
|||
|
||||
public static function updateMedecinTraitant($idPatient,$idMedecin){
|
||||
|
||||
if(!StaticRepo::checkParam($idPatient,'Integer') && !StaticRepo::checkParam($idMedecin,'Integer')){return false;}
|
||||
|
||||
$req = StaticRepo::getConnexion()->prepare('UPDATE Patient SET MedecinTraitant = :medecin WHERE Id = :id');
|
||||
return $req->execute(['medecin' => $idMedecin, 'id' => $idPatient]);
|
||||
|
||||
|
|
202
src/Response.php
202
src/Response.php
|
@ -1,202 +0,0 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* La classe Response permet de gérer la réponse envoyée au client (status, contenu, type, encodage)
|
||||
* son utilitée principale est de pouvoir d'envoyer un pseudo-flux de donnée au client et permettre ainsi de suivre le déroulement
|
||||
* d'une opération côté serveur par exemple. Son second aventage est qu'une fois la réponse envoyée et féermée, le script PHP peut continuer de s'executer
|
||||
* permettant ainsi une sensation de vitesse au niveau du client (inutile d'attendre la fin des insertions en base de donnée pour avoir la réponse par exemple)
|
||||
*/
|
||||
|
||||
class Response{
|
||||
|
||||
private $status;
|
||||
private $headers = [];
|
||||
private $config = [];
|
||||
|
||||
private $response = "";
|
||||
|
||||
private $Messages = array(
|
||||
//Informational 1xx
|
||||
100 => '100 Continue',
|
||||
101 => '101 Switching Protocols',
|
||||
//Successful 2xx
|
||||
200 => '200 OK',
|
||||
201 => '201 Created',
|
||||
202 => '202 Accepted',
|
||||
203 => '203 Non-Authoritative Information',
|
||||
204 => '204 No Content',
|
||||
205 => '205 Reset Content',
|
||||
206 => '206 Partial Content',
|
||||
226 => '226 IM Used',
|
||||
//Redirection 3xx
|
||||
300 => '300 Multiple Choices',
|
||||
301 => '301 Moved Permanently',
|
||||
302 => '302 Found',
|
||||
303 => '303 See Other',
|
||||
304 => '304 Not Modified',
|
||||
305 => '305 Use Proxy',
|
||||
306 => '306 (Unused)',
|
||||
307 => '307 Temporary Redirect',
|
||||
//Client Error 4xx
|
||||
400 => '400 Bad Request',
|
||||
401 => '401 Unauthorized',
|
||||
402 => '402 Payment Required',
|
||||
403 => '403 Forbidden',
|
||||
404 => '404 Not Found',
|
||||
405 => '405 Method Not Allowed',
|
||||
406 => '406 Not Acceptable',
|
||||
407 => '407 Proxy Authentication Required',
|
||||
408 => '408 Request Timeout',
|
||||
409 => '409 Conflict',
|
||||
410 => '410 Gone',
|
||||
411 => '411 Length Required',
|
||||
412 => '412 Precondition Failed',
|
||||
413 => '413 Request Entity Too Large',
|
||||
414 => '414 Request-URI Too Long',
|
||||
415 => '415 Unsupported Media Type',
|
||||
416 => '416 Requested Range Not Satisfiable',
|
||||
417 => '417 Expectation Failed',
|
||||
418 => '418 I\'m a teapot',
|
||||
422 => '422 Unprocessable Entity',
|
||||
423 => '423 Locked',
|
||||
426 => '426 Upgrade Required',
|
||||
428 => '428 Precondition Required',
|
||||
429 => '429 Too Many Requests',
|
||||
431 => '431 Request Header Fields Too Large',
|
||||
//Server Error 5xx
|
||||
500 => '500 Internal Server Error',
|
||||
501 => '501 Not Implemented',
|
||||
502 => '502 Bad Gateway',
|
||||
503 => '503 Service Unavailable',
|
||||
504 => '504 Gateway Timeout',
|
||||
505 => '505 HTTP Version Not Supported',
|
||||
506 => '506 Variant Also Negotiates',
|
||||
510 => '510 Not Extended',
|
||||
511 => '511 Network Authentication Required'
|
||||
);
|
||||
|
||||
/**
|
||||
* Constructeur de la Response
|
||||
* @param int $status status HTTP de la réponse (404,200,500, etc)
|
||||
* @param bool|false $stream Si la réponse est un stream (avtive/désactive les méthodes send/stream()
|
||||
* @param string $type type HTTP des données de retour
|
||||
* @param bool|true $clearBuffer si activé, vide le buffer avant chaque envoi de donnée (a pour effet de ne pas afficher les echo/printf)
|
||||
*/
|
||||
public function __construct($status = 200,$stream = false,$type = 'application/json', $clearBuffer = false)
|
||||
{
|
||||
$this->status = $status;
|
||||
array_push($this->headers,['Content-Type',$type]);
|
||||
|
||||
$this->config['clearBuffer'] = $clearBuffer;
|
||||
$this->config['stream'] = $stream;
|
||||
}
|
||||
|
||||
/** Ajoute du contenu a la réponse qui sera envoyé (par stream() ou par send() )
|
||||
* @param $content contenu a ajouter a la réponse
|
||||
*/
|
||||
public function write($content){
|
||||
$this->response .= $content;
|
||||
}
|
||||
|
||||
/** Envoie une partie de réponse au client (doit être récupéré en ajax, aucun intéret sinon), chaque bloc de donéne envoyé est séparé par
|
||||
* un délimiteur ("//Block//" par défaut).ATTENTION: stream() vide la réponse (si on write() puis stream(), la réponse qu'il restera dans l'objet sera vide)
|
||||
* @param string $content contenu a envoyer (optionnel car on peut utiliser la méthode write pour le faire)
|
||||
* @throws Exception si la réponse n'est pas un stream
|
||||
*/
|
||||
public function stream($content="",$delimiter = "//Block//"){
|
||||
//vérification que la réponse est un stream
|
||||
if(!$this->config['stream']){
|
||||
throw new Exception("Stream d'une réponse synchrone");
|
||||
}
|
||||
//si les headers ne sont pas encore envoyés, on le fait
|
||||
if(!headers_sent()){
|
||||
$this->sendHeader();
|
||||
}
|
||||
//si demandé, on clear le buffer avant d'envoyer
|
||||
if($this->config['clearBuffer']){
|
||||
ob_end_clean();
|
||||
if($GLOBALS['compression']){
|
||||
ob_start("ob_gzhandler");
|
||||
}else{
|
||||
ob_start();
|
||||
}
|
||||
}
|
||||
//on envoi le contenu de response et la variable content
|
||||
if($this->response!=""){
|
||||
echo $delimiter.$this->response;
|
||||
}if($content != ""){
|
||||
echo $delimiter.$content;
|
||||
}
|
||||
ob_flush();flush();
|
||||
$this->response = '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Envoi les headers de la réponse (status et ceux potentiellement défnini par l'utilisateur)
|
||||
*/
|
||||
public function sendHeader(){
|
||||
//envoie le status de la requete (petit trick suivant l'architecture de PHP)
|
||||
if (strpos(PHP_SAPI, 'cgi') === 0) {
|
||||
header(sprintf('Status: %s', $this->Messages[$this->status]));
|
||||
} else {
|
||||
header(sprintf('HTTP/1.1 %s', $this->Messages[$this->status]));
|
||||
}
|
||||
//les autres headers
|
||||
foreach($this->headers as $header){
|
||||
header(sprintf('%s: %s',$header[0],$header[1]));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Défini un header qui sera envoyé
|
||||
* @param $header Nom du header
|
||||
* @param $value Valeur du header
|
||||
*/
|
||||
public function setHeader($header,$value){
|
||||
array_push($this->headers,[$header,$value]);
|
||||
}
|
||||
|
||||
/** Envoi la réponse et ferme la communication
|
||||
* @throws Exception si la réponse est un stream
|
||||
*/
|
||||
public function send(){
|
||||
//vérification que la réponse n'est pas un stream
|
||||
if($this->config['stream']){
|
||||
throw new Exception("Envoi synchrone d'une réponse stream");
|
||||
}
|
||||
//si les headers ne sont pas encore envoyés, on le fait
|
||||
if(!headers_sent()){
|
||||
$this->sendHeader();
|
||||
}
|
||||
//si demandé, on clear le buffer avant d'envoyer
|
||||
if($this->config['clearBuffer']){
|
||||
ob_end_clean();
|
||||
if($GLOBALS['compression']){
|
||||
ob_start("ob_gzhandler");
|
||||
}else{
|
||||
ob_start();
|
||||
}
|
||||
}
|
||||
//envoi de la réponse
|
||||
echo $this->response;
|
||||
//fermeture de la communication
|
||||
header('Connection: close');
|
||||
header('Content-Length: '.ob_get_length());
|
||||
ob_end_flush();
|
||||
ob_flush();
|
||||
flush();
|
||||
//permet au reste du script de s'executer même si la réponse a été envoyé et que l'utilisateur interromp le script (changement de page, etc...)
|
||||
ignore_user_abort(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $status status HTTP de la réponse (404,200,500, etc)
|
||||
* @param $content
|
||||
* @param string $type
|
||||
*/
|
||||
public static function quickResponse($status,$content,$type = 'application/json'){
|
||||
$response = new Response($status,false,$type);
|
||||
$response->write($content);
|
||||
$response->send();
|
||||
}
|
||||
}
|
|
@ -43,4 +43,12 @@ class PatientRepoTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertEquals(count($this->repo->getAll()),100);
|
||||
}
|
||||
|
||||
public function testUpdate(){
|
||||
$id = PatientRepo::add('M','Lucas','Mascaro','3 rue des fleurs qui sentent bon',NULL,'Pimpous-Les-Bains','31524','1996-11-19','Toulouse','123456789876543', 69);
|
||||
$this->assertEquals(0,PatientRepo::update($id,'F','Lucas','Mascaro','3 rue des fleurs qui sentent bon','lol','Pimpous-Les-Bains','31524','1996-11-19','Toulouse','123456789876543', 69));
|
||||
$patient = PatientRepo::getById($id);
|
||||
$this->assertEquals('F',$patient['Civilite']);
|
||||
PatientRepo::delete($id);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -55,9 +55,9 @@ class RDVRepoTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
|
||||
public function testGetAll(){
|
||||
$this->assertEquals(count($this->repo->getAll(-1)),98);
|
||||
$this->assertEquals(count($this->repo->getAll(-1)),99);
|
||||
$this->assertEquals(count($this->repo->getAll(0)),100);
|
||||
$this->assertEquals(count($this->repo->getAll(1)),2);
|
||||
$this->assertEquals(count($this->repo->getAll(1)),1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue