cvs: peardoc /en/package/validate validate_fi.xml /en/package/validate/validate_fi intro.xml /en/package/validate/validate_fi/validate_fi
bankaccount.xml bikelicenseplate.xml businessid.xml carlicenseplate.xml creditcard.xml finuid.xml partyid.xml phonenumber.xml pin.xml postalcode.xml
refnum.xml vatnumber.xml
| From: | Jani Mikkonen | Date: | Fri, 01 Jun 2007 10:32:54 +0000 |
| Subject: | cvs: peardoc /en/package/validate validate_fi.xml /en/package/validate/validate_fi intro.xml /en/package/validate/validate_fi/validate_fi bankaccount.xml bikelicenseplate.xml businessid.xml carlicenseplate.xml creditcard.xml finuid.xml partyid.xml phonenumber.xml pin.xml postalcode.xml refnum.xml vatnumber.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9747@lists.php.net to get a copy of this message | ||
janisto Fri Jun 1 10:32:54 2007 UTC
Added files:
/peardoc/en/package/validate validate_fi.xml
/peardoc/en/package/validate/validate_fi intro.xml
/peardoc/en/package/validate/validate_fi/validate_fi
bankaccount.xml
bikelicenseplate.xml
businessid.xml
carlicenseplate.xml
creditcard.xml
finuid.xml
partyid.xml
phonenumber.xml
pin.xml
postalcode.xml
refnum.xml
vatnumber.xml
Log:
Initial commit
http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi.xml +++ peardoc/en/package/validate/validate_fi.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: validate_fi.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <sect1 id="package.validate.validate-fi"> <title>Validate_FI</title> <para> Specific validation methods for data used in Finland. </para> <para> See also: <itemizedlist> <listitem> <para> <ulink url="http://pear.php.net/package/Validate_FI/docs/latest/">Latest auto-generated API documentation</ulink> </para> </listitem> <listitem> <para> <ulink url="http://pear.php.net/package/Validate_FI/">Package information on pear.php.net</ulink> </para> </listitem> </itemizedlist> </para> &package.validate.validate-fi.intro; &package.validate.validate-fi.validate-fi.postalcode; &package.validate.validate-fi.validate-fi.phonenumber; &package.validate.validate-fi.validate-fi.carlicenseplate; &package.validate.validate-fi.validate-fi.bikelicenseplate; &package.validate.validate-fi.validate-fi.pin; &package.validate.validate-fi.validate-fi.finuid; &package.validate.validate-fi.validate-fi.businessid; &package.validate.validate-fi.validate-fi.partyid; &package.validate.validate-fi.validate-fi.vatnumber; &package.validate.validate-fi.validate-fi.bankaccount; &package.validate.validate-fi.validate-fi.refnum; &package.validate.validate-fi.validate-fi.creditcard; </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/intro.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/intro.xml +++ peardoc/en/package/validate/validate_fi/intro.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: intro.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>introduction to Validate_FI</refpurpose> </refnamediv> <refsect1 id="package.validate.validate-fi.intro.desc"> &title.desc; <para> Specific validation methods for data used in Finland. </para> </refsect1> <refsect1 id="package.validate.validate-fi.intro.usage"> <title>Usage</title> <refsect2 id="package.validate.validate-fi.intro.usage.general"> <title>General usage</title> <para> Every module of Validate follows the same philosophy. Propose some validation method which returns a boolean result. </para> <para> Some methods have some optional parameters to set stronger checks. </para> </refsect2> <refsect2 id="package.validate.validate-fi.intro.usage.sample"> <title>Sample using <function>phoneNumber</function></title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; // Validate Finnish telephone number $phoneNumber = '+358 40 1234567'; if ( Validate_FI::phoneNumber($phoneNumber) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> <para> Output: </para> <screen> <computeroutput> Valid </computeroutput> </screen> </refsect2> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/bankaccount.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/bankaccount.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/bankaccount.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: bankaccount.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.bankaccount"> <refnamediv> <refname><function>Validate_FI::bankAccount</function></refname> <refpurpose>Validate Finnish bank account number</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::bankAccount</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.bankaccount.desc"> &title.desc; <para> Validate Finnish bank account number. Format: XXXXXX-XXXXXXXX, 6 digits, - and 2-8 digits. </para> <para> This method checks the bank account number according to Finnish Bank Association. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.bankaccount.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> Finnish bank account number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.bankaccount.returns"> &title.returns; <para> &type.bool; - true if bank account is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.bankaccount.example"> &title.example; <example> <title> Using <function>bankAccount</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $bankAccount = '159030-776'; if ( Validate_FI::bankAccount($bankAccount) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/bikelicenseplate.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/bikelicenseplate.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/bikelicenseplate.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: bikelicenseplate.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.bikelicenseplate"> <refnamediv> <refname><function>Validate_FI::bikeLicensePlate</function></refname> <refpurpose>Validate Finnish motorbike license plate number</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::bikeLicensePlate</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.bikelicenseplate.desc"> &title.desc; <para> Validate Finnish motorbike license plate number. Format: AAAXXX. </para> <para> Where AAA is 2-3 letters UPPERCASE A-Z and XXX is 1-3 numbers. Letters and numbers are actually in separate lines. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.bikelicenseplate.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> The license plate number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.bikelicenseplate.returns"> &title.returns; <para> &type.bool; - true if license plate number is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.bikelicenseplate.example"> &title.example; <example> <title> Using <function>bikeLicensePlate</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $bikeLicensePlate = 'ABC123'; if ( Validate_FI::bikeLicensePlate($bikeLicensePlate) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/businessid.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/businessid.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/businessid.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: businessid.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.businessid"> <refnamediv> <refname><function>Validate_FI::businessId</function></refname> <refpurpose>Validate Finnish Business ID (Y-tunnus)</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::businessId</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.businessid.desc"> &title.desc; <para> Validate Finnish Business ID (Y-tunnus). Format: xxxxxxx-y. </para> <para> The Finnish Business ID number (Y-tunnus) is a 9 digit number. The last digit is a control number (y). </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.businessid.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> Business ID number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.businessid.returns"> &title.returns; <para> &type.bool; - true if Business ID is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.businessid.example"> &title.example; <example> <title> Using <function>businessId</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $businessId = '1572860-0'; if ( Validate_FI::businessId($businessId) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/carlicenseplate.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/carlicenseplate.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/carlicenseplate.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: carlicenseplate.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.carlicenseplate"> <refnamediv> <refname><function>Validate_FI::carLicensePlate</function></refname> <refpurpose>Validate Finnish car license plate number</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::carLicensePlate</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.carlicenseplate.desc"> &title.desc; <para> Validate Finnish car license plate number. Format: AAA-XXX, CD-XXXX or C-XXXXX. </para> <para> AAA-XXX: AAA is 2-3 letters UPPERCASE A-Z and XXX is 1-3 numbers. </para> <para> CD-XXXX: CD- and XXXX is 1-4 numbers (diplomat licence plate). </para> <para> C-XXXXX: C- and XXXXX is 1-5 numbers (other tax-free diplomat licence plate). </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.carlicenseplate.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> The license plate number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.carlicenseplate.returns"> &title.returns; <para> &type.bool; - true if license plate number is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.carlicenseplate.example"> &title.example; <example> <title> Using <function>carLicensePlate</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $carLicensePlate = 'ABC-123'; if ( Validate_FI::carLicensePlate($carLicensePlate) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/creditcard.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/creditcard.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/creditcard.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: creditcard.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.creditcard"> <refnamediv> <refname><function>Validate_FI::creditCard</function></refname> <refpurpose>Validate credit card number</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::creditCard</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.creditcard.desc"> &title.desc; <para> Validate credit card number. </para> <para> This method checks the credit card number according to Luhn algorithm. This method doesn't guarantee that the card is legitimate. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.creditcard.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> credit card number to be validated (spaces and dashes tolerated) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.creditcard.returns"> &title.returns; <para> &type.bool; - true if credit card number is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.creditcard.example"> &title.example; <example> <title> Using <function>creditCard</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $creditCard = '5427 0073 1297 6425'; if ( Validate_FI::creditCard($creditCard) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/finuid.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/finuid.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/finuid.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: finuid.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.finuid"> <refnamediv> <refname><function>Validate_FI::finuid</function></refname> <refpurpose>Validate Finnish Unique Identification Number (SATU)</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::finuid</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.finuid.desc"> &title.desc; <para> Validate Finnish Unique Identification Number (SATU). Format: xxxxxxxxy. </para> <para> FINUID (SATU) is a 9 digit number. The last digit is a control number. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.finuid.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> FINUID number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.finuid.returns"> &title.returns; <para> &type.bool; - true if FINUID is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.finuid.example"> &title.example; <example> <title> Using <function>finuid</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $finuid = '10011187H'; if ( Validate_FI::finuid($finuid) ) {{ print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/partyid.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/partyid.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/partyid.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: partyid.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.partyid"> <refnamediv> <refname><function>Validate_FI::partyId</function></refname> <refpurpose>Validate Finnish Party Identification number (OVT-tunnus)</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::partyId</function> </funcdef> <paramdef> integer <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.partyid.desc"> &title.desc; <para> Validate Finnish Party Identification number (OVT-tunnus). </para> <para> The Finnish Party Identification number (OVT-tunnus) is a 12-17 digit number and it is generated from Business ID. </para> <para> Example: 0037AAAAAAAABBBBB, 0037 indicates Finland, AAAAAAAA is the Business ID and BBBBB is optional organization number. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.partyid.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.int; <parameter>$number</parameter> </term> <listitem> <para> Party Identification number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.partyid.returns"> &title.returns; <para> &type.bool; - true if number is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.partyid.example"> &title.example; <example> <title> Using <function>partyId</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $partyId = '003715728600'; if ( Validate_FI::partyId($partyId) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/phonenumber.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/phonenumber.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/phonenumber.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: phonenumber.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.phonenumber"> <refnamediv> <refname><function>Validate_FI::phoneNumber</function></refname> <refpurpose>Validate Finnish telephone number</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::phoneNumber</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.phonenumber.desc"> &title.desc; <para> Validate Finnish telephone number. </para> <para> Simple check: number must be numeric when (, ), -, +, ., ' ' chars are removed and 3-20 digit number. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.phonenumber.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> The telephone number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.phonenumber.returns"> &title.returns; <para> &type.bool; - true if telephone number is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.phonenumber.example"> &title.example; <example> <title> Using <function>phoneNumber</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $phoneNumber = '+358 40 1234567'; if ( Validate_FI::phoneNumber($phoneNumber) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/pin.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/pin.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/pin.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: pin.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.pin"> <refnamediv> <refname><function>Validate_FI::pin</function></refname> <refpurpose>Validate Personal Identity Number (HETU)</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> mixed <function>Validate_FI::pin</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> <paramdef> bool <parameter><optional>$info</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.pin.desc"> &title.desc; <para> Validate Personal Identity Number (HETU). </para> <para> The Finnish PIN number (HETU) aka Social Security Number (SSN) is a 11 digit number with birthdate as ddmmyycxxxy where c is century, xxx is a three digit individual number and the last digit is a control number (y). </para> <para> If xxx is odd it's a male PIN number and if even a female. </para> <para> Return gender (Male or Female) and date of birth (YYYY-MM-DD) in array if PIN is valid, is available by switching $info (2nd parameter) to true. </para> <para> Example: 010101-123N would be a male and born in 1st of January 1901. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.pin.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> PIN number to be validated </para> </listitem> </varlistentry> <varlistentry> <term> &type.bool; <parameter>$info</parameter> </term> <listitem> <para> optional; Return gender and date of birth on success </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.pin.returns"> &title.returns; <para> &type.mixed; - Returns true or false if $info = false or gender (Male or Female) and date of birth (YYYY-MM-DD) in array if PIN is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.pin.example"> &title.example; <example> <title> Using <function>pin</function> in default mode </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $pin = '010101-123N'; if ( Validate_FI::pin($pin) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> <example> <title> Using <function>pin</function> with <parameter>$info</parameter> = &true; </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once('Validate/FI.php'); $pin = '010101-123N'; if ( $userinfo = Validate_FI::pin($pin, true) ) { print_r($userinfo); } else { print 'Not valid!'; } ?> ]]> </programlisting> <para> Output: </para> <screen> <computeroutput> <![CDATA[ Array ( [0] => Male [1] => 1901-01-01 ) ]]> </computeroutput> </screen> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/postalcode.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/postalcode.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/postalcode.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: postalcode.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.postalcode"> <refnamediv> <refname><function>Validate_FI::postalCode</function></refname> <refpurpose>Validate Finnish postal code</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::postalCode</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> <paramdef> bool <parameter><optional>$strong</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.postalcode.desc"> &title.desc; <para> Validate Finnish postal code. </para> <para> Five digit postal code, maybe with a leading 'FI-' (XXXXX or FI-XXXXX). </para> <para> An optional parameter for activate strong checks using a list of postcodes (not implemented). </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.postalcode.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> The postal code to be validated </para> </listitem> </varlistentry> <varlistentry> <term> &type.bool; <parameter>$strong</parameter> </term> <listitem> <para> optional; strong checks (e.g. against a list of postal codes)(not implemented) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.postalcode.returns"> &title.returns; <para> &type.bool; - true if postal code is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.postalcode.example"> &title.example; <example> <title> Using <function>postalCode</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $postalCode = '00100'; if ( Validate_FI::postalCode($postalCode) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/refnum.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/refnum.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/refnum.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: refnum.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.refnum"> <refnamediv> <refname><function>Validate_FI::refNum</function></refname> <refpurpose>Validate Finnish bank reference number</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::refNum</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.refnum.desc"> &title.desc; <para> Validate Finnish bank reference number. </para> <para> This method checks the bank reference number according to Finnish Bank Association. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.refnum.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> Finnish bank reference number to be validated (spaces and dashes tolerated) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.refnum.returns"> &title.returns; <para> &type.bool; - true if reference number is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.refnum.example"> &title.example; <example> <title> Using <function>refNum</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $refNum = '61 74354'; if ( Validate_FI::refNum($refNum) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/vatnumber.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/vatnumber.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/vatnumber.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: vatnumber.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.vatnumber"> <refnamediv> <refname><function>Validate_FI::vatNumber</function></refname> <refpurpose>Validate Finnish Value Added Tax number (ALV-numero)</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::vatNumber</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.vatnumber.desc"> &title.desc; <para> Validate Finnish Value Added Tax number (ALV-numero). Format: FIXXXXXXXX. </para> <para> The Finnish VAT number (ALV-numero) is maximum of 14 digits and is generated from Business ID. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.vatnumber.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> VAT number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.vatnumber.returns"> &title.returns; <para> &type.bool; - true if VAT number is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.vatnumber.example"> &title.example; <example> <title> Using <function>vatNumber</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $vatNumber = 'FI15728600'; if ( Validate_FI::vatNumber($vatNumber) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi.xml +++ peardoc/en/package/validate/validate_fi.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: validate_fi.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <sect1 id="package.validate.validate-fi"> <title>Validate_FI</title> <para> Specific validation methods for data used in Finland. </para> <para> See also: <itemizedlist> <listitem> <para> <ulink url="http://pear.php.net/package/Validate_FI/docs/latest/">Latest auto-generated API documentation</ulink> </para> </listitem> <listitem> <para> <ulink url="http://pear.php.net/package/Validate_FI/">Package information on pear.php.net</ulink> </para> </listitem> </itemizedlist> </para> &package.validate.validate-fi.intro; &package.validate.validate-fi.validate-fi.postalcode; &package.validate.validate-fi.validate-fi.phonenumber; &package.validate.validate-fi.validate-fi.carlicenseplate; &package.validate.validate-fi.validate-fi.bikelicenseplate; &package.validate.validate-fi.validate-fi.pin; &package.validate.validate-fi.validate-fi.finuid; &package.validate.validate-fi.validate-fi.businessid; &package.validate.validate-fi.validate-fi.partyid; &package.validate.validate-fi.validate-fi.vatnumber; &package.validate.validate-fi.validate-fi.bankaccount; &package.validate.validate-fi.validate-fi.refnum; &package.validate.validate-fi.validate-fi.creditcard; </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/intro.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/intro.xml +++ peardoc/en/package/validate/validate_fi/intro.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: intro.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>introduction to Validate_FI</refpurpose> </refnamediv> <refsect1 id="package.validate.validate-fi.intro.desc"> &title.desc; <para> Specific validation methods for data used in Finland. </para> </refsect1> <refsect1 id="package.validate.validate-fi.intro.usage"> <title>Usage</title> <refsect2 id="package.validate.validate-fi.intro.usage.general"> <title>General usage</title> <para> Every module of Validate follows the same philosophy. Propose some validation method which returns a boolean result. </para> <para> Some methods have some optional parameters to set stronger checks. </para> </refsect2> <refsect2 id="package.validate.validate-fi.intro.usage.sample"> <title>Sample using <function>phoneNumber</function></title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; // Validate Finnish telephone number $phoneNumber = '+358 40 1234567'; if ( Validate_FI::phoneNumber($phoneNumber) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> <para> Output: </para> <screen> <computeroutput> Valid </computeroutput> </screen> </refsect2> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/bankaccount.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/bankaccount.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/bankaccount.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: bankaccount.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.bankaccount"> <refnamediv> <refname><function>Validate_FI::bankAccount</function></refname> <refpurpose>Validate Finnish bank account number</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::bankAccount</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.bankaccount.desc"> &title.desc; <para> Validate Finnish bank account number. Format: XXXXXX-XXXXXXXX, 6 digits, - and 2-8 digits. </para> <para> This method checks the bank account number according to Finnish Bank Association. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.bankaccount.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> Finnish bank account number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.bankaccount.returns"> &title.returns; <para> &type.bool; - true if bank account is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.bankaccount.example"> &title.example; <example> <title> Using <function>bankAccount</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $bankAccount = '159030-776'; if ( Validate_FI::bankAccount($bankAccount) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/bikelicenseplate.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/bikelicenseplate.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/bikelicenseplate.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: bikelicenseplate.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.bikelicenseplate"> <refnamediv> <refname><function>Validate_FI::bikeLicensePlate</function></refname> <refpurpose>Validate Finnish motorbike license plate number</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::bikeLicensePlate</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.bikelicenseplate.desc"> &title.desc; <para> Validate Finnish motorbike license plate number. Format: AAAXXX. </para> <para> Where AAA is 2-3 letters UPPERCASE A-Z and XXX is 1-3 numbers. Letters and numbers are actually in separate lines. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.bikelicenseplate.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> The license plate number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.bikelicenseplate.returns"> &title.returns; <para> &type.bool; - true if license plate number is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.bikelicenseplate.example"> &title.example; <example> <title> Using <function>bikeLicensePlate</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $bikeLicensePlate = 'ABC123'; if ( Validate_FI::bikeLicensePlate($bikeLicensePlate) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/businessid.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/businessid.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/businessid.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: businessid.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.businessid"> <refnamediv> <refname><function>Validate_FI::businessId</function></refname> <refpurpose>Validate Finnish Business ID (Y-tunnus)</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::businessId</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.businessid.desc"> &title.desc; <para> Validate Finnish Business ID (Y-tunnus). Format: xxxxxxx-y. </para> <para> The Finnish Business ID number (Y-tunnus) is a 9 digit number. The last digit is a control number (y). </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.businessid.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> Business ID number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.businessid.returns"> &title.returns; <para> &type.bool; - true if Business ID is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.businessid.example"> &title.example; <example> <title> Using <function>businessId</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $businessId = '1572860-0'; if ( Validate_FI::businessId($businessId) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/carlicenseplate.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/carlicenseplate.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/carlicenseplate.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: carlicenseplate.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.carlicenseplate"> <refnamediv> <refname><function>Validate_FI::carLicensePlate</function></refname> <refpurpose>Validate Finnish car license plate number</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::carLicensePlate</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.carlicenseplate.desc"> &title.desc; <para> Validate Finnish car license plate number. Format: AAA-XXX, CD-XXXX or C-XXXXX. </para> <para> AAA-XXX: AAA is 2-3 letters UPPERCASE A-Z and XXX is 1-3 numbers. </para> <para> CD-XXXX: CD- and XXXX is 1-4 numbers (diplomat licence plate). </para> <para> C-XXXXX: C- and XXXXX is 1-5 numbers (other tax-free diplomat licence plate). </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.carlicenseplate.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> The license plate number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.carlicenseplate.returns"> &title.returns; <para> &type.bool; - true if license plate number is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.carlicenseplate.example"> &title.example; <example> <title> Using <function>carLicensePlate</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $carLicensePlate = 'ABC-123'; if ( Validate_FI::carLicensePlate($carLicensePlate) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/creditcard.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/creditcard.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/creditcard.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: creditcard.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.creditcard"> <refnamediv> <refname><function>Validate_FI::creditCard</function></refname> <refpurpose>Validate credit card number</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::creditCard</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.creditcard.desc"> &title.desc; <para> Validate credit card number. </para> <para> This method checks the credit card number according to Luhn algorithm. This method doesn't guarantee that the card is legitimate. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.creditcard.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> credit card number to be validated (spaces and dashes tolerated) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.creditcard.returns"> &title.returns; <para> &type.bool; - true if credit card number is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.creditcard.example"> &title.example; <example> <title> Using <function>creditCard</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $creditCard = '5427 0073 1297 6425'; if ( Validate_FI::creditCard($creditCard) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/finuid.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/finuid.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/finuid.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: finuid.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.finuid"> <refnamediv> <refname><function>Validate_FI::finuid</function></refname> <refpurpose>Validate Finnish Unique Identification Number (SATU)</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::finuid</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.finuid.desc"> &title.desc; <para> Validate Finnish Unique Identification Number (SATU). Format: xxxxxxxxy. </para> <para> FINUID (SATU) is a 9 digit number. The last digit is a control number. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.finuid.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> FINUID number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.finuid.returns"> &title.returns; <para> &type.bool; - true if FINUID is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.finuid.example"> &title.example; <example> <title> Using <function>finuid</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $finuid = '10011187H'; if ( Validate_FI::finuid($finuid) ) {{ print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/partyid.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/partyid.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/partyid.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: partyid.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.partyid"> <refnamediv> <refname><function>Validate_FI::partyId</function></refname> <refpurpose>Validate Finnish Party Identification number (OVT-tunnus)</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::partyId</function> </funcdef> <paramdef> integer <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.partyid.desc"> &title.desc; <para> Validate Finnish Party Identification number (OVT-tunnus). </para> <para> The Finnish Party Identification number (OVT-tunnus) is a 12-17 digit number and it is generated from Business ID. </para> <para> Example: 0037AAAAAAAABBBBB, 0037 indicates Finland, AAAAAAAA is the Business ID and BBBBB is optional organization number. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.partyid.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.int; <parameter>$number</parameter> </term> <listitem> <para> Party Identification number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.partyid.returns"> &title.returns; <para> &type.bool; - true if number is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.partyid.example"> &title.example; <example> <title> Using <function>partyId</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $partyId = '003715728600'; if ( Validate_FI::partyId($partyId) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/phonenumber.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/phonenumber.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/phonenumber.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: phonenumber.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.phonenumber"> <refnamediv> <refname><function>Validate_FI::phoneNumber</function></refname> <refpurpose>Validate Finnish telephone number</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::phoneNumber</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.phonenumber.desc"> &title.desc; <para> Validate Finnish telephone number. </para> <para> Simple check: number must be numeric when (, ), -, +, ., ' ' chars are removed and 3-20 digit number. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.phonenumber.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> The telephone number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.phonenumber.returns"> &title.returns; <para> &type.bool; - true if telephone number is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.phonenumber.example"> &title.example; <example> <title> Using <function>phoneNumber</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $phoneNumber = '+358 40 1234567'; if ( Validate_FI::phoneNumber($phoneNumber) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/pin.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/pin.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/pin.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: pin.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.pin"> <refnamediv> <refname><function>Validate_FI::pin</function></refname> <refpurpose>Validate Personal Identity Number (HETU)</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> mixed <function>Validate_FI::pin</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> <paramdef> bool <parameter><optional>$info</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.pin.desc"> &title.desc; <para> Validate Personal Identity Number (HETU). </para> <para> The Finnish PIN number (HETU) aka Social Security Number (SSN) is a 11 digit number with birthdate as ddmmyycxxxy where c is century, xxx is a three digit individual number and the last digit is a control number (y). </para> <para> If xxx is odd it's a male PIN number and if even a female. </para> <para> Return gender (Male or Female) and date of birth (YYYY-MM-DD) in array if PIN is valid, is available by switching $info (2nd parameter) to true. </para> <para> Example: 010101-123N would be a male and born in 1st of January 1901. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.pin.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> PIN number to be validated </para> </listitem> </varlistentry> <varlistentry> <term> &type.bool; <parameter>$info</parameter> </term> <listitem> <para> optional; Return gender and date of birth on success </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.pin.returns"> &title.returns; <para> &type.mixed; - Returns true or false if $info = false or gender (Male or Female) and date of birth (YYYY-MM-DD) in array if PIN is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.pin.example"> &title.example; <example> <title> Using <function>pin</function> in default mode </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $pin = '010101-123N'; if ( Validate_FI::pin($pin) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> <example> <title> Using <function>pin</function> with <parameter>$info</parameter> = &true; </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once('Validate/FI.php'); $pin = '010101-123N'; if ( $userinfo = Validate_FI::pin($pin, true) ) { print_r($userinfo); } else { print 'Not valid!'; } ?> ]]> </programlisting> <para> Output: </para> <screen> <computeroutput> <![CDATA[ Array ( [0] => Male [1] => 1901-01-01 ) ]]> </computeroutput> </screen> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/postalcode.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/postalcode.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/postalcode.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: postalcode.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.postalcode"> <refnamediv> <refname><function>Validate_FI::postalCode</function></refname> <refpurpose>Validate Finnish postal code</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::postalCode</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> <paramdef> bool <parameter><optional>$strong</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.postalcode.desc"> &title.desc; <para> Validate Finnish postal code. </para> <para> Five digit postal code, maybe with a leading 'FI-' (XXXXX or FI-XXXXX). </para> <para> An optional parameter for activate strong checks using a list of postcodes (not implemented). </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.postalcode.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> The postal code to be validated </para> </listitem> </varlistentry> <varlistentry> <term> &type.bool; <parameter>$strong</parameter> </term> <listitem> <para> optional; strong checks (e.g. against a list of postal codes)(not implemented) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.postalcode.returns"> &title.returns; <para> &type.bool; - true if postal code is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.postalcode.example"> &title.example; <example> <title> Using <function>postalCode</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $postalCode = '00100'; if ( Validate_FI::postalCode($postalCode) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/refnum.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/refnum.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/refnum.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: refnum.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.refnum"> <refnamediv> <refname><function>Validate_FI::refNum</function></refname> <refpurpose>Validate Finnish bank reference number</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::refNum</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.refnum.desc"> &title.desc; <para> Validate Finnish bank reference number. </para> <para> This method checks the bank reference number according to Finnish Bank Association. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.refnum.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> Finnish bank reference number to be validated (spaces and dashes tolerated) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.refnum.returns"> &title.returns; <para> &type.bool; - true if reference number is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.refnum.example"> &title.example; <example> <title> Using <function>refNum</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $refNum = '61 74354'; if ( Validate_FI::refNum($refNum) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/validate/validate_fi/validate_fi/vatnumber.xml?view=markup&rev=1.1 Index: peardoc/en/package/validate/validate_fi/validate_fi/vatnumber.xml +++ peardoc/en/package/validate/validate_fi/validate_fi/vatnumber.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- $Id: vatnumber.xml,v 1.1 2007/06/01 10:32:54 janisto Exp $ --> <!-- CREDITS: janisto --> <refentry id="package.validate.validate-fi.validate-fi.vatnumber"> <refnamediv> <refname><function>Validate_FI::vatNumber</function></refname> <refpurpose>Validate Finnish Value Added Tax number (ALV-numero)</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Validate/FI.php'; </funcsynopsisinfo> <funcprototype> <funcdef> bool <function>Validate_FI::vatNumber</function> </funcdef> <paramdef> string <parameter>$number</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.validate.validate-fi.validate-fi.vatnumber.desc"> &title.desc; <para> Validate Finnish Value Added Tax number (ALV-numero). Format: FIXXXXXXXX. </para> <para> The Finnish VAT number (ALV-numero) is maximum of 14 digits and is generated from Business ID. </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.vatnumber.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$number</parameter> </term> <listitem> <para> VAT number to be validated </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.vatnumber.returns"> &title.returns; <para> &type.bool; - true if VAT number is valid, false otherwise </para> </refsect1> <refsect1 id="package.validate.validate-fi.validate-fi.vatnumber.example"> &title.example; <example> <title> Using <function>vatNumber</function> </title> <programlisting role="php"> <![CDATA[ <?php // Include the package require_once 'Validate/FI.php'; $vatNumber = 'FI15728600'; if ( Validate_FI::vatNumber($vatNumber) ) { print 'Valid'; } else { print 'Not valid!'; } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->