/webtrees/tests/app/ |
H A D | ValidatorTest.php | 38 self::assertSame('test', Validator::attributes($request)->string('param')); 48 self::assertSame('test', Validator::parsedBody($request)->string('param')); 58 self::assertSame('test', Validator::queryParams($request)->string('param')); 68 self::assertSame('test', Validator::serverParams($request)->string('param')); 80 Validator::queryParams($request); 92 Validator::queryParams($request); 102 self::assertSame(['test'], Validator::queryParams($request)->array('param')); 106 Validator::queryParams($request)->array('invalid'); 123 self::assertTrue(Validator::queryParams($request)->boolean('a')); 124 self::assertTrue(Validator::queryParams($request)->boolean('b')); [all …]
|
/webtrees/app/Http/RequestHandlers/ |
H A D | TreePreferencesAction.php | 26 use Fisharebest\Webtrees\Validator; alias 52 $tree = Validator::attributes($request)->tree(); 56 $calendar_format_0 = Validator::parsedBody($request)->string('CALENDAR_FORMAT0'); 57 $calendar_format_1 = Validator::parsedBody($request)->string('CALENDAR_FORMAT1'); 59 $chart_box_tags = Validator::parsedBody($request)->array('CHART_BOX_TAGS'); 60 … $contact_user_id = Validator::parsedBody($request)->integer('CONTACT_USER_ID', 0); 61 $expand_notes = Validator::parsedBody($request)->boolean('EXPAND_NOTES'); 62 $expand_sources = Validator::parsedBody($request)->boolean('EXPAND_SOURCES'); 63 $fam_facts_quick = Validator::parsedBody($request)->array('FAM_FACTS_QUICK'); 64 $format_text = Validator::parsedBody($request)->string('FORMAT_TEXT'); [all …]
|
H A D | UserEditAction.php | 32 use Fisharebest\Webtrees\Validator; alias 72 $user = Validator::attributes($request)->user(); 73 $user_id = Validator::parsedBody($request)->integer('user_id'); 74 $username = Validator::parsedBody($request)->string('username'); 75 $real_name = Validator::parsedBody($request)->string('real_name'); 76 $email = Validator::parsedBody($request)->string('email'); 77 $password = Validator::parsedBody($request)->string('password'); 78 $theme = Validator::parsedBody($request)->string('theme'); 79 $language = Validator::parsedBody($request)->string('language'); 80 $timezone = Validator::parsedBody($request)->string('timezone'); [all …]
|
H A D | EmailPreferencesAction.php | 27 use Fisharebest\Webtrees\Validator; alias 58 $user = Validator::attributes($request)->user(); 59 $active = Validator::parsedBody($request)->string('SMTP_ACTIVE'); 60 $disp_name = Validator::parsedBody($request)->string('SMTP_DISP_NAME'); 61 $from_name = Validator::parsedBody($request)->string('SMTP_FROM_NAME'); 62 $host = Validator::parsedBody($request)->string('SMTP_HOST'); 63 $port = Validator::parsedBody($request)->string('SMTP_PORT'); 64 $auth = Validator::parsedBody($request)->string('SMTP_AUTH'); 65 $auth_user = Validator::parsedBody($request)->string('SMTP_AUTH_USER'); 66 $auth_pass = Validator::parsedBody($request)->string('SMTP_AUTH_PASS'); [all …]
|
H A D | TreePrivacyAction.php | 26 use Fisharebest\Webtrees\Validator; alias 47 $tree = Validator::attributes($request)->tree(); 49 $delete_default_resn_id = Validator::parsedBody($request)->array('delete'); 55 $xrefs = Validator::parsedBody($request)->array('xref'); 56 $tag_types = Validator::parsedBody($request)->array('tag_type'); 57 $resns = Validator::parsedBody($request)->array('resn'); 108 $hide_live_people = Validator::parsedBody($request)->string('HIDE_LIVE_PEOPLE'); 109 …$keep_alive_years_birth = Validator::parsedBody($request)->integer('KEEP_ALIVE_YEARS_BIRTH', 0… 110 …$keep_alive_years_death = Validator::parsedBody($request)->integer('KEEP_ALIVE_YEARS_DEATH', 0… 111 $max_alive_age = Validator::parsedBody($request)->integer('MAX_ALIVE_AGE'); [all …]
|
H A D | AccountUpdate.php | 29 use Fisharebest\Webtrees\Validator; alias 60 $tree = Validator::attributes($request)->treeOptional(); 61 $user = Validator::attributes($request)->user(); 65 $contact_method = Validator::parsedBody($request)->string('contact-method'); 66 $email = Validator::parsedBody($request)->string('email'); 67 $language = Validator::parsedBody($request)->string('language'); 68 $real_name = Validator::parsedBody($request)->string('real_name'); 69 $password = Validator::parsedBody($request)->string('password'); 70 $time_zone = Validator::parsedBody($request)->string('timezone'); 71 $user_name = Validator::parsedBody($request)->string('user_name'); [all …]
|
H A D | CalendarAction.php | 22 use Fisharebest\Webtrees\Validator; alias 43 'tree' => Validator::attributes($request)->tree()->name(), 44 …'view' => Validator::attributes($request)->isInArray(['day', 'month', 'year'])->string('view'), 45 'cal' => Validator::parsedBody($request)->string('cal'), 46 'day' => Validator::parsedBody($request)->integer('day'), 47 'month' => Validator::parsedBody($request)->string('month'), 48 'year' => Validator::parsedBody($request)->integer('year'), 49 'filterev' => Validator::parsedBody($request)->string('filterev'), 50 'filterof' => Validator::parsedBody($request)->string('filterof'), 51 'filtersx' => Validator::parsedBody($request)->string('filtersx'),
|
H A D | SearchGeneralAction.php | 22 use Fisharebest\Webtrees\Validator; alias 40 'query' => Validator::parsedBody($request)->string('query'), 41 … 'search_families' => Validator::parsedBody($request)->boolean('search_families', false), 42 … 'search_individuals' => Validator::parsedBody($request)->boolean('search_individuals', false), 43 … 'search_locations' => Validator::parsedBody($request)->boolean('search_locations', false), 44 … 'search_notes' => Validator::parsedBody($request)->boolean('search_notes', false), 45 … 'search_repositories' => Validator::parsedBody($request)->boolean('search_repositories', false), 46 … 'search_sources' => Validator::parsedBody($request)->boolean('search_sources', false), 47 'search_trees' => Validator::parsedBody($request)->array('search_trees'), 48 'tree' => Validator::attributes($request)->tree()->name(),
|
H A D | RedirectCalendarPhp.php | 28 use Fisharebest\Webtrees\Validator; alias 45 …$ged = Validator::queryParams($request)->string('ged', Site::getPreference('DEFAULT_GEDCOM')); 46 $cal = Validator::queryParams($request)->string('cal', ''); 47 $day = Validator::queryParams($request)->string('day', ''); 48 $month = Validator::queryParams($request)->string('month', ''); 49 $year = Validator::queryParams($request)->string('year', ''); 50 $filterev = Validator::queryParams($request)->string('filterev', ''); 51 $filterof = Validator::queryParams($request)->string('filterof', ''); 52 $filtersx = Validator::queryParams($request)->string('filtersx', ''); 53 $view = Validator::queryParams($request)->string('view', 'day');
|
H A D | AddSpouseToIndividualAction.php | 27 use Fisharebest\Webtrees\Validator; alias 56 $tree = Validator::attributes($request)->tree(); 57 $xref = Validator::attributes($request)->isXref()->string('xref'); 62 $levels = Validator::parsedBody($request)->array('ilevels'); 63 $tags = Validator::parsedBody($request)->array('itags'); 64 $values = Validator::parsedBody($request)->array('ivalues'); 69 $levels = Validator::parsedBody($request)->array('flevels'); 70 $tags = Validator::parsedBody($request)->array('ftags'); 71 $values = Validator::parsedBody($request)->array('fvalues'); 83 $url = Validator::parsedBody($request)->isLocalUrl()->string('url', $spouse->url());
|
H A D | PendingChangesLogAction.php | 22 use Fisharebest\Webtrees\Validator; alias 40 'tree' => Validator::parsedBody($request)->string('tree'), 41 'from' => Validator::parsedBody($request)->string('from'), 42 'to' => Validator::parsedBody($request)->string('to'), 43 'type' => Validator::parsedBody($request)->string('type'), 44 'oldged' => Validator::parsedBody($request)->string('oldged'), 45 'newged' => Validator::parsedBody($request)->string('newged'), 46 'xref' => Validator::parsedBody($request)->string('xref'), 47 'username' => Validator::parsedBody($request)->string('username'),
|
H A D | AddSpouseToFamilyAction.php | 27 use Fisharebest\Webtrees\Validator; alias 56 $tree = Validator::attributes($request)->tree(); 57 $xref = Validator::attributes($request)->isXref()->string('xref'); 62 $levels = Validator::parsedBody($request)->array('ilevels'); 63 $tags = Validator::parsedBody($request)->array('itags'); 64 $values = Validator::parsedBody($request)->array('ivalues'); 89 $levels = Validator::parsedBody($request)->array('flevels'); 90 $tags = Validator::parsedBody($request)->array('ftags'); 91 $values = Validator::parsedBody($request)->array('fvalues'); 98 $url = Validator::parsedBody($request)->isLocalUrl()->string('url', $spouse->url());
|
H A D | CreateSourceAction.php | 24 use Fisharebest\Webtrees\Validator; alias 41 $tree = Validator::attributes($request)->tree(); 42 $title = Validator::parsedBody($request)->isNotEmpty()->string('source-title'); 43 $abbreviation = Validator::parsedBody($request)->string('source-abbreviation'); 44 $author = Validator::parsedBody($request)->string('source-author'); 45 $publication = Validator::parsedBody($request)->string('source-publication'); 46 $repository = Validator::parsedBody($request)->isXref()->string('source-repository', ''); 47 $call_number = Validator::parsedBody($request)->string('source-call-number'); 48 $text = Validator::parsedBody($request)->string('source-text'); 49 $restriction = Validator::parsedBody($request)->string('restriction');
|
/webtrees/app/Module/ |
H A D | ClippingsCartModule.php | 53 use Fisharebest\Webtrees\Validator; alias 136 $route = Validator::attributes($request)->route(); 199 $tree = Validator::attributes($request)->tree(); 219 $tree = Validator::attributes($request)->tree(); 231 $filename = Validator::parsedBody($request)->string('filename'); 232 …$format = Validator::parsedBody($request)->isInArray(['gedcom', 'zip', 'zipmedia', 'gedzip']… 233 … $privacy = Validator::parsedBody($request)->isInArray($privacy_options)->string('privacy'); 234 …$encoding = Validator::parsedBody($request)->isInArray([UTF8::NAME, UTF16BE::NAME, ANSEL::NAME… 235 …$line_endings = Validator::parsedBody($request)->isInArray(['CRLF', 'LF'])->string('line_endings'); 296 $tree = Validator::attributes($request)->tree(); [all …]
|
H A D | FamilyTreeStatisticsModule.php | 30 use Fisharebest\Webtrees\Validator; alias 240 $show_last_update = Validator::parsedBody($request)->boolean('show_last_update', false); 241 … $show_common_surnames = Validator::parsedBody($request)->boolean('show_common_surnames', false); 242 $number_of_surnames = Validator::parsedBody($request)->integer('number_of_surnames'); 243 $stat_indi = Validator::parsedBody($request)->boolean('stat_indi', false); 244 $stat_fam = Validator::parsedBody($request)->boolean('stat_fam', false); 245 $stat_sour = Validator::parsedBody($request)->boolean('stat_sour', false); 246 $stat_other = Validator::parsedBody($request)->boolean('stat_other', false); 247 $stat_media = Validator::parsedBody($request)->boolean('stat_media', false); 248 $stat_repo = Validator::parsedBody($request)->boolean('stat_repo', false); [all …]
|
H A D | SlideShowModule.php | 29 use Fisharebest\Webtrees\Validator; alias 89 $start = Validator::queryParams($request)->boolean('start', $default_start); 244 … $this->setBlockSetting($block_id, 'filter', Validator::parsedBody($request)->string('filter')); 245 …$this->setBlockSetting($block_id, 'controls', Validator::parsedBody($request)->string('controls')); 246 … $this->setBlockSetting($block_id, 'start', Validator::parsedBody($request)->string('start')); 247 …lock_id, 'filter_' . strtolower(SourceMediaType::VALUE_AUDIO), (string) Validator::parsedBody($req… 248 …block_id, 'filter_' . strtolower(SourceMediaType::VALUE_BOOK), (string) Validator::parsedBody($req… 249 …block_id, 'filter_' . strtolower(SourceMediaType::VALUE_CARD), (string) Validator::parsedBody($req… 250 …d, 'filter_' . strtolower(SourceMediaType::VALUE_CERTIFICATE), (string) Validator::parsedBody($req… 251 …block_id, 'filter_' . strtolower(SourceMediaType::VALUE_COAT), (string) Validator::parsedBody($req… [all …]
|
H A D | MediaListModule.php | 31 use Fisharebest\Webtrees\Validator; alias 146 $tree = Validator::attributes($request)->tree(); 147 $user = Validator::attributes($request)->user(); 157 'page' => Validator::parsedBody($request)->integer('page'), 158 'max' => Validator::parsedBody($request)->integer('max'), 159 'folder' => Validator::parsedBody($request)->string('folder'), 160 'filter' => Validator::parsedBody($request)->string('filter'), 161 'subdirs' => Validator::parsedBody($request)->boolean('subdirs', false), 162 … 'format' => Validator::parsedBody($request)->isInArrayKeys($formats)->string('format'), 169 $go = Validator::queryParams($request)->boolean('go', false); [all …]
|
H A D | HourglassChartModule.php | 29 use Fisharebest\Webtrees\Validator; alias 146 $tree = Validator::attributes($request)->tree(); 147 $xref = Validator::attributes($request)->isXref()->string('xref'); 148 $user = Validator::attributes($request)->user(); 149 …$generations = Validator::attributes($request)->isBetween(self::MINIMUM_GENERATIONS, self::MAXIMUM… 150 $spouses = Validator::attributes($request)->boolean('spouses', self::DEFAULT_SPOUSES); 151 $ajax = Validator::queryParams($request)->boolean('ajax', false); 157 'xref' => Validator::parsedBody($request)->isXref()->string('xref'), 158 …'generations' => Validator::parsedBody($request)->isBetween(self::MINIMUM_GENERATIONS, self::MAXIM… 159 … 'spouses' => Validator::parsedBody($request)->boolean('spouses', self::DEFAULT_SPOUSES), [all …]
|
H A D | StoriesModule.php | 32 use Fisharebest\Webtrees\Validator; alias 212 $tree = Validator::attributes($request)->treeOptional(); 260 'tree' => Validator::parsedBody($request)->string('tree'), 273 $tree = Validator::attributes($request)->tree(); 274 $block_id = Validator::queryParams($request)->integer('block_id', 0); 275 $url = Validator::queryParams($request)->string('url', ''); 282 $xref = Validator::queryParams($request)->isXref()->string('xref', ''); 317 $tree = Validator::attributes($request)->tree(); 318 $block_id = Validator::queryParams($request)->integer('block_id', 0); 319 $xref = Validator::parsedBody($request)->string('xref'); [all …]
|
H A D | InteractiveTreeModule.php | 28 use Fisharebest\Webtrees\Validator; alias 182 $tree = Validator::attributes($request)->tree(); 183 $user = Validator::attributes($request)->user(); 184 $xref = Validator::queryParams($request)->isXref()->string('xref'); 215 'tree' => Validator::attributes($request)->tree()->name(), 216 'xref' => Validator::parsedBody($request)->isXref()->string('xref'), 227 $tree = Validator::attributes($request)->tree(); 228 $pid = Validator::queryParams($request)->string('pid'); 231 $instance = Validator::queryParams($request)->string('instance'); 244 $tree = Validator::attributes($request)->tree(); [all …]
|
H A D | FamilyBookChartModule.php | 28 use Fisharebest\Webtrees\Validator; alias 143 $tree = Validator::attributes($request)->tree(); 144 $user = Validator::attributes($request)->user(); 145 $xref = Validator::attributes($request)->isXref()->string('xref'); 146 …$book_size = Validator::attributes($request)->isBetween(self::MINIMUM_BOOK_SIZE, self::MAXIMUM_B… 147 …$generations = Validator::attributes($request)->isBetween(self::MINIMUM_GENERATIONS, self::MAXIMUM… 148 $spouses = Validator::attributes($request)->boolean('spouses', false); 149 $ajax = Validator::queryParams($request)->boolean('ajax', false); 155 'xref' => Validator::parsedBody($request)->isXref()->string('xref'), 156 …'book_size' => Validator::parsedBody($request)->isBetween(self::MINIMUM_BOOK_SIZE, self::MAXIMUM… [all …]
|
H A D | CensusAssistantModule.php | 26 use Fisharebest\Webtrees\Validator; alias 67 $census_class = Validator::parsedBody($request)->string('census'); 81 $tree = Validator::attributes($request)->tree(); 82 $indi_xref = Validator::parsedBody($request)->isXref()->string('xref', ''); 83 $head_xref = Validator::parsedBody($request)->isXref()->string('head', ''); 86 $census_class = Validator::parsedBody($request)->string('census'); 127 $ca_title = Validator::parsedBody($request)->string('ca_title'); 128 $ca_place = Validator::parsedBody($request)->string('ca_place'); 129 $ca_citation = Validator::parsedBody($request)->string('ca_citation'); 130 $ca_individuals = Validator::parsedBody($request)->array('ca_individuals'); [all …]
|
H A D | StatisticsChartModule.php | 28 use Fisharebest\Webtrees\Validator; alias 133 $tree = Validator::attributes($request)->tree(); 134 $user = Validator::attributes($request)->user(); 221 $tree = Validator::attributes($request)->tree(); 239 $x_axis_type = Validator::parsedBody($request)->integer('x-as'); 240 $y_axis_type = Validator::parsedBody($request)->integer('y-as'); 241 $z_axis_type = Validator::parsedBody($request)->integer('z-as'); 247 Validator::parsedBody($request)->string('chart_shows'), 248 Validator::parsedBody($request)->string('chart_type'), 249 Validator::parsedBody($request)->string('SURN') [all …]
|
/webtrees/app/Http/Middleware/ |
H A D | UseDatabase.php | 23 use Fisharebest\Webtrees\Validator; alias 47 driver: Validator::attributes($request)->string('dbtype', DB::MYSQL), 48 host: Validator::attributes($request)->string('dbhost'), 49 port: Validator::attributes($request)->string('dbport'), 50 database: Validator::attributes($request)->string('dbname'), 51 username: Validator::attributes($request)->string('dbuser'), 52 password: Validator::attributes($request)->string('dbpass'), 53 prefix: Validator::attributes($request)->string('tblpfx'), 54 key: Validator::attributes($request)->string('dbkey', ''), 55 certificate: Validator::attributes($request)->string('dbcert', ''), [all …]
|
/webtrees/app/Services/ |
H A D | DatatablesService.php | 23 use Fisharebest\Webtrees\Validator; alias 53 $search = Validator::queryParams($request)->array('search')['value'] ?? ''; 54 $start = Validator::queryParams($request)->integer('start', 0); 55 $length = Validator::queryParams($request)->integer('length', 0); 56 $order = Validator::queryParams($request)->array('order'); 57 $draw = Validator::queryParams($request)->integer('draw', 0); 129 $search = Validator::queryParams($request)->array('search')['value'] ?? ''; 130 $start = Validator::queryParams($request)->integer('start', 0); 131 $length = Validator::queryParams($request)->integer('length', 0); 132 $order = Validator::queryParams($request)->array('order'); [all …]
|