Class DBLCurrencyField

Description

Field to view/edit currency.

This is almost the same as a DBLNumberField, it only has constructor which sets the DBLNumberField properties to values suitable to display currency.

See constructor description to learn what is special about this field.

Located in /DBLCurrencyField.php (line 19)

DBLField
   |
   --DBLTextField
      |
      --DBLNumberField
         |
         --DBLCurrencyField
Method Summary
DBLCurrencyField DBLCurrencyField (string $name, string $titleTxt, string $titleHTML, int $size, int $maxLen, string $prefix, string $postfix)
Variables
Methods
Constructor DBLCurrencyField (line 41)

Constructor.

The constructor has two extra parameters - prefix and postfix. They are used to construct the crrency format string. Prefix is placed before monetary value, postfix after it.

EXAMPLE 1: For dollars, the prefix would be "$", the postfix "" (empty).

EXAMPLE 2: For euros (textual, not euro sign), the prefix would be "" (empty) and the postfix " EUR".

DBLCurrencyField DBLCurrencyField (string $name, string $titleTxt, string $titleHTML, int $size, int $maxLen, string $prefix, string $postfix)
  • string $name: Name of the field - see DBLField
  • string $titleTxt: Textual title - see DBLField
  • string $titleHTML: HTML title - see DBLField
  • int $size: Size of the widget - see DBLTextField
  • int $maxLen: Maximum length of the text - see DBLTextField
  • string $prefix: Characters to display before currency value (HTML)
  • string $postfix: Characters to display after value (HTML)

Inherited Methods

Inherited From DBLNumberField

DBLNumberField::DBLNumberField()
DBLNumberField::checkValue()
DBLNumberField::formatDetail()
DBLNumberField::formatEdit()
DBLNumberField::formatIndex()
DBLNumberField::jsCheck()

Inherited From DBLTextField

DBLTextField::DBLTextField()
DBLTextField::formatEdit()
DBLTextField::formatFilter()
DBLTextField::formatWidget()

Inherited From DBLField

DBLField::DBLField()
DBLField::acceptFilterValue()
DBLField::acceptValue()
DBLField::addCondition()
DBLField::checkValue()
DBLField::formatDetail()
DBLField::formatEdit()
DBLField::formatFilter()
DBLField::formatIndex()
DBLField::jsCheck()
DBLField::setTitle()
DBLField::splitValue()

Documentation generated on Mon, 6 Sep 2004 21:57:05 +0200 by phpDocumentor 1.2.3