1 |
jonen |
1.1 |
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN' 'http://www.w3.org/TR/REC-html40/loose.dtd'> |
2 |
|
|
<!--NewPage--> |
3 |
|
|
<HTML> |
4 |
|
|
<HEAD> |
5 |
|
|
<!-- Generated by PhpDoc date: 'Thu, 20 Feb 2003 16:22:55 -0800' --> |
6 |
|
|
<TITLE>Docs For Class FormValidation</TITLE> |
7 |
|
|
<LINK REL ='stylesheet' TYPE='text/css' HREF='../../media/stylesheet.css' TITLE='Style'> |
8 |
|
|
</HEAD> |
9 |
|
|
<BODY style="background-color: #eeeeee; font-family: arial; font-size: .9em;"> |
10 |
|
|
<!-- Links --> |
11 |
|
|
<a NAME="top"></A> |
12 |
|
|
<table WIDTH="100%" class="links"> |
13 |
|
|
<TR> |
14 |
|
|
<TD class="font10"> |
15 |
|
|
Links: |
16 |
|
|
<A HREF="#children_summary" class="links" title="Classes extended from FormValidation">Child Classes</A> |
17 |
|
|
<A HREF="#var_summary" class="links" title="Class Variable Summary">Variables</A> |
18 |
|
|
<A HREF="#var_inherited_summary" class="links" title="Inherited Class Variable Summary">Inherited Variables</A> |
19 |
|
|
<A HREF="#functions_inherited" class="links" title="Inherited Method Summary">Inherited Methods</A> |
20 |
|
|
<A HREF="#method_summary" class="links" title="Method Summary">Methods</A> |
21 |
|
|
<A HREF="#variable_detail" class="links" title="Variable Detail">Variable Detail</A> |
22 |
|
|
<A HREF="#method_detail" class="links" title="Method Detail">Method Detail</A> |
23 |
|
|
</TD> |
24 |
|
|
</TR> |
25 |
|
|
</TABLE> |
26 |
|
|
<BR> |
27 |
|
|
<!-- Start of Class Data --> |
28 |
|
|
<H2> |
29 |
|
|
Class FormValidation |
30 |
|
|
</H2> (line <span class="linenumber">33</span>) |
31 |
|
|
<pre> |
32 |
|
|
</pre> |
33 |
|
|
<p> |
34 |
|
|
<b><i>Located in File: Program_Root/form/FormValidation.inc</i></b><br> |
35 |
|
|
</p> |
36 |
|
|
<hr> |
37 |
|
|
This is the base validation class that contains some basic FormElement validation methods. |
38 |
|
|
<br /> |
39 |
|
|
|
40 |
|
|
<UL> |
41 |
|
|
</UL> |
42 |
|
|
<hr> |
43 |
|
|
<!-- =========== VAR SUMMARY =========== --> |
44 |
|
|
<A NAME='var_summary'><!-- --></A> |
45 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
46 |
|
|
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
47 |
|
|
<TD> |
48 |
|
|
<span CLASS="font12bold">Class Variable Summary</span> |
49 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
50 |
|
|
</TD> |
51 |
|
|
</TR> |
52 |
|
|
|
53 |
|
|
<!-- =========== Summary =========== --> |
54 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
55 |
|
|
<TD> |
56 |
|
|
<CODE><B><A HREF="../../phpHtmlLib/FormProcessing/FormValidation.html#var$_error_code">$_error_code</A></B></CODE> |
57 |
|
|
<BR> |
58 |
|
|
<blockquote> This holds the last error code found </blockquote> |
59 |
|
|
<blockquote> Default Value: <CODE>-> ''<-</CODE> </blockquote> |
60 |
|
|
</TD> |
61 |
|
|
</TR> |
62 |
|
|
<!-- =========== Summary =========== --> |
63 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
64 |
|
|
<TD> |
65 |
|
|
<CODE><B><A HREF="../../phpHtmlLib/FormProcessing/FormValidation.html#var$_error_message">$_error_message</A></B></CODE> |
66 |
|
|
<BR> |
67 |
|
|
<blockquote> This holds the last error message </blockquote> |
68 |
|
|
<blockquote> Default Value: <CODE>-> ''<-</CODE> </blockquote> |
69 |
|
|
</TD> |
70 |
|
|
</TR> |
71 |
|
|
</TABLE> |
72 |
|
|
<hr> |
73 |
|
|
<!-- =========== VAR INHERITED SUMMARY =========== --> |
74 |
|
|
<A NAME='var_inherited_summary'><!-- --></A> |
75 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
76 |
|
|
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
77 |
|
|
<TD> |
78 |
|
|
<span CLASS="font12bold">Inherited Class Variable Summary</span> |
79 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
80 |
|
|
</TD> |
81 |
|
|
</TR> |
82 |
|
|
|
83 |
|
|
</TABLE> |
84 |
|
|
|
85 |
|
|
<hr> |
86 |
|
|
<!-- =========== METHOD SUMMARY =========== --> |
87 |
|
|
<A NAME='method_summary'><!-- --></A> |
88 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' Class="border"> |
89 |
|
|
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
90 |
|
|
<TD> |
91 |
|
|
<span class="font12bold">Method Summary</span> |
92 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
93 |
|
|
</TD> |
94 |
|
|
</TR> |
95 |
|
|
|
96 |
|
|
<!-- =========== Summary =========== --> |
97 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
98 |
|
|
<TD> |
99 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodarray_hasempty'>void array_hasempty ( $a )</A></B></CODE> |
100 |
|
|
<BR> |
101 |
|
|
<blockquote> This method checks to make sure an array doesn't have an empty element. </blockquote> |
102 |
|
|
</TD> |
103 |
|
|
</TR> |
104 |
|
|
<!-- =========== Summary =========== --> |
105 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
106 |
|
|
<TD> |
107 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodget_error_code'>string get_error_code ( )</A></B></CODE> |
108 |
|
|
<BR> |
109 |
|
|
<blockquote> This method returns the error code from the last validation error found. </blockquote> |
110 |
|
|
</TD> |
111 |
|
|
</TR> |
112 |
|
|
<!-- =========== Summary =========== --> |
113 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
114 |
|
|
<TD> |
115 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodget_error_message'>string get_error_message ( )</A></B></CODE> |
116 |
|
|
<BR> |
117 |
|
|
<blockquote> This method returns the error message from the last validation error found. </blockquote> |
118 |
|
|
</TD> |
119 |
|
|
</TR> |
120 |
|
|
<!-- =========== Summary =========== --> |
121 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
122 |
|
|
<TD> |
123 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_alphanum'>boolean is_alphanum ( $str, [$from = ""] )</A></B></CODE> |
124 |
|
|
<BR> |
125 |
|
|
<blockquote> This function checks if the given string contains alphabetical characters or numbers. </blockquote> |
126 |
|
|
</TD> |
127 |
|
|
</TR> |
128 |
|
|
<!-- =========== Summary =========== --> |
129 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
130 |
|
|
<TD> |
131 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_alphanumstring'>TRUE is_alphanumstring ( $str )</A></B></CODE> |
132 |
|
|
<BR> |
133 |
|
|
<blockquote> This method validates a string as containing only letters and numbers </blockquote> |
134 |
|
|
</TD> |
135 |
|
|
</TR> |
136 |
|
|
<!-- =========== Summary =========== --> |
137 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
138 |
|
|
<TD> |
139 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_ccexp'>TRUE is_ccexp ( $value, [$split_by = "-"] )</A></B></CODE> |
140 |
|
|
<BR> |
141 |
|
|
<blockquote> This tests a string as a valid credit card expiration date. </blockquote> |
142 |
|
|
</TD> |
143 |
|
|
</TR> |
144 |
|
|
<!-- =========== Summary =========== --> |
145 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
146 |
|
|
<TD> |
147 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_companyname'>TRUE is_companyname ( $name )</A></B></CODE> |
148 |
|
|
<BR> |
149 |
|
|
<blockquote> This validates a string as a valid Company name. </blockquote> |
150 |
|
|
</TD> |
151 |
|
|
</TR> |
152 |
|
|
<!-- =========== Summary =========== --> |
153 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
154 |
|
|
<TD> |
155 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_confirm_password'>TRUE is_confirm_password ( $confirmpassword, $password )</A></B></CODE> |
156 |
|
|
<BR> |
157 |
|
|
<blockquote> This makes sure that 2 password strings are exactly alike. </blockquote> |
158 |
|
|
</TD> |
159 |
|
|
</TR> |
160 |
|
|
<!-- =========== Summary =========== --> |
161 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
162 |
|
|
<TD> |
163 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_countrycode'>TRUE is_countrycode ( $value )</A></B></CODE> |
164 |
|
|
<BR> |
165 |
|
|
<blockquote> This validates a string as a valid "country code" which is a 2 alphanumerical character string </blockquote> |
166 |
|
|
</TD> |
167 |
|
|
</TR> |
168 |
|
|
<!-- =========== Summary =========== --> |
169 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
170 |
|
|
<TD> |
171 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_date'>TRUE is_date ( $value, [$split_by = "-"] )</A></B></CODE> |
172 |
|
|
<BR> |
173 |
|
|
<blockquote> This validates a atring as a valid date format You can provide a seperator string that seperates the fields </blockquote> |
174 |
|
|
</TD> |
175 |
|
|
</TR> |
176 |
|
|
<!-- =========== Summary =========== --> |
177 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
178 |
|
|
<TD> |
179 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_dateday'>TRUE is_dateday ( $day )</A></B></CODE> |
180 |
|
|
<BR> |
181 |
|
|
<blockquote> This validates a string as a valid day of a month It has to be greater then 0 and less then 31 </blockquote> |
182 |
|
|
</TD> |
183 |
|
|
</TR> |
184 |
|
|
<!-- =========== Summary =========== --> |
185 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
186 |
|
|
<TD> |
187 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_datemonth'>TRUE is_datemonth ( $month )</A></B></CODE> |
188 |
|
|
<BR> |
189 |
|
|
<blockquote> This validates a string as a valid month of the year between 1 and 12 inclusive is_datemonth - checks whether its a proper month </blockquote> |
190 |
|
|
</TD> |
191 |
|
|
</TR> |
192 |
|
|
<!-- =========== Summary =========== --> |
193 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
194 |
|
|
<TD> |
195 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_datetime'>TRUE is_datetime ( $value )</A></B></CODE> |
196 |
|
|
<BR> |
197 |
|
|
<blockquote> This validates an array of values as a valid date time </blockquote> |
198 |
|
|
</TD> |
199 |
|
|
</TR> |
200 |
|
|
<!-- =========== Summary =========== --> |
201 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
202 |
|
|
<TD> |
203 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_dateyear'>TRUE is_dateyear ( $year )</A></B></CODE> |
204 |
|
|
<BR> |
205 |
|
|
<blockquote> See if the year is within 1800 and 3000 </blockquote> |
206 |
|
|
</TD> |
207 |
|
|
</TR> |
208 |
|
|
<!-- =========== Summary =========== --> |
209 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
210 |
|
|
<TD> |
211 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_domainname'>TRUE is_domainname ( $name )</A></B></CODE> |
212 |
|
|
<BR> |
213 |
|
|
<blockquote> This method validates a string for a valid hostname for a machine. </blockquote> |
214 |
|
|
</TD> |
215 |
|
|
</TR> |
216 |
|
|
<!-- =========== Summary =========== --> |
217 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
218 |
|
|
<TD> |
219 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_email'>TRUE is_email ( $email )</A></B></CODE> |
220 |
|
|
<BR> |
221 |
|
|
<blockquote> This function validates a single email address. </blockquote> |
222 |
|
|
</TD> |
223 |
|
|
</TR> |
224 |
|
|
<!-- =========== Summary =========== --> |
225 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
226 |
|
|
<TD> |
227 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_firstname'>TRUE is_firstname ( $firstname )</A></B></CODE> |
228 |
|
|
<BR> |
229 |
|
|
<blockquote> This is just a wrapper for </blockquote> |
230 |
|
|
</TD> |
231 |
|
|
</TR> |
232 |
|
|
<!-- =========== Summary =========== --> |
233 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
234 |
|
|
<TD> |
235 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_float'>TRUE is_float ( $number )</A></B></CODE> |
236 |
|
|
<BR> |
237 |
|
|
<blockquote> This method validates a string as a valid float formatted number. x.xx </blockquote> |
238 |
|
|
</TD> |
239 |
|
|
</TR> |
240 |
|
|
<!-- =========== Summary =========== --> |
241 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
242 |
|
|
<TD> |
243 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_higherzeronumber'>TRUE is_higherzeronumber ( $value )</A></B></CODE> |
244 |
|
|
<BR> |
245 |
|
|
<blockquote> This method validates a string as a number greater then 0. </blockquote> |
246 |
|
|
</TD> |
247 |
|
|
</TR> |
248 |
|
|
<!-- =========== Summary =========== --> |
249 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
250 |
|
|
<TD> |
251 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_host'>void is_host ( $host )</A></B></CODE> |
252 |
|
|
<BR> |
253 |
|
|
<blockquote> no comment </blockquote> |
254 |
|
|
</TD> |
255 |
|
|
</TR> |
256 |
|
|
<!-- =========== Summary =========== --> |
257 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
258 |
|
|
<TD> |
259 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_hostemail'>TRUE is_hostemail ( $name )</A></B></CODE> |
260 |
|
|
<BR> |
261 |
|
|
<blockquote> This method tests a string as a valid hostname value or a valid email string </blockquote> |
262 |
|
|
</TD> |
263 |
|
|
</TR> |
264 |
|
|
<!-- =========== Summary =========== --> |
265 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
266 |
|
|
<TD> |
267 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_hostip'>TRUE is_hostip ( $hostip )</A></B></CODE> |
268 |
|
|
<BR> |
269 |
|
|
<blockquote> This method tries to validate a string as a valid IP address or a hostname </blockquote> |
270 |
|
|
</TD> |
271 |
|
|
</TR> |
272 |
|
|
<!-- =========== Summary =========== --> |
273 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
274 |
|
|
<TD> |
275 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_hostlist'>void is_hostlist ( $hostlist )</A></B></CODE> |
276 |
|
|
<BR> |
277 |
|
|
<blockquote> no comment </blockquote> |
278 |
|
|
</TD> |
279 |
|
|
</TR> |
280 |
|
|
<!-- =========== Summary =========== --> |
281 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
282 |
|
|
<TD> |
283 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_hostname'>TRUE is_hostname ( $name )</A></B></CODE> |
284 |
|
|
<BR> |
285 |
|
|
<blockquote> This is just a wrapper for is_domainname </blockquote> |
286 |
|
|
</TD> |
287 |
|
|
</TR> |
288 |
|
|
<!-- =========== Summary =========== --> |
289 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
290 |
|
|
<TD> |
291 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_ip'>TRUE is_ip ( $ip )</A></B></CODE> |
292 |
|
|
<BR> |
293 |
|
|
<blockquote> This validates a string as an IP address This should work with either IPv4 or IPv6 </blockquote> |
294 |
|
|
</TD> |
295 |
|
|
</TR> |
296 |
|
|
<!-- =========== Summary =========== --> |
297 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
298 |
|
|
<TD> |
299 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_lastname'>TRUE is_lastname ( $lastname )</A></B></CODE> |
300 |
|
|
<BR> |
301 |
|
|
<blockquote> This is just a wrapper for </blockquote> |
302 |
|
|
</TD> |
303 |
|
|
</TR> |
304 |
|
|
<!-- =========== Summary =========== --> |
305 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
306 |
|
|
<TD> |
307 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_leapyear'>TRUE is_leapyear ( $yyyy )</A></B></CODE> |
308 |
|
|
<BR> |
309 |
|
|
<blockquote> This method validates a string as a leap year. </blockquote> |
310 |
|
|
</TD> |
311 |
|
|
</TR> |
312 |
|
|
<!-- =========== Summary =========== --> |
313 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
314 |
|
|
<TD> |
315 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_manyemails'>TRUE is_manyemails ( $emails )</A></B></CODE> |
316 |
|
|
<BR> |
317 |
|
|
<blockquote> This function tests a string that may contain many email addresses seperated by commas </blockquote> |
318 |
|
|
</TD> |
319 |
|
|
</TR> |
320 |
|
|
<!-- =========== Summary =========== --> |
321 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
322 |
|
|
<TD> |
323 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_money'>TRUE is_money ( $money )</A></B></CODE> |
324 |
|
|
<BR> |
325 |
|
|
<blockquote> This method tests a string to make sure it is in a valid money format. </blockquote> |
326 |
|
|
</TD> |
327 |
|
|
</TR> |
328 |
|
|
<!-- =========== Summary =========== --> |
329 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
330 |
|
|
<TD> |
331 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_name'>TRUE is_name ( $name )</A></B></CODE> |
332 |
|
|
<BR> |
333 |
|
|
<blockquote> This validates a string as a valid proper name. </blockquote> |
334 |
|
|
</TD> |
335 |
|
|
</TR> |
336 |
|
|
<!-- =========== Summary =========== --> |
337 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
338 |
|
|
<TD> |
339 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_notempty'>TRUE is_notempty ( $value )</A></B></CODE> |
340 |
|
|
<BR> |
341 |
|
|
<blockquote> This function makes sure the data is not empty </blockquote> |
342 |
|
|
</TD> |
343 |
|
|
</TR> |
344 |
|
|
<!-- =========== Summary =========== --> |
345 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
346 |
|
|
<TD> |
347 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_num'>boolean is_num ( $str, [$from = ""] )</A></B></CODE> |
348 |
|
|
<BR> |
349 |
|
|
<blockquote> This function checks if the given string contains numerical digit characters. </blockquote> |
350 |
|
|
</TD> |
351 |
|
|
</TR> |
352 |
|
|
<!-- =========== Summary =========== --> |
353 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
354 |
|
|
<TD> |
355 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_number'>TRUE is_number ( $value )</A></B></CODE> |
356 |
|
|
<BR> |
357 |
|
|
<blockquote> This tests a string to make sure it is a valid number. </blockquote> |
358 |
|
|
</TD> |
359 |
|
|
</TR> |
360 |
|
|
<!-- =========== Summary =========== --> |
361 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
362 |
|
|
<TD> |
363 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_partial_domainname'>TRUE is_partial_domainname ( $name )</A></B></CODE> |
364 |
|
|
<BR> |
365 |
|
|
<blockquote> This method validates a string for a valid partial hostname for a machine. </blockquote> |
366 |
|
|
</TD> |
367 |
|
|
</TR> |
368 |
|
|
<!-- =========== Summary =========== --> |
369 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
370 |
|
|
<TD> |
371 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_partial_ip'>TRUE is_partial_ip ( $ip )</A></B></CODE> |
372 |
|
|
<BR> |
373 |
|
|
<blockquote> This validates a string as a portion of an IP address. </blockquote> |
374 |
|
|
</TD> |
375 |
|
|
</TR> |
376 |
|
|
<!-- =========== Summary =========== --> |
377 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
378 |
|
|
<TD> |
379 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_password'>TRUE is_password ( $password )</A></B></CODE> |
380 |
|
|
<BR> |
381 |
|
|
<blockquote> This tries to validate a string as a password It can't be empty and has to be less then VALIDATE_MAXSIZE characters in length </blockquote> |
382 |
|
|
</TD> |
383 |
|
|
</TR> |
384 |
|
|
<!-- =========== Summary =========== --> |
385 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
386 |
|
|
<TD> |
387 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_path'>TRUE is_path ( $path )</A></B></CODE> |
388 |
|
|
<BR> |
389 |
|
|
<blockquote> This method validates a string as a path to a file. </blockquote> |
390 |
|
|
</TD> |
391 |
|
|
</TR> |
392 |
|
|
<!-- =========== Summary =========== --> |
393 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
394 |
|
|
<TD> |
395 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_price'>TRUE is_price ( $price )</A></B></CODE> |
396 |
|
|
<BR> |
397 |
|
|
<blockquote> This method tries to validate a string as a valid price. It can't be zero (a la free!) </blockquote> |
398 |
|
|
</TD> |
399 |
|
|
</TR> |
400 |
|
|
<!-- =========== Summary =========== --> |
401 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
402 |
|
|
<TD> |
403 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_range'>void is_range ( $value, $size, $min, $max )</A></B></CODE> |
404 |
|
|
<BR> |
405 |
|
|
<blockquote> is_range </blockquote> |
406 |
|
|
</TD> |
407 |
|
|
</TR> |
408 |
|
|
<!-- =========== Summary =========== --> |
409 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
410 |
|
|
<TD> |
411 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_standalone_hostname'>TRUE is_standalone_hostname ( $name )</A></B></CODE> |
412 |
|
|
<BR> |
413 |
|
|
<blockquote> this method tests to see if this is a valid hostname value minus the domain name portion. </blockquote> |
414 |
|
|
</TD> |
415 |
|
|
</TR> |
416 |
|
|
<!-- =========== Summary =========== --> |
417 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
418 |
|
|
<TD> |
419 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_strict_url'>TRUE is_strict_url ( $url )</A></B></CODE> |
420 |
|
|
<BR> |
421 |
|
|
<blockquote> This method validates a strict url. </blockquote> |
422 |
|
|
</TD> |
423 |
|
|
</TR> |
424 |
|
|
<!-- =========== Summary =========== --> |
425 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
426 |
|
|
<TD> |
427 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_time'>TRUE is_time ( $value )</A></B></CODE> |
428 |
|
|
<BR> |
429 |
|
|
<blockquote> This validates an array of fields as a valid time of the day </blockquote> |
430 |
|
|
</TD> |
431 |
|
|
</TR> |
432 |
|
|
<!-- =========== Summary =========== --> |
433 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
434 |
|
|
<TD> |
435 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_title'>TRUE is_title ( $name )</A></B></CODE> |
436 |
|
|
<BR> |
437 |
|
|
<blockquote> Validate if the string is a good candidate to become an Title </blockquote> |
438 |
|
|
</TD> |
439 |
|
|
</TR> |
440 |
|
|
<!-- =========== Summary =========== --> |
441 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
442 |
|
|
<TD> |
443 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_url'>TRUE is_url ( $url )</A></B></CODE> |
444 |
|
|
<BR> |
445 |
|
|
<blockquote> This method validates a string as a valid url It inclues the prefix, hostname/ip, port number and path. </blockquote> |
446 |
|
|
</TD> |
447 |
|
|
</TR> |
448 |
|
|
<!-- =========== Summary =========== --> |
449 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
450 |
|
|
<TD> |
451 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_urlpath'>TRUE is_urlpath ( $path )</A></B></CODE> |
452 |
|
|
<BR> |
453 |
|
|
<blockquote> This method validates a string as a valid url path to a file </blockquote> |
454 |
|
|
</TD> |
455 |
|
|
</TR> |
456 |
|
|
<!-- =========== Summary =========== --> |
457 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
458 |
|
|
<TD> |
459 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_username'>TRUE is_username ( $username )</A></B></CODE> |
460 |
|
|
<BR> |
461 |
|
|
<blockquote> This method tests to see if a string value </blockquote> |
462 |
|
|
</TD> |
463 |
|
|
</TR> |
464 |
|
|
<!-- =========== Summary =========== --> |
465 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
466 |
|
|
<TD> |
467 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_valid_domain'>TRUE is_valid_domain ( $domain_value, [$allow_www = false] )</A></B></CODE> |
468 |
|
|
<BR> |
469 |
|
|
<blockquote> Validate domain Will check if a domain is valid </blockquote> |
470 |
|
|
</TD> |
471 |
|
|
</TR> |
472 |
|
|
<!-- =========== Summary =========== --> |
473 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
474 |
|
|
<TD> |
475 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_within_range'>TRUE is_within_range ( $value, $size, $start, $end, [$error = FALSE] )</A></B></CODE> |
476 |
|
|
<BR> |
477 |
|
|
<blockquote> This method makes sure a value lies within a given range of values. </blockquote> |
478 |
|
|
</TD> |
479 |
|
|
</TR> |
480 |
|
|
<!-- =========== Summary =========== --> |
481 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
482 |
|
|
<TD> |
483 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_zero_onehundred'>TRUE is_zero_onehundred ( $value )</A></B></CODE> |
484 |
|
|
<BR> |
485 |
|
|
<blockquote> This validates a string as a valid number between 0 and 100 </blockquote> |
486 |
|
|
</TD> |
487 |
|
|
</TR> |
488 |
|
|
<!-- =========== Summary =========== --> |
489 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
490 |
|
|
<TD> |
491 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#methodis_zip'>TRUE is_zip ( $zip )</A></B></CODE> |
492 |
|
|
<BR> |
493 |
|
|
<blockquote> This validates a string as a valid zipcode </blockquote> |
494 |
|
|
</TD> |
495 |
|
|
</TR> |
496 |
|
|
<!-- =========== Summary =========== --> |
497 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
498 |
|
|
<TD> |
499 |
|
|
<CODE><B><A HREF='../../phpHtmlLib/FormProcessing/FormValidation.html#method_error'>FALSE _error ( $code, [$message = NULL] )</A></B></CODE> |
500 |
|
|
<BR> |
501 |
|
|
<blockquote> A wrapper method to set the error message and error code before returning FALSE </blockquote> |
502 |
|
|
</TD> |
503 |
|
|
</TR> |
504 |
|
|
</TABLE> |
505 |
|
|
<!-- =========== INHERITED METHOD SUMMARY =========== --> |
506 |
|
|
<A NAME='functions_inherited'><!-- --></A> |
507 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
508 |
|
|
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
509 |
|
|
<TD> |
510 |
|
|
<span CLASS="font12bold">Inherited Method Summary</span> |
511 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
512 |
|
|
</TD> |
513 |
|
|
</TR> |
514 |
|
|
|
515 |
|
|
</TABLE> |
516 |
|
|
<hr> |
517 |
|
|
<!-- ============ VARIABLE DETAIL =========== --> |
518 |
|
|
|
519 |
|
|
<A NAME='variable_detail'></A> |
520 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
521 |
|
|
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
522 |
|
|
<TD> |
523 |
|
|
<span CLASS="font12bold">Variable Detail</span> |
524 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
525 |
|
|
</TD> |
526 |
|
|
</TR> |
527 |
|
|
</TABLE> |
528 |
|
|
|
529 |
|
|
<A NAME='var$_error_code'><!-- --></A><H3>$_error_code</H3> (line <span class="linenumber">38</span>)<br /> |
530 |
|
|
<b>Data type:</b> mixed<br>This holds the last error code found |
531 |
|
|
<br /> |
532 |
|
|
|
533 |
|
|
<UL> |
534 |
|
|
</UL> |
535 |
|
|
<HR> |
536 |
|
|
<A NAME='var$_error_message'><!-- --></A><H3>$_error_message</H3> (line <span class="linenumber">43</span>)<br /> |
537 |
|
|
<b>Data type:</b> mixed<br>This holds the last error message |
538 |
|
|
<br /> |
539 |
|
|
|
540 |
|
|
<UL> |
541 |
|
|
</UL> |
542 |
|
|
<HR> |
543 |
|
|
<hr> |
544 |
|
|
<!-- ============ METHOD DETAIL =========== --> |
545 |
|
|
|
546 |
|
|
<A NAME='method_detail'></A> |
547 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
548 |
|
|
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
549 |
|
|
<TD> |
550 |
|
|
<span class="font12bold">Method Detail</span> |
551 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
552 |
|
|
</TD> |
553 |
|
|
</TR> |
554 |
|
|
</TABLE> |
555 |
|
|
<BR> |
556 |
|
|
<DIV CLASS="function"> |
557 |
|
|
<A NAME='methodarray_hasempty'><!-- --></A> |
558 |
|
|
<SPAN CLASS="font12bold">array_hasempty</SPAN> (line <span class="linenumber">52</span>) |
559 |
|
|
<BR> |
560 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
561 |
|
|
<span class="font10bold" style="color: #FF0000">void</SPAN> |
562 |
|
|
<span class="font10bold" style="color: #0000FF">array_hasempty( |
563 |
|
|
mixed |
564 |
|
|
$a)</SPAN> |
565 |
|
|
<BR> |
566 |
|
|
|
567 |
|
|
<BR> |
568 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
569 |
|
|
This method checks to make sure an array doesn't have an empty element. |
570 |
|
|
<br /> |
571 |
|
|
|
572 |
|
|
<DL> |
573 |
|
|
|
574 |
|
|
<DT class="font10bold">Function Info:</DT> |
575 |
|
|
</DL> |
576 |
|
|
</DIV> |
577 |
|
|
<BR> |
578 |
|
|
<DIV CLASS="function"> |
579 |
|
|
<A NAME='methodget_error_code'><!-- --></A> |
580 |
|
|
<SPAN CLASS="font12bold">get_error_code</SPAN> (line <span class="linenumber">93</span>) |
581 |
|
|
<BR> |
582 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
583 |
|
|
<span class="font10bold" style="color: #FF0000">string</SPAN> |
584 |
|
|
<span class="font10bold" style="color: #0000FF">get_error_code( |
585 |
|
|
)</SPAN> |
586 |
|
|
<BR> |
587 |
|
|
|
588 |
|
|
<BR> |
589 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
590 |
|
|
This method returns the error code from the last validation error found. |
591 |
|
|
<br /> |
592 |
|
|
|
593 |
|
|
<DL> |
594 |
|
|
|
595 |
|
|
<DT class="font10bold">Function Info:</DT> |
596 |
|
|
</DL> |
597 |
|
|
</DIV> |
598 |
|
|
<BR> |
599 |
|
|
<DIV CLASS="function"> |
600 |
|
|
<A NAME='methodget_error_message'><!-- --></A> |
601 |
|
|
<SPAN CLASS="font12bold">get_error_message</SPAN> (line <span class="linenumber">104</span>) |
602 |
|
|
<BR> |
603 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
604 |
|
|
<span class="font10bold" style="color: #FF0000">string</SPAN> |
605 |
|
|
<span class="font10bold" style="color: #0000FF">get_error_message( |
606 |
|
|
)</SPAN> |
607 |
|
|
<BR> |
608 |
|
|
|
609 |
|
|
<BR> |
610 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
611 |
|
|
This method returns the error message from the last validation error found. |
612 |
|
|
<br /> |
613 |
|
|
|
614 |
|
|
<DL> |
615 |
|
|
|
616 |
|
|
<DT class="font10bold">Function Info:</DT> |
617 |
|
|
</DL> |
618 |
|
|
</DIV> |
619 |
|
|
<BR> |
620 |
|
|
<DIV CLASS="function"> |
621 |
|
|
<A NAME='methodis_alphanum'><!-- --></A> |
622 |
|
|
<SPAN CLASS="font12bold">is_alphanum</SPAN> (line <span class="linenumber">136</span>) |
623 |
|
|
<BR> |
624 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
625 |
|
|
<span class="font10bold" style="color: #FF0000">boolean</SPAN> |
626 |
|
|
<span class="font10bold" style="color: #0000FF">is_alphanum( |
627 |
|
|
string |
628 |
|
|
$str, [string |
629 |
|
|
$from = ""])</SPAN> |
630 |
|
|
<BR> |
631 |
|
|
|
632 |
|
|
<BR> |
633 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
634 |
|
|
This function checks if the given string contains alphabetical characters or numbers. |
635 |
|
|
<br /> |
636 |
|
|
<p>It also checks for the allowed additional characters.</p> |
637 |
|
|
<DL> |
638 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
639 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$str</SPAN></SPAN> - the string to check</DD> |
640 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$from</SPAN></SPAN> - list of individual characters to allow besides a-zA-Z</DD> |
641 |
|
|
|
642 |
|
|
<DT class="font10bold">Function Info:</DT> |
643 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - FALSE - if any other extraneous characters are found TRUE upon succes.</DD> |
644 |
|
|
</DL> |
645 |
|
|
</DIV> |
646 |
|
|
<BR> |
647 |
|
|
<DIV CLASS="function"> |
648 |
|
|
<A NAME='methodis_alphanumstring'><!-- --></A> |
649 |
|
|
<SPAN CLASS="font12bold">is_alphanumstring</SPAN> (line <span class="linenumber">249</span>) |
650 |
|
|
<BR> |
651 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
652 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
653 |
|
|
<span class="font10bold" style="color: #0000FF">is_alphanumstring( |
654 |
|
|
string |
655 |
|
|
$str)</SPAN> |
656 |
|
|
<BR> |
657 |
|
|
|
658 |
|
|
<BR> |
659 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
660 |
|
|
This method validates a string as containing only letters and numbers |
661 |
|
|
<br /> |
662 |
|
|
|
663 |
|
|
<DL> |
664 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
665 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$str</SPAN></SPAN> - the value to validate</DD> |
666 |
|
|
|
667 |
|
|
<DT class="font10bold">Function Info:</DT> |
668 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
669 |
|
|
</DL> |
670 |
|
|
</DIV> |
671 |
|
|
<BR> |
672 |
|
|
<DIV CLASS="function"> |
673 |
|
|
<A NAME='methodis_ccexp'><!-- --></A> |
674 |
|
|
<SPAN CLASS="font12bold">is_ccexp</SPAN> (line <span class="linenumber">1019</span>) |
675 |
|
|
<BR> |
676 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
677 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
678 |
|
|
<span class="font10bold" style="color: #0000FF">is_ccexp( |
679 |
|
|
string |
680 |
|
|
$value, [mixed |
681 |
|
|
$split_by = "-"])</SPAN> |
682 |
|
|
<BR> |
683 |
|
|
|
684 |
|
|
<BR> |
685 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
686 |
|
|
This tests a string as a valid credit card expiration date. |
687 |
|
|
<br /> |
688 |
|
|
<p>You can pass in an optional date delimiter string. The default is -</p> |
689 |
|
|
<DL> |
690 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
691 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$value</SPAN></SPAN> - the value to validate</DD> |
692 |
|
|
|
693 |
|
|
<DT class="font10bold">Function Info:</DT> |
694 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
695 |
|
|
</DL> |
696 |
|
|
</DIV> |
697 |
|
|
<BR> |
698 |
|
|
<DIV CLASS="function"> |
699 |
|
|
<A NAME='methodis_companyname'><!-- --></A> |
700 |
|
|
<SPAN CLASS="font12bold">is_companyname</SPAN> (line <span class="linenumber">636</span>) |
701 |
|
|
<BR> |
702 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
703 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
704 |
|
|
<span class="font10bold" style="color: #0000FF">is_companyname( |
705 |
|
|
string |
706 |
|
|
$name)</SPAN> |
707 |
|
|
<BR> |
708 |
|
|
|
709 |
|
|
<BR> |
710 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
711 |
|
|
This validates a string as a valid Company name. |
712 |
|
|
<br /> |
713 |
|
|
<p>It is the same as is_name, with the exception of allowing .</p> |
714 |
|
|
<DL> |
715 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
716 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$name</SPAN></SPAN> - the value to validate</DD> |
717 |
|
|
|
718 |
|
|
<DT class="font10bold">Function Info:</DT> |
719 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
720 |
|
|
</DL> |
721 |
|
|
</DIV> |
722 |
|
|
<BR> |
723 |
|
|
<DIV CLASS="function"> |
724 |
|
|
<A NAME='methodis_confirm_password'><!-- --></A> |
725 |
|
|
<SPAN CLASS="font12bold">is_confirm_password</SPAN> (line <span class="linenumber">695</span>) |
726 |
|
|
<BR> |
727 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
728 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
729 |
|
|
<span class="font10bold" style="color: #0000FF">is_confirm_password( |
730 |
|
|
string |
731 |
|
|
$confirmpassword, mixed |
732 |
|
|
$password)</SPAN> |
733 |
|
|
<BR> |
734 |
|
|
|
735 |
|
|
<BR> |
736 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
737 |
|
|
This makes sure that 2 password strings are exactly alike. |
738 |
|
|
<br /> |
739 |
|
|
|
740 |
|
|
<DL> |
741 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
742 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$confirmpassword</SPAN></SPAN> - the value to validate</DD> |
743 |
|
|
|
744 |
|
|
<DT class="font10bold">Function Info:</DT> |
745 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
746 |
|
|
</DL> |
747 |
|
|
</DIV> |
748 |
|
|
<BR> |
749 |
|
|
<DIV CLASS="function"> |
750 |
|
|
<A NAME='methodis_countrycode'><!-- --></A> |
751 |
|
|
<SPAN CLASS="font12bold">is_countrycode</SPAN> (line <span class="linenumber">1050</span>) |
752 |
|
|
<BR> |
753 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
754 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
755 |
|
|
<span class="font10bold" style="color: #0000FF">is_countrycode( |
756 |
|
|
string |
757 |
|
|
$value)</SPAN> |
758 |
|
|
<BR> |
759 |
|
|
|
760 |
|
|
<BR> |
761 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
762 |
|
|
This validates a string as a valid "country code" which is a 2 alphanumerical character string |
763 |
|
|
<br /> |
764 |
|
|
|
765 |
|
|
<DL> |
766 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
767 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$value</SPAN></SPAN> - the value to validate</DD> |
768 |
|
|
|
769 |
|
|
<DT class="font10bold">Function Info:</DT> |
770 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
771 |
|
|
</DL> |
772 |
|
|
</DIV> |
773 |
|
|
<BR> |
774 |
|
|
<DIV CLASS="function"> |
775 |
|
|
<A NAME='methodis_date'><!-- --></A> |
776 |
|
|
<SPAN CLASS="font12bold">is_date</SPAN> (line <span class="linenumber">835</span>) |
777 |
|
|
<BR> |
778 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
779 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
780 |
|
|
<span class="font10bold" style="color: #0000FF">is_date( |
781 |
|
|
string |
782 |
|
|
$value, [mixed |
783 |
|
|
$split_by = "-"])</SPAN> |
784 |
|
|
<BR> |
785 |
|
|
|
786 |
|
|
<BR> |
787 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
788 |
|
|
This validates a atring as a valid date format You can provide a seperator string that seperates the fields |
789 |
|
|
<br /> |
790 |
|
|
<p>NOTE: date is in YYYY-MO-DY format</p> |
791 |
|
|
<DL> |
792 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
793 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$value</SPAN></SPAN> - the value to validate</DD> |
794 |
|
|
|
795 |
|
|
<DT class="font10bold">Function Info:</DT> |
796 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
797 |
|
|
</DL> |
798 |
|
|
</DIV> |
799 |
|
|
<BR> |
800 |
|
|
<DIV CLASS="function"> |
801 |
|
|
<A NAME='methodis_dateday'><!-- --></A> |
802 |
|
|
<SPAN CLASS="font12bold">is_dateday</SPAN> (line <span class="linenumber">874</span>) |
803 |
|
|
<BR> |
804 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
805 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
806 |
|
|
<span class="font10bold" style="color: #0000FF">is_dateday( |
807 |
|
|
string |
808 |
|
|
$day)</SPAN> |
809 |
|
|
<BR> |
810 |
|
|
|
811 |
|
|
<BR> |
812 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
813 |
|
|
This validates a string as a valid day of a month It has to be greater then 0 and less then 31 |
814 |
|
|
<br /> |
815 |
|
|
|
816 |
|
|
<DL> |
817 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
818 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$day</SPAN></SPAN> - the value to validate</DD> |
819 |
|
|
|
820 |
|
|
<DT class="font10bold">Function Info:</DT> |
821 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
822 |
|
|
</DL> |
823 |
|
|
</DIV> |
824 |
|
|
<BR> |
825 |
|
|
<DIV CLASS="function"> |
826 |
|
|
<A NAME='methodis_datemonth'><!-- --></A> |
827 |
|
|
<SPAN CLASS="font12bold">is_datemonth</SPAN> (line <span class="linenumber">887</span>) |
828 |
|
|
<BR> |
829 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
830 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
831 |
|
|
<span class="font10bold" style="color: #0000FF">is_datemonth( |
832 |
|
|
string |
833 |
|
|
$month)</SPAN> |
834 |
|
|
<BR> |
835 |
|
|
|
836 |
|
|
<BR> |
837 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
838 |
|
|
This validates a string as a valid month of the year between 1 and 12 inclusive is_datemonth - checks whether its a proper month |
839 |
|
|
<br /> |
840 |
|
|
|
841 |
|
|
<DL> |
842 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
843 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$month</SPAN></SPAN> - the value to validate</DD> |
844 |
|
|
|
845 |
|
|
<DT class="font10bold">Function Info:</DT> |
846 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
847 |
|
|
</DL> |
848 |
|
|
</DIV> |
849 |
|
|
<BR> |
850 |
|
|
<DIV CLASS="function"> |
851 |
|
|
<A NAME='methodis_datetime'><!-- --></A> |
852 |
|
|
<SPAN CLASS="font12bold">is_datetime</SPAN> (line <span class="linenumber">920</span>) |
853 |
|
|
<BR> |
854 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
855 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
856 |
|
|
<span class="font10bold" style="color: #0000FF">is_datetime( |
857 |
|
|
string |
858 |
|
|
$value)</SPAN> |
859 |
|
|
<BR> |
860 |
|
|
|
861 |
|
|
<BR> |
862 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
863 |
|
|
This validates an array of values as a valid date time |
864 |
|
|
<br /> |
865 |
|
|
<p>NOTE: array must contain array( "month" => VALUE, "day" => VALUE, "year" => VALUE, "hour" => VALUE, "minutes" => VALUE, "seconds" => VALUE);</p> |
866 |
|
|
<DL> |
867 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
868 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$value</SPAN></SPAN> - the value to validate</DD> |
869 |
|
|
|
870 |
|
|
<DT class="font10bold">Function Info:</DT> |
871 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
872 |
|
|
</DL> |
873 |
|
|
</DIV> |
874 |
|
|
<BR> |
875 |
|
|
<DIV CLASS="function"> |
876 |
|
|
<A NAME='methodis_dateyear'><!-- --></A> |
877 |
|
|
<SPAN CLASS="font12bold">is_dateyear</SPAN> (line <span class="linenumber">899</span>) |
878 |
|
|
<BR> |
879 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
880 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
881 |
|
|
<span class="font10bold" style="color: #0000FF">is_dateyear( |
882 |
|
|
string |
883 |
|
|
$year)</SPAN> |
884 |
|
|
<BR> |
885 |
|
|
|
886 |
|
|
<BR> |
887 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
888 |
|
|
See if the year is within 1800 and 3000 |
889 |
|
|
<br /> |
890 |
|
|
|
891 |
|
|
<DL> |
892 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
893 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$year</SPAN></SPAN> - the value to validate</DD> |
894 |
|
|
|
895 |
|
|
<DT class="font10bold">Function Info:</DT> |
896 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
897 |
|
|
</DL> |
898 |
|
|
</DIV> |
899 |
|
|
<BR> |
900 |
|
|
<DIV CLASS="function"> |
901 |
|
|
<A NAME='methodis_domainname'><!-- --></A> |
902 |
|
|
<SPAN CLASS="font12bold">is_domainname</SPAN> (line <span class="linenumber">296</span>) |
903 |
|
|
<BR> |
904 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
905 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
906 |
|
|
<span class="font10bold" style="color: #0000FF">is_domainname( |
907 |
|
|
string |
908 |
|
|
$name)</SPAN> |
909 |
|
|
<BR> |
910 |
|
|
|
911 |
|
|
<BR> |
912 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
913 |
|
|
This method validates a string for a valid hostname for a machine. |
914 |
|
|
<br /> |
915 |
|
|
|
916 |
|
|
<DL> |
917 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
918 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$name</SPAN></SPAN> - the value to validate</DD> |
919 |
|
|
|
920 |
|
|
<DT class="font10bold">Function Info:</DT> |
921 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
922 |
|
|
</DL> |
923 |
|
|
</DIV> |
924 |
|
|
<BR> |
925 |
|
|
<DIV CLASS="function"> |
926 |
|
|
<A NAME='methodis_email'><!-- --></A> |
927 |
|
|
<SPAN CLASS="font12bold">is_email</SPAN> (line <span class="linenumber">728</span>) |
928 |
|
|
<BR> |
929 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
930 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
931 |
|
|
<span class="font10bold" style="color: #0000FF">is_email( |
932 |
|
|
string |
933 |
|
|
$email)</SPAN> |
934 |
|
|
<BR> |
935 |
|
|
|
936 |
|
|
<BR> |
937 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
938 |
|
|
This function validates a single email address. |
939 |
|
|
<br /> |
940 |
|
|
<p>It supports email addresses in the format of jane@blah.com or "Jane Doe <jane@blah.com>"</p> |
941 |
|
|
<DL> |
942 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
943 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$email</SPAN></SPAN> - the value to validate</DD> |
944 |
|
|
|
945 |
|
|
<DT class="font10bold">Function Info:</DT> |
946 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
947 |
|
|
</DL> |
948 |
|
|
</DIV> |
949 |
|
|
<BR> |
950 |
|
|
<DIV CLASS="function"> |
951 |
|
|
<A NAME='methodis_firstname'><!-- --></A> |
952 |
|
|
<SPAN CLASS="font12bold">is_firstname</SPAN> (line <span class="linenumber">979</span>) |
953 |
|
|
<BR> |
954 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
955 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
956 |
|
|
<span class="font10bold" style="color: #0000FF">is_firstname( |
957 |
|
|
string |
958 |
|
|
$firstname)</SPAN> |
959 |
|
|
<BR> |
960 |
|
|
|
961 |
|
|
<BR> |
962 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
963 |
|
|
This is just a wrapper for |
964 |
|
|
<br /> |
965 |
|
|
|
966 |
|
|
<DL> |
967 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
968 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$firstname</SPAN></SPAN> - the value to validate</DD> |
969 |
|
|
|
970 |
|
|
<DT class="font10bold">Function Info:</DT> |
971 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
972 |
|
|
</DL> |
973 |
|
|
</DIV> |
974 |
|
|
<BR> |
975 |
|
|
<DIV CLASS="function"> |
976 |
|
|
<A NAME='methodis_float'><!-- --></A> |
977 |
|
|
<SPAN CLASS="font12bold">is_float</SPAN> (line <span class="linenumber">516</span>) |
978 |
|
|
<BR> |
979 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
980 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
981 |
|
|
<span class="font10bold" style="color: #0000FF">is_float( |
982 |
|
|
string |
983 |
|
|
$number)</SPAN> |
984 |
|
|
<BR> |
985 |
|
|
|
986 |
|
|
<BR> |
987 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
988 |
|
|
This method validates a string as a valid float formatted number. x.xx |
989 |
|
|
<br /> |
990 |
|
|
|
991 |
|
|
<DL> |
992 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
993 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$number</SPAN></SPAN> - the value to validate</DD> |
994 |
|
|
|
995 |
|
|
<DT class="font10bold">Function Info:</DT> |
996 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
997 |
|
|
</DL> |
998 |
|
|
</DIV> |
999 |
|
|
<BR> |
1000 |
|
|
<DIV CLASS="function"> |
1001 |
|
|
<A NAME='methodis_higherzeronumber'><!-- --></A> |
1002 |
|
|
<SPAN CLASS="font12bold">is_higherzeronumber</SPAN> (line <span class="linenumber">564</span>) |
1003 |
|
|
<BR> |
1004 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1005 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1006 |
|
|
<span class="font10bold" style="color: #0000FF">is_higherzeronumber( |
1007 |
|
|
string |
1008 |
|
|
$value)</SPAN> |
1009 |
|
|
<BR> |
1010 |
|
|
|
1011 |
|
|
<BR> |
1012 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1013 |
|
|
This method validates a string as a number greater then 0. |
1014 |
|
|
<br /> |
1015 |
|
|
|
1016 |
|
|
<DL> |
1017 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1018 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$value</SPAN></SPAN> - the value to validate</DD> |
1019 |
|
|
|
1020 |
|
|
<DT class="font10bold">Function Info:</DT> |
1021 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1022 |
|
|
</DL> |
1023 |
|
|
</DIV> |
1024 |
|
|
<BR> |
1025 |
|
|
<DIV CLASS="function"> |
1026 |
|
|
<A NAME='methodis_host'><!-- --></A> |
1027 |
|
|
<SPAN CLASS="font12bold">is_host</SPAN> (line <span class="linenumber">1160</span>) |
1028 |
|
|
<BR> |
1029 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1030 |
|
|
<span class="font10bold" style="color: #FF0000">void</SPAN> |
1031 |
|
|
<span class="font10bold" style="color: #0000FF">is_host( |
1032 |
|
|
mixed |
1033 |
|
|
$host)</SPAN> |
1034 |
|
|
<BR> |
1035 |
|
|
|
1036 |
|
|
<BR> |
1037 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1038 |
|
|
no comment |
1039 |
|
|
<br /> |
1040 |
|
|
|
1041 |
|
|
<DL> |
1042 |
|
|
|
1043 |
|
|
<DT class="font10bold">Function Info:</DT> |
1044 |
|
|
</DL> |
1045 |
|
|
</DIV> |
1046 |
|
|
<BR> |
1047 |
|
|
<DIV CLASS="function"> |
1048 |
|
|
<A NAME='methodis_hostemail'><!-- --></A> |
1049 |
|
|
<SPAN CLASS="font12bold">is_hostemail</SPAN> (line <span class="linenumber">711</span>) |
1050 |
|
|
<BR> |
1051 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1052 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1053 |
|
|
<span class="font10bold" style="color: #0000FF">is_hostemail( |
1054 |
|
|
string |
1055 |
|
|
$name)</SPAN> |
1056 |
|
|
<BR> |
1057 |
|
|
|
1058 |
|
|
<BR> |
1059 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1060 |
|
|
This method tests a string as a valid hostname value or a valid email string |
1061 |
|
|
<br /> |
1062 |
|
|
|
1063 |
|
|
<DL> |
1064 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1065 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$name</SPAN></SPAN> - the value to validate</DD> |
1066 |
|
|
|
1067 |
|
|
<DT class="font10bold">Function Info:</DT> |
1068 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1069 |
|
|
</DL> |
1070 |
|
|
</DIV> |
1071 |
|
|
<BR> |
1072 |
|
|
<DIV CLASS="function"> |
1073 |
|
|
<A NAME='methodis_hostip'><!-- --></A> |
1074 |
|
|
<SPAN CLASS="font12bold">is_hostip</SPAN> (line <span class="linenumber">434</span>) |
1075 |
|
|
<BR> |
1076 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1077 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1078 |
|
|
<span class="font10bold" style="color: #0000FF">is_hostip( |
1079 |
|
|
string |
1080 |
|
|
$hostip)</SPAN> |
1081 |
|
|
<BR> |
1082 |
|
|
|
1083 |
|
|
<BR> |
1084 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1085 |
|
|
This method tries to validate a string as a valid IP address or a hostname |
1086 |
|
|
<br /> |
1087 |
|
|
|
1088 |
|
|
<DL> |
1089 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1090 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$hostip</SPAN></SPAN> - the value to validate</DD> |
1091 |
|
|
|
1092 |
|
|
<DT class="font10bold">Function Info:</DT> |
1093 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1094 |
|
|
</DL> |
1095 |
|
|
</DIV> |
1096 |
|
|
<BR> |
1097 |
|
|
<DIV CLASS="function"> |
1098 |
|
|
<A NAME='methodis_hostlist'><!-- --></A> |
1099 |
|
|
<SPAN CLASS="font12bold">is_hostlist</SPAN> (line <span class="linenumber">1168</span>) |
1100 |
|
|
<BR> |
1101 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1102 |
|
|
<span class="font10bold" style="color: #FF0000">void</SPAN> |
1103 |
|
|
<span class="font10bold" style="color: #0000FF">is_hostlist( |
1104 |
|
|
mixed |
1105 |
|
|
$hostlist)</SPAN> |
1106 |
|
|
<BR> |
1107 |
|
|
|
1108 |
|
|
<BR> |
1109 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1110 |
|
|
no comment |
1111 |
|
|
<br /> |
1112 |
|
|
|
1113 |
|
|
<DL> |
1114 |
|
|
|
1115 |
|
|
<DT class="font10bold">Function Info:</DT> |
1116 |
|
|
</DL> |
1117 |
|
|
</DIV> |
1118 |
|
|
<BR> |
1119 |
|
|
<DIV CLASS="function"> |
1120 |
|
|
<A NAME='methodis_hostname'><!-- --></A> |
1121 |
|
|
<SPAN CLASS="font12bold">is_hostname</SPAN> (line <span class="linenumber">358</span>) |
1122 |
|
|
<BR> |
1123 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1124 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1125 |
|
|
<span class="font10bold" style="color: #0000FF">is_hostname( |
1126 |
|
|
string |
1127 |
|
|
$name)</SPAN> |
1128 |
|
|
<BR> |
1129 |
|
|
|
1130 |
|
|
<BR> |
1131 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1132 |
|
|
This is just a wrapper for is_domainname |
1133 |
|
|
<br /> |
1134 |
|
|
|
1135 |
|
|
<DL> |
1136 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1137 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$name</SPAN></SPAN> - the value to validate</DD> |
1138 |
|
|
|
1139 |
|
|
<DT class="font10bold">Function Info:</DT> |
1140 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1141 |
|
|
</DL> |
1142 |
|
|
</DIV> |
1143 |
|
|
<BR> |
1144 |
|
|
<DIV CLASS="function"> |
1145 |
|
|
<A NAME='methodis_ip'><!-- --></A> |
1146 |
|
|
<SPAN CLASS="font12bold">is_ip</SPAN> (line <span class="linenumber">370</span>) |
1147 |
|
|
<BR> |
1148 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1149 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1150 |
|
|
<span class="font10bold" style="color: #0000FF">is_ip( |
1151 |
|
|
string |
1152 |
|
|
$ip)</SPAN> |
1153 |
|
|
<BR> |
1154 |
|
|
|
1155 |
|
|
<BR> |
1156 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1157 |
|
|
This validates a string as an IP address This should work with either IPv4 or IPv6 |
1158 |
|
|
<br /> |
1159 |
|
|
|
1160 |
|
|
<DL> |
1161 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1162 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$ip</SPAN></SPAN> - the value to validate</DD> |
1163 |
|
|
|
1164 |
|
|
<DT class="font10bold">Function Info:</DT> |
1165 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1166 |
|
|
</DL> |
1167 |
|
|
</DIV> |
1168 |
|
|
<BR> |
1169 |
|
|
<DIV CLASS="function"> |
1170 |
|
|
<A NAME='methodis_lastname'><!-- --></A> |
1171 |
|
|
<SPAN CLASS="font12bold">is_lastname</SPAN> (line <span class="linenumber">990</span>) |
1172 |
|
|
<BR> |
1173 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1174 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1175 |
|
|
<span class="font10bold" style="color: #0000FF">is_lastname( |
1176 |
|
|
string |
1177 |
|
|
$lastname)</SPAN> |
1178 |
|
|
<BR> |
1179 |
|
|
|
1180 |
|
|
<BR> |
1181 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1182 |
|
|
This is just a wrapper for |
1183 |
|
|
<br /> |
1184 |
|
|
|
1185 |
|
|
<DL> |
1186 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1187 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$lastname</SPAN></SPAN> - the value to validate</DD> |
1188 |
|
|
|
1189 |
|
|
<DT class="font10bold">Function Info:</DT> |
1190 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1191 |
|
|
</DL> |
1192 |
|
|
</DIV> |
1193 |
|
|
<BR> |
1194 |
|
|
<DIV CLASS="function"> |
1195 |
|
|
<A NAME='methodis_leapyear'><!-- --></A> |
1196 |
|
|
<SPAN CLASS="font12bold">is_leapyear</SPAN> (line <span class="linenumber">817</span>) |
1197 |
|
|
<BR> |
1198 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1199 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1200 |
|
|
<span class="font10bold" style="color: #0000FF">is_leapyear( |
1201 |
|
|
string |
1202 |
|
|
$yyyy)</SPAN> |
1203 |
|
|
<BR> |
1204 |
|
|
|
1205 |
|
|
<BR> |
1206 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1207 |
|
|
This method validates a string as a leap year. |
1208 |
|
|
<br /> |
1209 |
|
|
|
1210 |
|
|
<DL> |
1211 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1212 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$yyyy</SPAN></SPAN> - the value to validate</DD> |
1213 |
|
|
|
1214 |
|
|
<DT class="font10bold">Function Info:</DT> |
1215 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1216 |
|
|
</DL> |
1217 |
|
|
</DIV> |
1218 |
|
|
<BR> |
1219 |
|
|
<DIV CLASS="function"> |
1220 |
|
|
<A NAME='methodis_manyemails'><!-- --></A> |
1221 |
|
|
<SPAN CLASS="font12bold">is_manyemails</SPAN> (line <span class="linenumber">796</span>) |
1222 |
|
|
<BR> |
1223 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1224 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1225 |
|
|
<span class="font10bold" style="color: #0000FF">is_manyemails( |
1226 |
|
|
string |
1227 |
|
|
$emails)</SPAN> |
1228 |
|
|
<BR> |
1229 |
|
|
|
1230 |
|
|
<BR> |
1231 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1232 |
|
|
This function tests a string that may contain many email addresses seperated by commas |
1233 |
|
|
<br /> |
1234 |
|
|
|
1235 |
|
|
<DL> |
1236 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1237 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$emails</SPAN></SPAN> - the value to validate</DD> |
1238 |
|
|
|
1239 |
|
|
<DT class="font10bold">Function Info:</DT> |
1240 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1241 |
|
|
</DL> |
1242 |
|
|
</DIV> |
1243 |
|
|
<BR> |
1244 |
|
|
<DIV CLASS="function"> |
1245 |
|
|
<A NAME='methodis_money'><!-- --></A> |
1246 |
|
|
<SPAN CLASS="font12bold">is_money</SPAN> (line <span class="linenumber">468</span>) |
1247 |
|
|
<BR> |
1248 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1249 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1250 |
|
|
<span class="font10bold" style="color: #0000FF">is_money( |
1251 |
|
|
string |
1252 |
|
|
$money)</SPAN> |
1253 |
|
|
<BR> |
1254 |
|
|
|
1255 |
|
|
<BR> |
1256 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1257 |
|
|
This method tests a string to make sure it is in a valid money format. |
1258 |
|
|
<br /> |
1259 |
|
|
<p>either $x or $x.cents</p> |
1260 |
|
|
<DL> |
1261 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1262 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$money</SPAN></SPAN> - the value to validate</DD> |
1263 |
|
|
|
1264 |
|
|
<DT class="font10bold">Function Info:</DT> |
1265 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1266 |
|
|
</DL> |
1267 |
|
|
</DIV> |
1268 |
|
|
<BR> |
1269 |
|
|
<DIV CLASS="function"> |
1270 |
|
|
<A NAME='methodis_name'><!-- --></A> |
1271 |
|
|
<SPAN CLASS="font12bold">is_name</SPAN> (line <span class="linenumber">614</span>) |
1272 |
|
|
<BR> |
1273 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1274 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1275 |
|
|
<span class="font10bold" style="color: #0000FF">is_name( |
1276 |
|
|
string |
1277 |
|
|
$name)</SPAN> |
1278 |
|
|
<BR> |
1279 |
|
|
|
1280 |
|
|
<BR> |
1281 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1282 |
|
|
This validates a string as a valid proper name. |
1283 |
|
|
<br /> |
1284 |
|
|
<p>The string can't be longer then VALIDATE_MAXSIZE in length, and it can only contain letters and numbers</p> |
1285 |
|
|
<DL> |
1286 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1287 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$name</SPAN></SPAN> - the value to validate</DD> |
1288 |
|
|
|
1289 |
|
|
<DT class="font10bold">Function Info:</DT> |
1290 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1291 |
|
|
</DL> |
1292 |
|
|
</DIV> |
1293 |
|
|
<BR> |
1294 |
|
|
<DIV CLASS="function"> |
1295 |
|
|
<A NAME='methodis_notempty'><!-- --></A> |
1296 |
|
|
<SPAN CLASS="font12bold">is_notempty</SPAN> (line <span class="linenumber">116</span>) |
1297 |
|
|
<BR> |
1298 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1299 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1300 |
|
|
<span class="font10bold" style="color: #0000FF">is_notempty( |
1301 |
|
|
mixed |
1302 |
|
|
$value)</SPAN> |
1303 |
|
|
<BR> |
1304 |
|
|
|
1305 |
|
|
<BR> |
1306 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1307 |
|
|
This function makes sure the data is not empty |
1308 |
|
|
<br /> |
1309 |
|
|
|
1310 |
|
|
<DL> |
1311 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1312 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">mixed</SPAN> <span style="color: #0000FF;font-weight:bold">$value</SPAN></SPAN> </DD> |
1313 |
|
|
|
1314 |
|
|
<DT class="font10bold">Function Info:</DT> |
1315 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = not empty</DD> |
1316 |
|
|
</DL> |
1317 |
|
|
</DIV> |
1318 |
|
|
<BR> |
1319 |
|
|
<DIV CLASS="function"> |
1320 |
|
|
<A NAME='methodis_num'><!-- --></A> |
1321 |
|
|
<SPAN CLASS="font12bold">is_num</SPAN> (line <span class="linenumber">170</span>) |
1322 |
|
|
<BR> |
1323 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1324 |
|
|
<span class="font10bold" style="color: #FF0000">boolean</SPAN> |
1325 |
|
|
<span class="font10bold" style="color: #0000FF">is_num( |
1326 |
|
|
string |
1327 |
|
|
$str, [string |
1328 |
|
|
$from = ""])</SPAN> |
1329 |
|
|
<BR> |
1330 |
|
|
|
1331 |
|
|
<BR> |
1332 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1333 |
|
|
This function checks if the given string contains numerical digit characters. |
1334 |
|
|
<br /> |
1335 |
|
|
<p>It also checks for the allowed additional characters.</p> |
1336 |
|
|
<DL> |
1337 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1338 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$str</SPAN></SPAN> - the string to check</DD> |
1339 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$from</SPAN></SPAN> - list of individual characters to allow besides a-zA-Z</DD> |
1340 |
|
|
|
1341 |
|
|
<DT class="font10bold">Function Info:</DT> |
1342 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - FALSE - if any other extraneous characters are found TRUE upon succes.</DD> |
1343 |
|
|
</DL> |
1344 |
|
|
</DIV> |
1345 |
|
|
<BR> |
1346 |
|
|
<DIV CLASS="function"> |
1347 |
|
|
<A NAME='methodis_number'><!-- --></A> |
1348 |
|
|
<SPAN CLASS="font12bold">is_number</SPAN> (line <span class="linenumber">452</span>) |
1349 |
|
|
<BR> |
1350 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1351 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1352 |
|
|
<span class="font10bold" style="color: #0000FF">is_number( |
1353 |
|
|
string |
1354 |
|
|
$value)</SPAN> |
1355 |
|
|
<BR> |
1356 |
|
|
|
1357 |
|
|
<BR> |
1358 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1359 |
|
|
This tests a string to make sure it is a valid number. |
1360 |
|
|
<br /> |
1361 |
|
|
|
1362 |
|
|
<DL> |
1363 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1364 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$value</SPAN></SPAN> - the value to validate</DD> |
1365 |
|
|
|
1366 |
|
|
<DT class="font10bold">Function Info:</DT> |
1367 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1368 |
|
|
</DL> |
1369 |
|
|
</DIV> |
1370 |
|
|
<BR> |
1371 |
|
|
<DIV CLASS="function"> |
1372 |
|
|
<A NAME='methodis_partial_domainname'><!-- --></A> |
1373 |
|
|
<SPAN CLASS="font12bold">is_partial_domainname</SPAN> (line <span class="linenumber">332</span>) |
1374 |
|
|
<BR> |
1375 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1376 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1377 |
|
|
<span class="font10bold" style="color: #0000FF">is_partial_domainname( |
1378 |
|
|
string |
1379 |
|
|
$name)</SPAN> |
1380 |
|
|
<BR> |
1381 |
|
|
|
1382 |
|
|
<BR> |
1383 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1384 |
|
|
This method validates a string for a valid partial hostname for a machine. |
1385 |
|
|
<br /> |
1386 |
|
|
|
1387 |
|
|
<DL> |
1388 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1389 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$name</SPAN></SPAN> - the value to validate</DD> |
1390 |
|
|
|
1391 |
|
|
<DT class="font10bold">Function Info:</DT> |
1392 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1393 |
|
|
</DL> |
1394 |
|
|
</DIV> |
1395 |
|
|
<BR> |
1396 |
|
|
<DIV CLASS="function"> |
1397 |
|
|
<A NAME='methodis_partial_ip'><!-- --></A> |
1398 |
|
|
<SPAN CLASS="font12bold">is_partial_ip</SPAN> (line <span class="linenumber">405</span>) |
1399 |
|
|
<BR> |
1400 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1401 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1402 |
|
|
<span class="font10bold" style="color: #0000FF">is_partial_ip( |
1403 |
|
|
string |
1404 |
|
|
$ip)</SPAN> |
1405 |
|
|
<BR> |
1406 |
|
|
|
1407 |
|
|
<BR> |
1408 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1409 |
|
|
This validates a string as a portion of an IP address. |
1410 |
|
|
<br /> |
1411 |
|
|
<p>This should work with either IPv4 or IPv6</p> |
1412 |
|
|
<DL> |
1413 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1414 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$ip</SPAN></SPAN> - the value to validate</DD> |
1415 |
|
|
|
1416 |
|
|
<DT class="font10bold">Function Info:</DT> |
1417 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1418 |
|
|
</DL> |
1419 |
|
|
</DIV> |
1420 |
|
|
<BR> |
1421 |
|
|
<DIV CLASS="function"> |
1422 |
|
|
<A NAME='methodis_password'><!-- --></A> |
1423 |
|
|
<SPAN CLASS="font12bold">is_password</SPAN> (line <span class="linenumber">677</span>) |
1424 |
|
|
<BR> |
1425 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1426 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1427 |
|
|
<span class="font10bold" style="color: #0000FF">is_password( |
1428 |
|
|
string |
1429 |
|
|
$password)</SPAN> |
1430 |
|
|
<BR> |
1431 |
|
|
|
1432 |
|
|
<BR> |
1433 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1434 |
|
|
This tries to validate a string as a password It can't be empty and has to be less then VALIDATE_MAXSIZE characters in length |
1435 |
|
|
<br /> |
1436 |
|
|
<p>NOTE: password is case sensitive, and spaces are ignored.</p> |
1437 |
|
|
<DL> |
1438 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1439 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$password</SPAN></SPAN> - the value to validate</DD> |
1440 |
|
|
|
1441 |
|
|
<DT class="font10bold">Function Info:</DT> |
1442 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1443 |
|
|
</DL> |
1444 |
|
|
</DIV> |
1445 |
|
|
<BR> |
1446 |
|
|
<DIV CLASS="function"> |
1447 |
|
|
<A NAME='methodis_path'><!-- --></A> |
1448 |
|
|
<SPAN CLASS="font12bold">is_path</SPAN> (line <span class="linenumber">581</span>) |
1449 |
|
|
<BR> |
1450 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1451 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1452 |
|
|
<span class="font10bold" style="color: #0000FF">is_path( |
1453 |
|
|
string |
1454 |
|
|
$path)</SPAN> |
1455 |
|
|
<BR> |
1456 |
|
|
|
1457 |
|
|
<BR> |
1458 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1459 |
|
|
This method validates a string as a path to a file. |
1460 |
|
|
<br /> |
1461 |
|
|
|
1462 |
|
|
<DL> |
1463 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1464 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$path</SPAN></SPAN> - the value to validate</DD> |
1465 |
|
|
|
1466 |
|
|
<DT class="font10bold">Function Info:</DT> |
1467 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1468 |
|
|
</DL> |
1469 |
|
|
</DIV> |
1470 |
|
|
<BR> |
1471 |
|
|
<DIV CLASS="function"> |
1472 |
|
|
<A NAME='methodis_price'><!-- --></A> |
1473 |
|
|
<SPAN CLASS="font12bold">is_price</SPAN> (line <span class="linenumber">494</span>) |
1474 |
|
|
<BR> |
1475 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1476 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1477 |
|
|
<span class="font10bold" style="color: #0000FF">is_price( |
1478 |
|
|
string |
1479 |
|
|
$price)</SPAN> |
1480 |
|
|
<BR> |
1481 |
|
|
|
1482 |
|
|
<BR> |
1483 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1484 |
|
|
This method tries to validate a string as a valid price. It can't be zero (a la free!) |
1485 |
|
|
<br /> |
1486 |
|
|
|
1487 |
|
|
<DL> |
1488 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1489 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$price</SPAN></SPAN> - the value to validate</DD> |
1490 |
|
|
|
1491 |
|
|
<DT class="font10bold">Function Info:</DT> |
1492 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1493 |
|
|
</DL> |
1494 |
|
|
</DIV> |
1495 |
|
|
<BR> |
1496 |
|
|
<DIV CLASS="function"> |
1497 |
|
|
<A NAME='methodis_range'><!-- --></A> |
1498 |
|
|
<SPAN CLASS="font12bold">is_range</SPAN> (line <span class="linenumber">202</span>) |
1499 |
|
|
<BR> |
1500 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1501 |
|
|
<span class="font10bold" style="color: #FF0000">void</SPAN> |
1502 |
|
|
<span class="font10bold" style="color: #0000FF">is_range( |
1503 |
|
|
mixed |
1504 |
|
|
$value, mixed |
1505 |
|
|
$size, mixed |
1506 |
|
|
$min, mixed |
1507 |
|
|
$max)</SPAN> |
1508 |
|
|
<BR> |
1509 |
|
|
|
1510 |
|
|
<BR> |
1511 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1512 |
|
|
is_range |
1513 |
|
|
<br /> |
1514 |
|
|
<p>This is the range check that the can be used in checks_array. Valarray should be: array('val' => $val, 'size' => $size OPTIONAL 'min' => $min, 'max' => $max, )</p> |
1515 |
|
|
<DL> |
1516 |
|
|
|
1517 |
|
|
<DT class="font10bold">Function Info:</DT> |
1518 |
|
|
</DL> |
1519 |
|
|
</DIV> |
1520 |
|
|
<BR> |
1521 |
|
|
<DIV CLASS="function"> |
1522 |
|
|
<A NAME='methodis_standalone_hostname'><!-- --></A> |
1523 |
|
|
<SPAN CLASS="font12bold">is_standalone_hostname</SPAN> (line <span class="linenumber">264</span>) |
1524 |
|
|
<BR> |
1525 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1526 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1527 |
|
|
<span class="font10bold" style="color: #0000FF">is_standalone_hostname( |
1528 |
|
|
string |
1529 |
|
|
$name)</SPAN> |
1530 |
|
|
<BR> |
1531 |
|
|
|
1532 |
|
|
<BR> |
1533 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1534 |
|
|
this method tests to see if this is a valid hostname value minus the domain name portion. |
1535 |
|
|
<br /> |
1536 |
|
|
|
1537 |
|
|
<DL> |
1538 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1539 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$name</SPAN></SPAN> - the value to validate</DD> |
1540 |
|
|
|
1541 |
|
|
<DT class="font10bold">Function Info:</DT> |
1542 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1543 |
|
|
</DL> |
1544 |
|
|
</DIV> |
1545 |
|
|
<BR> |
1546 |
|
|
<DIV CLASS="function"> |
1547 |
|
|
<A NAME='methodis_strict_url'><!-- --></A> |
1548 |
|
|
<SPAN CLASS="font12bold">is_strict_url</SPAN> (line <span class="linenumber">1107</span>) |
1549 |
|
|
<BR> |
1550 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1551 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1552 |
|
|
<span class="font10bold" style="color: #0000FF">is_strict_url( |
1553 |
|
|
string |
1554 |
|
|
$url)</SPAN> |
1555 |
|
|
<BR> |
1556 |
|
|
|
1557 |
|
|
<BR> |
1558 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1559 |
|
|
This method validates a strict url. |
1560 |
|
|
<br /> |
1561 |
|
|
<p>It is the same as is_url, except that it requires the prefix http://</p> |
1562 |
|
|
<DL> |
1563 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1564 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$url</SPAN></SPAN> - the value to validate</DD> |
1565 |
|
|
|
1566 |
|
|
<DT class="font10bold">Function Info:</DT> |
1567 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1568 |
|
|
</DL> |
1569 |
|
|
</DIV> |
1570 |
|
|
<BR> |
1571 |
|
|
<DIV CLASS="function"> |
1572 |
|
|
<A NAME='methodis_time'><!-- --></A> |
1573 |
|
|
<SPAN CLASS="font12bold">is_time</SPAN> (line <span class="linenumber">952</span>) |
1574 |
|
|
<BR> |
1575 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1576 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1577 |
|
|
<span class="font10bold" style="color: #0000FF">is_time( |
1578 |
|
|
string |
1579 |
|
|
$value)</SPAN> |
1580 |
|
|
<BR> |
1581 |
|
|
|
1582 |
|
|
<BR> |
1583 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1584 |
|
|
This validates an array of fields as a valid time of the day |
1585 |
|
|
<br /> |
1586 |
|
|
<p>NOTE: array must contain array( "hour" => VALUE, "minutes" => VALUE, "seconds" => VALUE);</p> |
1587 |
|
|
<DL> |
1588 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1589 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$value</SPAN></SPAN> - the value to validate</DD> |
1590 |
|
|
|
1591 |
|
|
<DT class="font10bold">Function Info:</DT> |
1592 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1593 |
|
|
</DL> |
1594 |
|
|
</DIV> |
1595 |
|
|
<BR> |
1596 |
|
|
<DIV CLASS="function"> |
1597 |
|
|
<A NAME='methodis_title'><!-- --></A> |
1598 |
|
|
<SPAN CLASS="font12bold">is_title</SPAN> (line <span class="linenumber">1125</span>) |
1599 |
|
|
<BR> |
1600 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1601 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1602 |
|
|
<span class="font10bold" style="color: #0000FF">is_title( |
1603 |
|
|
string |
1604 |
|
|
$name)</SPAN> |
1605 |
|
|
<BR> |
1606 |
|
|
|
1607 |
|
|
<BR> |
1608 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1609 |
|
|
Validate if the string is a good candidate to become an Title |
1610 |
|
|
<br /> |
1611 |
|
|
|
1612 |
|
|
<DL> |
1613 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1614 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$name</SPAN></SPAN> - the value to validate</DD> |
1615 |
|
|
|
1616 |
|
|
<DT class="font10bold">Function Info:</DT> |
1617 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1618 |
|
|
</DL> |
1619 |
|
|
</DIV> |
1620 |
|
|
<BR> |
1621 |
|
|
<DIV CLASS="function"> |
1622 |
|
|
<A NAME='methodis_url'><!-- --></A> |
1623 |
|
|
<SPAN CLASS="font12bold">is_url</SPAN> (line <span class="linenumber">1068</span>) |
1624 |
|
|
<BR> |
1625 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1626 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1627 |
|
|
<span class="font10bold" style="color: #0000FF">is_url( |
1628 |
|
|
string |
1629 |
|
|
$url)</SPAN> |
1630 |
|
|
<BR> |
1631 |
|
|
|
1632 |
|
|
<BR> |
1633 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1634 |
|
|
This method validates a string as a valid url It inclues the prefix, hostname/ip, port number and path. |
1635 |
|
|
<br /> |
1636 |
|
|
<p>NOTE: format is in [http://] hostip [:port number] [path]</p> |
1637 |
|
|
<DL> |
1638 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1639 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$url</SPAN></SPAN> - the value to validate</DD> |
1640 |
|
|
|
1641 |
|
|
<DT class="font10bold">Function Info:</DT> |
1642 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1643 |
|
|
</DL> |
1644 |
|
|
</DIV> |
1645 |
|
|
<BR> |
1646 |
|
|
<DIV CLASS="function"> |
1647 |
|
|
<A NAME='methodis_urlpath'><!-- --></A> |
1648 |
|
|
<SPAN CLASS="font12bold">is_urlpath</SPAN> (line <span class="linenumber">597</span>) |
1649 |
|
|
<BR> |
1650 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1651 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1652 |
|
|
<span class="font10bold" style="color: #0000FF">is_urlpath( |
1653 |
|
|
string |
1654 |
|
|
$path)</SPAN> |
1655 |
|
|
<BR> |
1656 |
|
|
|
1657 |
|
|
<BR> |
1658 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1659 |
|
|
This method validates a string as a valid url path to a file |
1660 |
|
|
<br /> |
1661 |
|
|
|
1662 |
|
|
<DL> |
1663 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1664 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$path</SPAN></SPAN> - the value to validate</DD> |
1665 |
|
|
|
1666 |
|
|
<DT class="font10bold">Function Info:</DT> |
1667 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1668 |
|
|
</DL> |
1669 |
|
|
</DIV> |
1670 |
|
|
<BR> |
1671 |
|
|
<DIV CLASS="function"> |
1672 |
|
|
<A NAME='methodis_username'><!-- --></A> |
1673 |
|
|
<SPAN CLASS="font12bold">is_username</SPAN> (line <span class="linenumber">651</span>) |
1674 |
|
|
<BR> |
1675 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1676 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1677 |
|
|
<span class="font10bold" style="color: #0000FF">is_username( |
1678 |
|
|
string |
1679 |
|
|
$username)</SPAN> |
1680 |
|
|
<BR> |
1681 |
|
|
|
1682 |
|
|
<BR> |
1683 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1684 |
|
|
This method tests to see if a string value |
1685 |
|
|
<br /> |
1686 |
|
|
<p>is a valid 'account' name. The string can't be larger then VALIDATE_MAXSIZE, and can only contain alphanum characters</p> |
1687 |
|
|
<DL> |
1688 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1689 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$username</SPAN></SPAN> - the value to validate</DD> |
1690 |
|
|
|
1691 |
|
|
<DT class="font10bold">Function Info:</DT> |
1692 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1693 |
|
|
</DL> |
1694 |
|
|
</DIV> |
1695 |
|
|
<BR> |
1696 |
|
|
<DIV CLASS="function"> |
1697 |
|
|
<A NAME='methodis_valid_domain'><!-- --></A> |
1698 |
|
|
<SPAN CLASS="font12bold">is_valid_domain</SPAN> (line <span class="linenumber">1140</span>) |
1699 |
|
|
<BR> |
1700 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1701 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1702 |
|
|
<span class="font10bold" style="color: #0000FF">is_valid_domain( |
1703 |
|
|
string |
1704 |
|
|
$domain_value, [mixed |
1705 |
|
|
$allow_www = false])</SPAN> |
1706 |
|
|
<BR> |
1707 |
|
|
|
1708 |
|
|
<BR> |
1709 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1710 |
|
|
Validate domain Will check if a domain is valid |
1711 |
|
|
<br /> |
1712 |
|
|
|
1713 |
|
|
<DL> |
1714 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1715 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$domain_value</SPAN></SPAN> - the value to validate</DD> |
1716 |
|
|
|
1717 |
|
|
<DT class="font10bold">Function Info:</DT> |
1718 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1719 |
|
|
</DL> |
1720 |
|
|
</DIV> |
1721 |
|
|
<BR> |
1722 |
|
|
<DIV CLASS="function"> |
1723 |
|
|
<A NAME='methodis_within_range'><!-- --></A> |
1724 |
|
|
<SPAN CLASS="font12bold">is_within_range</SPAN> (line <span class="linenumber">221</span>) |
1725 |
|
|
<BR> |
1726 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1727 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1728 |
|
|
<span class="font10bold" style="color: #0000FF">is_within_range( |
1729 |
|
|
mixed |
1730 |
|
|
$value, int |
1731 |
|
|
$size, mixed |
1732 |
|
|
$start, mixed |
1733 |
|
|
$end, [string |
1734 |
|
|
$error = FALSE])</SPAN> |
1735 |
|
|
<BR> |
1736 |
|
|
|
1737 |
|
|
<BR> |
1738 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1739 |
|
|
This method makes sure a value lies within a given range of values. |
1740 |
|
|
<br /> |
1741 |
|
|
<p>The error message can be customized by passing in a customer error code</p> |
1742 |
|
|
<DL> |
1743 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1744 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">mixed</SPAN> <span style="color: #0000FF;font-weight:bold">$value</SPAN></SPAN> - the value u want to check</DD> |
1745 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$size</SPAN></SPAN> - the size</DD> |
1746 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">mixed</SPAN> <span style="color: #0000FF;font-weight:bold">$start</SPAN></SPAN> - the lower bound value</DD> |
1747 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">mixed</SPAN> <span style="color: #0000FF;font-weight:bold">$end</SPAN></SPAN> - the upper bound value</DD> |
1748 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$error</SPAN></SPAN> - the error code if any</DD> |
1749 |
|
|
|
1750 |
|
|
<DT class="font10bold">Function Info:</DT> |
1751 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1752 |
|
|
</DL> |
1753 |
|
|
</DIV> |
1754 |
|
|
<BR> |
1755 |
|
|
<DIV CLASS="function"> |
1756 |
|
|
<A NAME='methodis_zero_onehundred'><!-- --></A> |
1757 |
|
|
<SPAN CLASS="font12bold">is_zero_onehundred</SPAN> (line <span class="linenumber">543</span>) |
1758 |
|
|
<BR> |
1759 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1760 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1761 |
|
|
<span class="font10bold" style="color: #0000FF">is_zero_onehundred( |
1762 |
|
|
string |
1763 |
|
|
$value)</SPAN> |
1764 |
|
|
<BR> |
1765 |
|
|
|
1766 |
|
|
<BR> |
1767 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1768 |
|
|
This validates a string as a valid number between 0 and 100 |
1769 |
|
|
<br /> |
1770 |
|
|
|
1771 |
|
|
<DL> |
1772 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1773 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$value</SPAN></SPAN> - the value to validate</DD> |
1774 |
|
|
|
1775 |
|
|
<DT class="font10bold">Function Info:</DT> |
1776 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1777 |
|
|
</DL> |
1778 |
|
|
</DIV> |
1779 |
|
|
<BR> |
1780 |
|
|
<DIV CLASS="function"> |
1781 |
|
|
<A NAME='methodis_zip'><!-- --></A> |
1782 |
|
|
<SPAN CLASS="font12bold">is_zip</SPAN> (line <span class="linenumber">1003</span>) |
1783 |
|
|
<BR> |
1784 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1785 |
|
|
<span class="font10bold" style="color: #FF0000">TRUE</SPAN> |
1786 |
|
|
<span class="font10bold" style="color: #0000FF">is_zip( |
1787 |
|
|
string |
1788 |
|
|
$zip)</SPAN> |
1789 |
|
|
<BR> |
1790 |
|
|
|
1791 |
|
|
<BR> |
1792 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1793 |
|
|
This validates a string as a valid zipcode |
1794 |
|
|
<br /> |
1795 |
|
|
<p>numbers, whitespace allowed</p> |
1796 |
|
|
<DL> |
1797 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1798 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$zip</SPAN></SPAN> - the value to validate</DD> |
1799 |
|
|
|
1800 |
|
|
<DT class="font10bold">Function Info:</DT> |
1801 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - = succes FALSE = failed</DD> |
1802 |
|
|
</DL> |
1803 |
|
|
</DIV> |
1804 |
|
|
<BR> |
1805 |
|
|
<DIV CLASS="function"> |
1806 |
|
|
<A NAME='method_error'><!-- --></A> |
1807 |
|
|
<SPAN CLASS="font12bold">_error</SPAN> (line <span class="linenumber">73</span>) |
1808 |
|
|
<BR> |
1809 |
|
|
<SPAN CLASS="font10bold">Usage : </SPAN> |
1810 |
|
|
<span class="font10bold" style="color: #FF0000">FALSE</SPAN> |
1811 |
|
|
<span class="font10bold" style="color: #0000FF">_error( |
1812 |
|
|
string |
1813 |
|
|
$code, [mixed |
1814 |
|
|
$message = NULL])</SPAN> |
1815 |
|
|
<BR> |
1816 |
|
|
|
1817 |
|
|
<BR> |
1818 |
|
|
<SPAN CLASS="font10bold">Description : </SPAN> |
1819 |
|
|
A wrapper method to set the error message and error code before returning FALSE |
1820 |
|
|
<br /> |
1821 |
|
|
|
1822 |
|
|
<DL> |
1823 |
|
|
<DT class="font10bold">Function Parameters:</DT> |
1824 |
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$code</SPAN></SPAN> - error code</DD> |
1825 |
|
|
|
1826 |
|
|
<DT class="font10bold">Function Info:</DT> |
1827 |
|
|
</DL> |
1828 |
|
|
</DIV> |
1829 |
|
|
<BR> |
1830 |
|
|
<div id="credit"> |
1831 |
|
|
<hr> |
1832 |
|
|
Documention generated on Thu, 20 Feb 2003 16:22:55 -0800 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.2.0rc1</a> |
1833 |
|
|
</div> |
1834 |
|
|
</body> |
1835 |
|
|
</html> |