Source for file form_field_integer_positive.class.php
Documentation is available at form_field_integer_positive.class.php
// *** Tangra (Application Framework and Tools for PHP)
* Contains class Form_Field_Integer_Positive
require_once(TANGRA_MAIN_DIR. 'form/fields/integer/form_field_integer.class.php');
* Represents text field that accepts positive integer value
* @param string $name Name of the field
* @param boolean $accept_zero Will object zero as valid value?
* @param boolean $required Is field required. Default is false
* @param integer $maxlength Maximum length of the text. Default is 100
* @param integer $value Default value.
function __construct($name, $accept_zero = false, $required = false, $maxlength = 100, $value = NULL) {
parent::__construct($name, $required, $maxlength, $value);
* Returns true if accepts zero as valid value
* Performs basic check for validity
* Returns array with field properties
$ret = parent::get_properties_array();
|