tangra logo
   
[ class tree: tangra_lib ] [ index: tangra_lib ] [ all elements ]
 

Class: Form_Field_Number_NLS

Source Location: /form/fields/number_nls/form_field_number_nls.class.php

Class Form_Field_Number_NLS

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Form_Field_Text

Form_Field_Text::$maxlength

Inherited From Form_Field

Form_Field::$current_errors
Form_Field::$default_value
Form_Field::$html_value
Form_Field::$name
Form_Field::$potential_errors
Form_Field::$required
Form_Field::$type
Form_Field::$value

Inherited From Form_Field_Text

Form_Field_Text::__construct()
Constructor
Form_Field_Text::basic_check()
Performs basic check for validity
Form_Field_Text::get_maxlength()
Returns maximum characters accepted by the field
Form_Field_Text::get_properties_array()
Returns array with field properties
Form_Field_Text::set_maxlength()
Sets amximum characters accepted by the field

Inherited From Form_Field

Form_Field::__construct()
Constructor
Form_Field::accept_submit()
Accepts submit data
Form_Field::add_potential_error()
Adds potential error for the field
Form_Field::basic_check()
Performs basic check for validity
Form_Field::capture_submit()
Captures submit
Form_Field::clear_errors()
Clear current errors
Form_Field::get_default_value()
Returns default value
Form_Field::get_errors()
Return field's current errors
Form_Field::get_html_value()
Returns html_value
Form_Field::get_name()
Returns field name
Form_Field::get_potential_error()
Nonsense function. Candidate for removal
Form_Field::get_properties_array()
Returns array with field properties
Form_Field::get_required()
Returns if the field is required
Form_Field::get_type()
Returns type of the field (class name)
Form_Field::get_value()
Returns field's value
Form_Field::is_field_in_error()
Checks if field is in error
Form_Field::set_default_value()
Sets default value
Form_Field::set_error()
Sets field current error
Form_Field::set_html_value()
Sets html_value
Form_Field::set_name()
Sets field's name
Form_Field::set_required()
Sets will the field be required
Form_Field::set_to_default()
Set field's value to default value
Form_Field::set_value()
Sets field's value
Form_Field::translate_value_html2app()
Transfers data from html_value to value

Inherited From Tangra_Class

Tangra_Class::get_class_name()
Alias of get_class(). Exist because of historical reasons.
Tangra_Class::__set()
Overides PHP built-in method and just throws exception if called. Purpose - to "forbid" autosetting of nonexisting class properties.

[ Top ]
Property Summary
string   $floating_separator   Decimal separator
string   $thousands_separator   Separator for thousands

[ Top ]
Method Summary
Form_Field_Number_NLS   __construct()   Constructor
boolean   basic_check()   Performs basic check for validity
unknown   get_decimal_separator()   Alias of get_floating_separator
unknown   get_floating_separator()   Returns decimal separator
string   get_thousands_separator()   Returns thousands separator
void   set_separators()   Sets separators
void   translate_value_html2app()   Transfers data from html_value to value

[ Top ]
Properties
string   $floating_separator [line 45]

Decimal separator

API Tags:
Internal:  
Access:  private


[ Top ]
string   $thousands_separator [line 38]

Separator for thousands

API Tags:
Internal:  
Access:  private


[ Top ]
Methods
Constructor __construct  [line 58]

  Form_Field_Number_NLS __construct( string $name, [boolean $required = false], [integer $maxlength = 100], [string $value = NULL], [string $thousands_separator = ' '], [string $floating_separator = '.']  )

Constructor

Parameters:
string   $name:  Name of the field
boolean   $required:  Is field required. Default is false
integer   $maxlength:  Maximum length of the text. Default is 100
string   $value:  Default value.
string   $thousands_separator:  Separator for thousands
string   $floating_separator:  Decimal separator


Redefinition of:
Form_Field_Text::__construct()
Constructor

[ Top ]
basic_check  [line 128]

  boolean basic_check( )

Performs basic check for validity


API Tags:
Internal:  
Access:  public


Redefinition of:
Form_Field_Text::basic_check()
Performs basic check for validity

[ Top ]
get_decimal_separator  [line 117]

  unknown get_decimal_separator( )

Alias of get_floating_separator


API Tags:
Access:  public


[ Top ]
get_floating_separator  [line 107]

  unknown get_floating_separator( )

Returns decimal separator


API Tags:
Access:  public


[ Top ]
get_thousands_separator  [line 97]

  string get_thousands_separator( )

Returns thousands separator


API Tags:
Access:  public


[ Top ]
set_separators  [line 73]

  void set_separators( string $thousands_separator, string $floating_separator  )

Sets separators

Parameters:
string   $thousands_separator:  Thousands separator
string   $floating_separator:  Decimal separator

API Tags:
Access:  public


[ Top ]
translate_value_html2app  [line 149]

  void translate_value_html2app( )

Transfers data from html_value to value


API Tags:
Internal:  
Access:  protected


Redefinition of:
Form_Field::translate_value_html2app()
Transfers data from html_value to value

[ Top ]