Class DBLTextField

Description

Class to edit a text field.

This is the simpliest field class. It displays text value and allows user to edit it in an edit (text) widget.

Located in /DBLTextField.php (line 17)

DBLField
   |
   --DBLTextField
Direct descendents
Class Description
DBLPasswordField DBLPasswordField is used to edit passwords stored in the database.
DBLNumberField DBLNumberField is field designed to hold and enter numerical values.
Variable Summary
Method Summary
DBLTextField DBLTextField (string $name, string $titleTxt, string $titleHTML, int $size, int $maxLen)
void formatEdit (mixed $value, mixed &$r, mixed $dataSource, mixed $formName)
void formatFilter (mixed $value, mixed &$r, mixed $formName)
string formatWidget (string $value, bool $useMaxLen, string $attr, int $size)
Variables
Methods
Constructor DBLTextField (line 41)

Constructor.

DBLTextField DBLTextField (string $name, string $titleTxt, string $titleHTML, int $size, int $maxLen)
  • 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 (both editSize and filterSize)
  • int $maxLen: Maximum length of the text (see maxLen property)
formatEdit (line 67)
void formatEdit (mixed $value, mixed &$r, mixed $dataSource, mixed $formName)

Redefinition of:
DBLField::formatEdit()
Format field for record edit form.

Redefined in descendants as:
formatFilter (line 75)
void formatFilter (mixed $value, mixed &$r, mixed $formName)

Redefinition of:
DBLField::formatFilter()
Format field for the filter form.
formatWidget (line 59)

Internal function - format widget.

  • return: Formatted widget (HTML)
string formatWidget (string $value, bool $useMaxLen, string $attr, int $size)
  • string $value: Value to ve in the widget
  • bool $useMaxLen: Whether the widget should have maxlen set
  • string $attr: Additional attributes the widget should have
  • int $size: Size of the widget

Redefined in descendants as:

Inherited Methods

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:18 +0200 by phpDocumentor 1.2.3