<?xml version="1.0"?><phpdoc><class name="Bs_Finance" extends="Bs_Object" undoc="false" access="private" package="util"><file>C:/usr/local/lib/php/blueshoes-4.2/core/util/Bs_Finance.class.php</file><doc><author>Andrej Arn &amp;lt;andrej at blueshoes dot org&amp;gt;</author><inherited src="Array"/><description>no dependencies here yet.</description><shortdescription>This static class provides some useful finance functions.</shortdescription><version>4.0.$id$</version><copyright>blueshoes.org</copyright></doc><function name="toPrice" undoc="false" access="public"><doc><parameter name="$price" default="0" type="integer">the number to be converted into a &amp;apos;price&amp;apos;</parameter><parameter name="$centsSeparateChar" type="string" undoc="true"/><parameter name="$thousandsSeparateChar" type="string" undoc="true"/><return name="" type="string"/><description/><shortdescription>returns a number formatted as a price, eg 45115 -&amp;gt; 451.15</shortdescription></doc></function><function name="toPercent" undoc="false" access="public"><doc><parameter name="$number" default="0" type="integer">the number to be converted into a &amp;apos;price&amp;apos;</parameter><parameter name="$separateChar" default="&amp;apos;.&amp;apos;" type="string">the % string that is attached to the new number. eg &amp;quot;5.35&amp;quot; -&amp;gt; &amp;quot;5.35%&amp;quot;. default is &amp;apos;%&amp;apos;.</parameter><parameter name="$percentSign" type="string" undoc="true"/><return name="" type="string"/><description/><shortdescription>returns a percent value, eg 650 -&amp;gt; 6.50%</shortdescription></doc></function><function name="ccVal" undoc="false" access="public"><doc><parameter name="$Num" type="string">the card number</parameter><parameter name="$Name" default="&amp;apos;n/a&amp;apos;" type="string">the short form of the cart type (n/a, mcd, vis, amx, dsc, dsc, dnc, jcb) default is &amp;apos;n/a&amp;apos;.</parameter><return name="" type="bool"/><description>This function accepts a credit card number and, optionally, a code fora credit card name. If a Name code is specified, the number is checkedagainst card-specific criteria, then validated with the Luhn Mod 10formula. Otherwise it is only checked against the formula. Valid namecodes are:mcd - Master Cardvis - Visaamx - American Expressdsc - Discoverdnc - Diners Clubjcb - JCBCopyright (c) 1999 Holotech Enterprises. All rights reserved.You may freely modify and use this function for your own purposes. Youmay freely distribute it, without modification and with this noticeand entire header intact.A description of the criteria used in this function can be found athttp://www.beachnet.com/~hstiles/cardtype.html. If you have anyquestions or comments, please direct them to ccval@holotech.netmaybe also check http://www.icverify.com/ --andrejthere is also detailed description at http://www.webmasterbase.com/article/728</description><shortdescription>ccVal - Credit Card Validation function.</shortdescription></doc></function><function name="Bs_Finance" undoc="true" access="public"><doc><return type="void"/></doc></function><function name="dispdollars" undoc="true" access="private"><doc><parameter name="$amount" undoc="true"/><parameter name="$style" undoc="true"/><return type="void"/></doc></function><constant name="BS_FINANCE_VERSION" undoc="true" access="private" case="default: case sensitive">4.0.$x$<doc></doc></constant><inherited src="Bs_Object" type="functions"><element>isex</element><element>isexception</element><element>tostring</element><element>tohtml</element><element>persist</element><element>unpersist</element><element>bs_object</element><element>bbsetoutput</element><element>bbawake</element><element>bbisawake</element><element>bbxmsg</element><element>bbxfunctionstart</element><element>bbxfunctionend</element><element>bbxecho</element><element>bbxvar</element><element>bbxvardump</element><element>bbforcetrace</element><element>bbbufferstart</element><element>bbbufferget</element><element>bbbufferendflush</element><element>bbbufferendclean</element></inherited><inherited src="Bs_Object" type="consts"><element>bs_object_version</element></inherited><path><parent>Bs_Object</parent></path><baseclass>Bs_Object</baseclass></class></phpdoc>