1 |
jonen |
1.3 |
<?xml version="1.0" encoding="iso-8859-1"?>
|
2 |
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3 |
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
4 |
|
|
<head>
|
5 |
|
|
<!-- template designed by Marco Von Ballmoos -->
|
6 |
|
|
<title>Docs For Class FormErrors</title>
|
7 |
|
|
<link rel="stylesheet" href="../../media/stylesheet.css" />
|
8 |
|
|
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
|
9 |
|
|
</head>
|
10 |
|
|
<body>
|
11 |
|
|
<div class="page-body">
|
12 |
|
|
<h2 class="class-name">Class FormErrors</h2>
|
13 |
|
|
|
14 |
|
|
<a name="sec-description"></a>
|
15 |
|
|
<div class="info-box">
|
16 |
|
|
<div class="info-box-title">Description</div>
|
17 |
|
|
<div class="nav-bar">
|
18 |
|
|
<span class="disabled">Description</span> |
|
19 |
|
|
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
|
20 |
|
|
| <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
|
21 |
|
|
|
22 |
|
|
</div>
|
23 |
|
|
<div class="info-box-body">
|
24 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
25 |
|
|
<p class="short-description">This file holds the error codes and error messages associated with those codes for English</p>
|
26 |
|
|
<p class="description"><p>$Id: FormErrors.html,v 1.19 2004/04/01 17:35:46 hemna Exp $</p></p>
|
27 |
|
|
<ul class="tags">
|
28 |
|
|
<li><span class="field">copyright:</span> LGPL - See LICENCE</li>
|
29 |
|
|
<li><span class="field">author:</span> Walter A. Boring IV <<a href="mailto:waboring@buildabetterweb.com">waboring@buildabetterweb.com</a>></li>
|
30 |
|
|
</ul>
|
31 |
|
|
<p class="notes">
|
32 |
|
|
Located in <a class="field" href="_form_FormErrors_inc.html">/form/FormErrors.inc</a> (line <span class="field">16</span>)
|
33 |
|
|
</p>
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
<pre></pre>
|
37 |
|
|
|
38 |
|
|
</div>
|
39 |
|
|
</div>
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
<a name="sec-var-summary"></a>
|
44 |
|
|
<div class="info-box">
|
45 |
|
|
<div class="info-box-title">Variable Summary</span></div>
|
46 |
|
|
<div class="nav-bar">
|
47 |
|
|
<a href="#sec-description">Description</a> |
|
48 |
|
|
<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
|
49 |
|
|
|
|
50 |
|
|
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
|
51 |
|
|
|
52 |
|
|
</div>
|
53 |
|
|
<div class="info-box-body">
|
54 |
|
|
<div class="var-summary">
|
55 |
|
|
<div class="var-title">
|
56 |
|
|
<span class="var-type">mixed</span>
|
57 |
|
|
<a href="#$error_array" title="details" class="var-name">$error_array</a>
|
58 |
|
|
</div>
|
59 |
|
|
</div>
|
60 |
|
|
</div>
|
61 |
|
|
</div>
|
62 |
|
|
|
63 |
|
|
<a name="sec-method-summary"></a>
|
64 |
|
|
<div class="info-box">
|
65 |
|
|
<div class="info-box-title">Method Summary</span></div>
|
66 |
|
|
<div class="nav-bar">
|
67 |
|
|
<a href="#sec-description">Description</a> |
|
68 |
|
|
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
|
69 |
|
|
|
70 |
|
|
|
|
71 |
|
|
<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
|
72 |
|
|
</div>
|
73 |
|
|
<div class="info-box-body">
|
74 |
|
|
<div class="method-summary">
|
75 |
|
|
|
76 |
|
|
<div class="method-definition">
|
77 |
|
|
<span class="method-result">string</span>
|
78 |
|
|
<a href="#get_error_msg" title="details" class="method-name">get_error_msg</a>
|
79 |
|
|
(<span class="var-type">string</span> <span class="var-name">$err</span>)
|
80 |
|
|
</div>
|
81 |
|
|
</div>
|
82 |
|
|
</div>
|
83 |
|
|
</div>
|
84 |
|
|
|
85 |
|
|
<a name="sec-vars"></a>
|
86 |
|
|
<div class="info-box">
|
87 |
|
|
<div class="info-box-title">Variables</div>
|
88 |
|
|
<div class="nav-bar">
|
89 |
|
|
<a href="#sec-description">Description</a> |
|
90 |
|
|
<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
|
94 |
|
|
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
|
95 |
|
|
|
96 |
|
|
</div>
|
97 |
|
|
<div class="info-box-body">
|
98 |
|
|
<a name="var$error_array" id="$error_array"><!-- --></A>
|
99 |
|
|
<div class="evenrow">
|
100 |
|
|
|
101 |
|
|
<div class="var-header">
|
102 |
|
|
<span class="var-title">
|
103 |
|
|
<span class="var-type">mixed</span>
|
104 |
|
|
<span class="var-name">$error_array</span>
|
105 |
|
|
= <span class="var-default">array(<br /> "ERR_OK" => 0,<br /> "ERR_EMPTY" => "This field cannot be empty",<br /><br /> "INVALID_IP" => "The IP address you have entered is not in a valid format",<br /> "INVALID_LOGIN_NAME_LENGTH" => "The User Name must be less than 40 characters.",<br /> "INVALID_LOGIN_NAME_EMPTY" => "The User Name field must not be blank.",<br /> "INVALID_LOGIN_NAME_CHARACTERS" => "The User Name field may contain only letters and numbers.",<br /> "INVALID_PASSWORD_EMPTY" => "The Password field must not be blank.",<br /> "INVALID_PASSWORD_LENGTH" => "The Password field should be less than 40 characters.",<br /> "INVALID_PASSWORD_CHARACTERS" => "The Password field contains invalid characters",<br /> "PASSWORD_CONFIRM_NO_MATCH" => "The password and confirmation password you have typed do not match. Please try again.",<br /><br /> "INVALID_PATH_LENGTH" => "The path field does not meet the requirements. It must be less than 40 characters.",<br /> "INVALID_PATH_EMPTY" => "The path field must not be blank.",<br /> "INVALID_PATH_CHARACTERS " => "The path field may contain only letters and numbers.",<br /><br /> "INVALID_NUMBER" => "This field must contain a valid number.",<br /> "INVALID_LENGTH" => "Entry has exceeded allowed length.",<br /> "INVALID_LENGTH_N" => "This field must not exceed XX_MAX characters in length. The character count is XX_LENGTH",<br /> "INVALID_LENGTH_40" => "This field must not exceed 40 characters in length.",<br /> "INVALID_LENGTH_256" => "This field must not exceed 256 characters in length.",<br /> "INVALID_NAME_EMPTY" => "The name must not be empty.",<br /> "INVALID_NAME_CHARACTERS" => "The name may contain only letters and numbers.",<br /><br /> "EMPTY_FIELD" => "This field can not be empty",<br /> "INVALID_DOMAIN_NAME" => "This domain name you have entered is not valid.",<br /> "INVALID_HOST_NAME" => "The host name you have entered is not valid.",<br /> "INVALID_IP_EMPTY" => "The IP Address must not be empty.",<br /> "INVALID_EMAIL_EMPTY" => "The email address can not be empty.",<br /> "INVALID_EMAIL" => "The email address is not properly formatted.", <br /> "INVALID_PHONE" => "The phone number you have entered is not properly formatted.",<br /> <br /> "ONLY_DIGITS" => "Only numeric digits are allowed in this field.",<br /> "INVALID_MONTH" => "You have entered an invalid month.",<br /> "INVALID_DAY" => "You have entered an invalid day.",<br /> "INVALID_YEAR" => "You have entered an invalid year.",<br /> "INVALID_HOUR" => "You have entered an invalid hour.",<br /> "INVALID_MINUTES" => "You have entered invalid mintues.",<br /> "INVALID_SECONDS" => "You have entered invalid seconds.",<br /> "INVALID_LEAP_DAY" => "The year you have entered is not a leap year. February only has 28 days.",<br /> "INVALID_30_DAY" => "There are only 30 days in this month.",<br /> "INVALID_ZERO_HUNDRED_NUMBER" => "This number must be between 0 and 100.",<br /> "INVALID_MONEY" => "This must be a valid amount in dollars and cents.",<br /> "INVALID_FLOAT" => "This must be a valid floating point number.",<br /> "INVALID_EMAIL_MISSING_BRACKETS" => "The long form email address must contain the < > characters, such as \"Foo Bar &lt;foo@bar.com&gt;\".",<br /><br /> "INVALID_EMPTY" => "This field cannot be empty.",<br /> "INVALID_STATE" => "You must specify a 2 letter state code (ie. 'CA' for California).",<br /> "INVALID_ZIP" => "Invalid zip code",<br /> "INVALID_FIELD" => "This field's value is invalid.",<br /> "INVALID_TIME_FORMAT" => "You have entred an invalid date/time format.",<br /> "INVALID_YEAR_DATE_1990_3000" => "The year must be between 1990 and 3000",<br /><br /> "INVALID_PRICE" => "Price must be a valid, non-zero amount in dollars and cents.",<br /><br /> "CCEXP" => "Credit card expired already",<br /> "CCEXP_TOO_FAR" => "Credit card expires in more than 30 years?",<br /> "NOT_IN_RANGE" => "Value not in range.",<br /> "INVALID_URL" => "URL must be in the form of http[s]://hostip [:port number] [path]", <br /> "INVALID_STANDALONE_HOST_NAME" => "You have entered an invalid host name. Please enter a Hostname without the domainname.",<br /><br /> "INVALID_ALPHANUM_CHARACTERS" => "This field may contain only numbers and letters.",<br /> "NOT_LEAPYEAR" => "The year is not a leapyear"<br /> )</span> (line <span class="line-number">22</span>)
|
106 |
|
|
</span>
|
107 |
|
|
</div>
|
108 |
|
|
|
109 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
110 |
|
|
<p class="short-description">error array from the FormValidation class.</p>
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
|
|
</div>
|
117 |
|
|
|
118 |
|
|
</div>
|
119 |
|
|
</div>
|
120 |
|
|
|
121 |
|
|
<a name="sec-methods"></a>
|
122 |
|
|
<div class="info-box">
|
123 |
|
|
<div class="info-box-title">Methods</div>
|
124 |
|
|
<div class="nav-bar">
|
125 |
|
|
<a href="#sec-description">Description</a> |
|
126 |
|
|
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
|
127 |
|
|
<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
|
128 |
|
|
|
129 |
|
|
</div>
|
130 |
|
|
<div class="info-box-body">
|
131 |
|
|
<A NAME='method_detail'></A>
|
132 |
|
|
<a name="methodget_error_msg" id="get_error_msg"><!-- --></a>
|
133 |
|
|
<div class="oddrow">
|
134 |
|
|
|
135 |
|
|
<div class="method-header">
|
136 |
|
|
<span class="method-title">get_error_msg</span> (line <span class="line-number">96</span>)
|
137 |
|
|
</div>
|
138 |
|
|
|
139 |
|
|
<!-- ========== Info from phpDoc block ========= -->
|
140 |
|
|
<p class="short-description">This returns the appropriate error message based on the error #.</p>
|
141 |
|
|
<ul class="tags">
|
142 |
|
|
<li><span class="field">return:</span> - the error string.</li>
|
143 |
|
|
</ul>
|
144 |
|
|
|
145 |
|
|
<div class="method-signature">
|
146 |
|
|
<span class="method-result">string</span>
|
147 |
|
|
<span class="method-name">
|
148 |
|
|
get_error_msg
|
149 |
|
|
</span>
|
150 |
|
|
(<span class="var-type">string</span> <span class="var-name">$err</span>)
|
151 |
|
|
</div>
|
152 |
|
|
|
153 |
|
|
<ul class="parameters">
|
154 |
|
|
<li>
|
155 |
|
|
<span class="var-type">string</span>
|
156 |
|
|
<span class="var-name">$err</span><span class="var-description">: - the error code</span> </li>
|
157 |
|
|
</ul>
|
158 |
|
|
|
159 |
|
|
|
160 |
|
|
</div>
|
161 |
|
|
|
162 |
|
|
</div>
|
163 |
|
|
</div>
|
164 |
|
|
|
165 |
|
|
|
166 |
|
|
<p class="notes" id="credit">
|
167 |
|
|
Documentation generated on Thu, 1 Apr 2004 09:38:52 -0800 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC2</a>
|
168 |
|
|
</p>
|
169 |
|
|
</div></body>
|
170 |
|
|
</html>
|