-
-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathtxplib_validator.php
More file actions
139 lines (119 loc) · 2.62 KB
/
Copy pathtxplib_validator.php
File metadata and controls
139 lines (119 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
/*
* Textpattern Content Management System
* https://textpattern.com/
*
* Copyright (C) 2026 The Textpattern Development Team
*
* This file is part of Textpattern.
*
* Textpattern is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, version 2.
*
* Textpattern is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Textpattern. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Deprecation warning: This file serves merely as a compatibility layer for \Textpattern\Validator\*.
* Use the respective base classes for new and updated code.
* TODO: Remove in v4.next.0
*/
/**
* Main Validator class.
*
* @since 4.5.0
* @deprecated in 4.6.0
* @package Validator
*/
class Validator extends \Textpattern\Validator\Validator
{
}
/**
* Constraint.
*
* Defines a single validation rule.
*
* @since 4.5.0
* @deprecated in 4.6.0
* @package Validator
*/
class Constraint extends \Textpattern\Validator\Constraint
{
}
/**
* Tests against a list of values.
*
* @since 4.5.0
* @deprecated in 4.6.0
* @package Validator
*/
class ChoiceConstraint extends \Textpattern\Validator\Constraint
{
}
/**
* Tests against existing section names.
*
* @since 4.5.0
* @deprecated in 4.6.0
* @package Validator
*/
class SectionConstraint extends \Textpattern\Validator\ChoiceConstraint
{
}
/**
* Tests against existing or blank category names.
*
* @since 4.5.0
* @deprecated in 4.6.0
* @package Validator
*/
class CategoryConstraint extends \Textpattern\Validator\ChoiceConstraint
{
}
/**
* Tests against existing form names.
*
* @since 4.5.0
* @deprecated in 4.6.0
* @package Validator
*/
class FormConstraint extends \Textpattern\Validator\ChoiceConstraint
{
}
/**
* Validates that a value is blank, defined as equal to a blank string or equal
* to null.
*
* @since 4.5.0
* @deprecated in 4.6.0
* @package Validator
*/
class BlankConstraint extends \Textpattern\Validator\Constraint
{
}
/**
* Validates that a value is true.
*
* @since 4.5.0
* @deprecated in 4.6.0
* @package Validator
*/
class TrueConstraint extends \Textpattern\Validator\Constraint
{
}
/**
* Validates that a value is false.
*
* @since 4.5.0
* @deprecated in 4.6.0
* @package Validator
*/
class FalseConstraint extends \Textpattern\Validator\Constraint
{
}