cvs: peardoc /en/package/validate validate_ie.xml /en/package/validate/validate_ie validations.xml
[email protected] ("Ken Guest")
| Newsgroups | php.pear.doc |
|---|---|
| Message-ID | <cvskguest1192842969@cvsserver> |
kguest Sat Oct 20 01:16:09 2007 UTC
Modified files:
/peardoc/en/package/validate validate_ie.xml
/peardoc/en/package/validate/validate_ie validations.xml
Log:
Doc Bug #12286 documentation needs to be updated re 'alpha state' and clarity.
http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_ie.xml?r1=1.3&r2=1.4&diff_format=u
Index: peardoc/en/package/validate/validate_ie.xml
diff -u peardoc/en/package/validate/validate_ie.xml:1.3 peardoc/en/package/validate/validate_ie.xml:1.4
--- peardoc/en/package/validate/validate_ie.xml:1.3 Tue Apr 3 22:08:33 2007
+++ peardoc/en/package/validate/validate_ie.xml Sat Oct 20 01:16:09 2007
@@ -1,23 +1,25 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.3 $ -->
-<!-- $Id: validate_ie.xml,v 1.3 2007/04/03 22:08:33 davidc Exp $ -->
+<!-- $Revision: 1.4 $ -->
+<!-- $Id: validate_ie.xml,v 1.4 2007/10/20 01:16:09 kguest Exp $ -->
<!-- CREDITS: davidc -->
<sect1 id="package.validate.validate-ie">
<title>Validate_IE</title>
<para>
<caution>
<para>
- This package is in alpha state
+ This package is in beta state
</para>
</caution>
Package contains locale validation for Ireland such as:
<orderedlist>
- <listitem><para>Postal Code</para></listitem>
- <listitem><para>Bank Code</para></listitem>
- <listitem><para>SSN/PPSN</para></listitem>
- <listitem><para>Phone Numbers</para></listitem>
+ <listitem><para>Bank Account</para></listitem>
<listitem><para>Drivers Licence Numbers</para></listitem>
+ <listitem><para>IBAN</para></listitem>
<listitem><para>Passport Numbers</para></listitem>
+ <listitem><para>Phone Numbers</para></listitem>
+ <listitem><para>Postal Code</para></listitem>
+ <listitem><para>SSN/PPSN</para></listitem>
+ <listitem><para>SWIFT Codes</para></listitem>
</orderedlist>
</para>
<para>
http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_ie/validations.xml?r1=1.1&r2=1.2&diff_format=u
Index: peardoc/en/package/validate/validate_ie/validations.xml
diff -u peardoc/en/package/validate/validate_ie/validations.xml:1.1 peardoc/en/package/validate/validate_ie/validations.xml:1.2
--- peardoc/en/package/validate/validate_ie/validations.xml:1.1 Tue Apr 3 03:04:52 2007
+++ peardoc/en/package/validate/validate_ie/validations.xml Sat Oct 20 01:16:09 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<!-- $Id $ -->
<!-- package-release: beta -->
<refentry id="package.validate.validate_ie.validations">
@@ -53,25 +53,27 @@
<refsect1 id="package.validate.validate_ie.validations.postcode">
<title>Validate an Irish postcode</title>
<para>
- THERE IS NO POSTAL CODE IN IRELAND (In year 2007 however are suposed to be coming in 2008)
+ There is no national post code system in Ireland; at present the postalCode
+ method only validates Dublin postal districts: "Dublin 6W", or "D 4" for example.
</para>
</refsect1>
<refsect1 id="package.validate.validate_ie.validations.phonenumber">
<title>Validate a phonenumber</title>
<para>
- Ireland has phone numbers that are built similarly than US and Canada however they have
- a couple distinctions that make them proper to themselves.
+ Ireland has phone numbers that are built similar to US and Canadian numbers however they have
+ a couple of distinctions.
</para>
<para>
- For instance Dublin has codes 01 however Cork has 021, Galway 091, and so on.
+ For instance the STD [Standard Trunk Dial] prefix varies in length: Dublin
+ has the code '01', Cork has '021', Galway 091, and so on.
</para>
<para>
- Also allows the formats, (xxx) xxx-xxxx, xxx xxx-xxxx,
- and now x (xxx) xxx-xxxx , xxx-xxx-xxxx, xxx xxx xxxx, xx xxx xxxx
- or various combination without spaces or dashes.
+ The phoneNumber method takes two parameters: the first is the phone number to
+ be tested and the second is a flag indicating whether the number should be
+ checked for a valid prefix. This boolean flag defaults to true.
</para>
<refsect2 id="package.validate.validate_ie.validations.phonenumber.sample">
- <title>sample</title>
+ <title>sample with area code prefix testing on by default.</title>
<para>
<programlisting role="php">
<![CDATA[
@@ -110,7 +112,7 @@
<refsect2 id="package.validate.validate_ie.validations.vat.phonenumber.noprefix">
<title>sample</title>
<para>
- See now with the parameter
+ See now with the requiredAreaCode parameter being utilised.
</para>
<para>
<programlisting role="php">