Class DBLJSListEditor

Description

Utility class which supports editing a list of textual values. It is supposed to be used in a page opened by a DBLJSEditField.

Located in /DBLJSListEditor.php (line 10)


	
			
Variable Summary
int $columns
string $formMethod
string $formName
string $idFieldName
string $myFormName
string $postfix
string $prefix
string $rowSeparator
string $submitURL
string $title
Method Summary
DBLJSListEditor DBLJSListEditor (string $formName, string $fieldName, string $title, int $columns, mixed $columnTitles)
void show (string $value)
Variables
int $columns (line 66)
  • var: Number of columns. Constructor parameter.
string $columnSeparator (line 62)
  • var: Separator of the columns in the list. Defaults to ";".
array $columnTitles (line 70)
  • var: Titles of the columns. Array of strings. Constructor parameter.
string $formMethod (line 44)
  • var: Form method to use. Defaults to GET.
string $formName (line 17)
  • var: Form name in the opener ("parent") window which should be changed. Usually "editFrm", since this is the default form name DBLView uses.
string $idFieldName (line 26)
  • var: Name of the field (on the opener form) where to store selected ID. Defaults to fieldName constructor parameter.
string $myFormName (line 21)
  • var: Form name the selector will use for the form (default "frm").
string $postfix (line 54)
  • var: Postfix to append after the list of values. Defaults to empty string.
string $prefix (line 49)
  • var: Prefix to prepend before list of values. Defaults to empty string.
string $rowSeparator (line 58)
  • var: Separator of the rows in the list. Defaults to "|".
string $submitURL (line 40)
  • var: URL where to submit the form. If set, nothing is changed in the opener form (it may even not exist). Defaults to empty string.
string $textFieldName (line 31)
  • var: Name of the field (on the opener form) where to store selected text. Defaults to $fieldName."_txt".
string $title (line 35)
  • var: Title to be shown above the form (HTML). Constructor parameter.
Methods
Constructor DBLJSListEditor (line 83)

Constructor.

DBLJSListEditor DBLJSListEditor (string $formName, string $fieldName, string $title, int $columns, mixed $columnTitles)
  • string $formName: Name of the opener form. (May be empty for submit mode.)
  • string $fieldName: Name of the field to set in the opener form. (May be empty for submit mode.)
  • string $title: Title of the form table.
  • int $columns: Number of columns (number of elements each row (element of the list) has)
show (line 105)

Output form and all the necessary JavaScript.

void show (string $value)
  • string $value: Value to start with

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