Source for file currencyfield.php
Documentation is available at currencyfield.php
* adaptation of the textfield widget primitive to currency input
* @author Stuart Prescott
* @copyright Copyright Stuart Prescott
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: currencyfield.php,v 1.2 2006/10/23 22:26:28 themill Exp $
* @subpackage FormsLibrary
/** Load ancillary functions */
require_once 'inc/typeinfo.php';
require_once 'textfield.php';
* adaptation of the textfield widget primitive to currency input
* Designed for currency numbers to be edited in a text field widget in the HTML form
* @subpackage FormsLibrary
* Create a new field object, designed to be superclasses
* @param string $name the name of the field (db name, and html field name
* @param string $longname long name to be used in the label of the field in display
* @param string $description used in the html title or longdesc for the field
function CurrencyField($name, $longname=
'', $description=
'', $allowBlanks=
true) {
parent::TextField($name, $longname, $description);
$this->isValidTest =
$allowBlanks ?
'is_cost_amount_or_blank' :
'is_cost_amount';
Documentation generated on Tue, 06 Mar 2007 10:01:10 +0000 by phpDocumentor 1.3.0