Source for file form_field_money_positive.class.php
Documentation is available at form_field_money_positive.class.php
// *** Tangra (Application Framework and Tools for PHP)
* Contains class Form_Field_Money_Positive
require_once(TANGRA_MAIN_DIR. 'form/fields/money/form_field_money.class.php');
* Represents text field that accepts positive money
* @param string $name Name of the field
* @param boolean $required Is field required. Default is false
* @param integer $maxlength Maximum length of the text. Default is 100
* @param string $value Default value
* @param string $thousands_separator Thousands separator
* @param string $floating_separator Decimal separator
function __construct($name, $required = false, $maxlength = 100, $value = NULL, $thousands_separator = ' ', $floating_separator = '.') {
parent::__construct($name, $required, $maxlength, $value, $thousands_separator, $floating_separator);
* Performs basic check for validity
$this->set_error('money_expecting_positive');
|