109fbf3e5SGreg Roach<?php 23976b470SGreg Roach 309fbf3e5SGreg Roach/** 409fbf3e5SGreg Roach * webtrees: online genealogy 509fbf3e5SGreg Roach * Copyright (C) 2019 webtrees development team 609fbf3e5SGreg Roach * This program is free software: you can redistribute it and/or modify 709fbf3e5SGreg Roach * it under the terms of the GNU General Public License as published by 809fbf3e5SGreg Roach * the Free Software Foundation, either version 3 of the License, or 909fbf3e5SGreg Roach * (at your option) any later version. 1009fbf3e5SGreg Roach * This program is distributed in the hope that it will be useful, 1109fbf3e5SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 1209fbf3e5SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1309fbf3e5SGreg Roach * GNU General Public License for more details. 1409fbf3e5SGreg Roach * You should have received a copy of the GNU General Public License 1509fbf3e5SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 1609fbf3e5SGreg Roach */ 17fcfa147eSGreg Roach 1809fbf3e5SGreg Roachdeclare(strict_types=1); 1909fbf3e5SGreg Roach 2009fbf3e5SGreg Roachnamespace Fisharebest\Webtrees\Module; 2109fbf3e5SGreg Roach 2209fbf3e5SGreg Roachuse Illuminate\Support\Collection; 2309fbf3e5SGreg Roach 2409fbf3e5SGreg Roach/** 2509fbf3e5SGreg Roach * Class USPresidents 2609fbf3e5SGreg Roach */ 2709fbf3e5SGreg Roachclass USPresidents extends AbstractModule implements ModuleHistoricEventsInterface 2809fbf3e5SGreg Roach{ 2909fbf3e5SGreg Roach use ModuleHistoricEventsTrait; 3009fbf3e5SGreg Roach 3109fbf3e5SGreg Roach /** 320cfd6963SGreg Roach * How should this module be identified in the control panel, etc.? 3309fbf3e5SGreg Roach * 3409fbf3e5SGreg Roach * @return string 3509fbf3e5SGreg Roach */ 3609fbf3e5SGreg Roach public function title(): string 3709fbf3e5SGreg Roach { 3809fbf3e5SGreg Roach return 'United States presidents'; 3909fbf3e5SGreg Roach } 4009fbf3e5SGreg Roach 4109fbf3e5SGreg Roach /** 4209fbf3e5SGreg Roach * Should this module be enabled when it is first installed? 4309fbf3e5SGreg Roach * 4409fbf3e5SGreg Roach * @return bool 4509fbf3e5SGreg Roach */ 4609fbf3e5SGreg Roach public function isEnabledByDefault(): bool 4709fbf3e5SGreg Roach { 4809fbf3e5SGreg Roach return false; 4909fbf3e5SGreg Roach } 5009fbf3e5SGreg Roach 5109fbf3e5SGreg Roach /** 5209fbf3e5SGreg Roach * All events provided by this module. 5309fbf3e5SGreg Roach * 54*b5c8fd7eSGreg Roach * @return Collection<string> 5509fbf3e5SGreg Roach */ 5609fbf3e5SGreg Roach public function historicEventsAll(): Collection 5709fbf3e5SGreg Roach { 5809fbf3e5SGreg Roach return new Collection([ 5909fbf3e5SGreg Roach "1 EVEN George Washington\n2 TYPE 1st President of the United States\n2 DATE 30 APR 1789", 6009fbf3e5SGreg Roach "1 EVEN John Adams\n2 TYPE 2nd President of the United States\n2 DATE 4 MAR 1797", 6109fbf3e5SGreg Roach "1 EVEN Thomas Jefferson\n2 TYPE 3rd President of the United States\n2 DATE 4 MAR 1801", 6209fbf3e5SGreg Roach "1 EVEN James Madison\n2 TYPE 4th President of the United States\n2 DATE 4 MAR 1809", 6309fbf3e5SGreg Roach "1 EVEN James Monroe\n2 TYPE 5th President of the United States\n2 DATE 4 MAR 1817", 6409fbf3e5SGreg Roach "1 EVEN John Quincy Adams\n2 TYPE 6th President of the United States\n2 DATE 4 MAR 1825", 6509fbf3e5SGreg Roach "1 EVEN Andrew Jackson\n2 TYPE 7th President of the United States\n2 DATE 4 MAR 1829", 6609fbf3e5SGreg Roach "1 EVEN Martin Van Buren\n2 TYPE 8th President of the United States\n2 DATE 4 MAR 1837", 6709fbf3e5SGreg Roach "1 EVEN William Henry Harrison\n2 TYPE 9th President of the United States\n2 DATE 4 MAR 1841", 6809fbf3e5SGreg Roach "1 EVEN John Tyler\n2 TYPE 10th President of the United States\n2 DATE 4 APR 1841", 6909fbf3e5SGreg Roach "1 EVEN James K Polk\n2 TYPE 11th President of the United States\n2 DATE 4 MAR 1845", 7009fbf3e5SGreg Roach "1 EVEN Zachary Taylor\n2 TYPE 12th President of the United States\n2 DATE 4 MAR 1849", 7109fbf3e5SGreg Roach "1 EVEN Millard Fillmore\n2 TYPE 13th President of the United States\n2 DATE 9 JUL 1850", 7209fbf3e5SGreg Roach "1 EVEN Franklin Pierce\n2 TYPE 14th President of the United States\n2 DATE 4 MAR 1853", 7309fbf3e5SGreg Roach "1 EVEN James Buchanan\n2 TYPE 15th President of the United States\n2 DATE 4 MAR 1857", 7409fbf3e5SGreg Roach "1 EVEN Abraham Lincoln\n2 TYPE 16th President of the United States\n2 DATE 4 MAR 1861", 7509fbf3e5SGreg Roach "1 EVEN Andrew Johnson\n2 TYPE 17th President of the United States\n2 DATE 15 APR 1865", 7609fbf3e5SGreg Roach "1 EVEN Ulysses S Grant\n2 TYPE 18th President of the United States\n2 DATE 4 MAR 1869", 7709fbf3e5SGreg Roach "1 EVEN Rutherford B Hayes\n2 TYPE 19th President of the United States\n2 DATE 4 MAR 1877", 7809fbf3e5SGreg Roach "1 EVEN James A Garfield\n2 TYPE 20th President of the United States\n2 DATE 4 MAR 1881", 7909fbf3e5SGreg Roach "1 EVEN Chester A Arthur\n2 TYPE 21st President of the United States\n2 DATE 19 SEP 1881", 8009fbf3e5SGreg Roach "1 EVEN Grover Cleveland\n2 TYPE 22nd President of the United States\n2 DATE 4 MAR 1885", 8109fbf3e5SGreg Roach "1 EVEN Benjamin Harrison\n2 TYPE 23rd President of the United States\n2 DATE 4 MAR 1889", 8209fbf3e5SGreg Roach "1 EVEN Grover Cleveland\n2 TYPE 24th President of the United States\n2 DATE 4 MAR 1893", 8309fbf3e5SGreg Roach "1 EVEN William McKinley\n2 TYPE 25th President of the United States\n2 DATE 4 MAR 1897", 8409fbf3e5SGreg Roach "1 EVEN Theodore Roosevelt\n2 TYPE 26th President of the United States\n2 DATE 14 SEP 1901", 8509fbf3e5SGreg Roach "1 EVEN William Howard Taft\n2 TYPE 27th President of the United States\n2 DATE 4 MAR 1909", 8609fbf3e5SGreg Roach "1 EVEN Woodrow Wilson\n2 TYPE 28th President of the United States\n2 DATE 4 MAR 1913", 8709fbf3e5SGreg Roach "1 EVEN Warren G Harding\n2 TYPE 29th President of the United States\n2 DATE 4 MAR 1921", 8809fbf3e5SGreg Roach "1 EVEN Calvin Coolidge\n2 TYPE 30th President of the United States\n2 DATE 2 AUG 1923", 8909fbf3e5SGreg Roach "1 EVEN Herbert Hoover\n2 TYPE 31st President of the United States\n2 DATE 4 MAR 1929", 9009fbf3e5SGreg Roach "1 EVEN Franklin D Roosevelt\n2 TYPE 32nd President of the United States\n2 DATE 4 MAR 1933", 9109fbf3e5SGreg Roach "1 EVEN Harry S Truman\n2 TYPE 33rd President of the United States\n2 DATE 12 APR 1945", 9209fbf3e5SGreg Roach "1 EVEN Dwight D Eisenhower\n2 TYPE 34th President of the United States\n2 DATE 20 JAN 1953", 9309fbf3e5SGreg Roach "1 EVEN John F Kennedy\n2 TYPE 35th President of the United States\n2 DATE 20 JAN 1961", 9409fbf3e5SGreg Roach "1 EVEN Lyndon B Johnson\n2 TYPE 36th President of the United States\n2 DATE 22 NOV 1963", 9509fbf3e5SGreg Roach "1 EVEN Richard Nixon\n2 TYPE 37th President of the United States\n2 DATE 20 JAN 1969", 9609fbf3e5SGreg Roach "1 EVEN Gerald Ford\n2 TYPE 38th President of the United States\n2 DATE 9 AUG 1974", 9709fbf3e5SGreg Roach "1 EVEN Jimmy Carter\n2 TYPE 39th President of the United States\n2 DATE 20 JAN 1977", 9809fbf3e5SGreg Roach "1 EVEN Ronald Reagan\n2 TYPE 40th President of the United States\n2 DATE 20 JAN 1981", 9909fbf3e5SGreg Roach "1 EVEN George H W Bush\n2 TYPE 41st President of the United States\n2 DATE 20 JAN 1989", 10009fbf3e5SGreg Roach "1 EVEN Bill Clinton\n2 TYPE 42nd President of the United States\n2 DATE 20 JAN 1993", 10109fbf3e5SGreg Roach "1 EVEN George W Bush\n2 TYPE 43rd President of the United States\n2 DATE 20 JAN 2001", 10209fbf3e5SGreg Roach "1 EVEN Barack Obama\n2 TYPE 44th President of the United States\n2 DATE 20 JAN 2009", 10309fbf3e5SGreg Roach "1 EVEN Donald Trump\n2 TYPE 45th President of the United States\n2 DATE 20 JAN 2017", 10409fbf3e5SGreg Roach ]); 10509fbf3e5SGreg Roach } 10609fbf3e5SGreg Roach} 107