Class Section

Description

A section is a part of a formular. Each section belongs to just one formular so it stores its formular ID.

It contains all values for formfields or textfields.

Located in /classes.php (line 20)


	
			
Variable Summary
mixed $appearance
mixed $data_type
mixed $debug
mixed $field
mixed $form_id
mixed $id
mixed $label
mixed $my_sql
mixed $position
mixed $table
mixed $text
Method Summary
Section Section ()
void addEnumeration (stringarray $enumerations)
void createSection (int $sec_form_id, int $sec_position)
void deleteSection ()
void getValues ()
void isText ()
void loadSection (int $sec_id)
void setFormField (char $sec_data_type, string $sec_label, string $sec_appearance, string $sec_table, string $sec_field)
void setPosition (mixed $pos)
void setTextField (mixed $sec_text)
void updateDB ()
Variables
mixed $appearance (line 33)
mixed $data_type (line 31)
mixed $debug (line 28)
mixed $enumerations (line 36)
mixed $field (line 35)
mixed $form_id (line 25)
mixed $id (line 24)
mixed $label (line 32)
mixed $my_sql (line 27)
mixed $position (line 26)
mixed $table (line 34)
mixed $text (line 39)
Methods
Constructor Section (line 47)

Section constructor

Constructor - just allows us to enable or disable the debugging output

Section Section ()
addEnumeration (line 274)

Adds enumertions to this section, creates table if necessary

void addEnumeration (stringarray $enumerations)
  • stringarray $enumerations: Enumarations we want to add
createSection (line 58)

Creates a section for a certain form at a certain position

void createSection (int $sec_form_id, int $sec_position)
  • int $sec_form_id: sec_form_id ID of the form we're working on
  • int $sec_position: sec_position position of the section we're working on
deleteEnumeration (line 319)

deletes the enumeration of this section

void deleteEnumeration ()
deleteSection (line 229)

Deletes a section together with its enumeration

void deleteSection ()
getValues (line 159)

Returns the values of this sections in an array with:

id,form_id,data_type,lavel,appearance,position,text,table,field and enumerations

void getValues ()
isText (line 149)

Returns if this is a textfield

void isText ()
loadEnumerations (line 251)

Loads the enumeration for this section

void loadEnumerations ()
loadSection (line 83)

loads a section with a certain section ID

void loadSection (int $sec_id)
  • int $sec_id: sec_id ID of the section that should be loaded
setFormField (line 122)

Sets the parameters for a formfield

void setFormField (char $sec_data_type, string $sec_label, string $sec_appearance, string $sec_table, string $sec_field)
  • char $sec_data_type: sec_data_type datatype of the formfield in ADODB notation (single char)
  • string $sec_label: sec_label Label of the formfield
  • string $sec_appearance: sec_appearance Appearance of the Form field (textbox, textarea, radiobutton, dropdownmenu, checkbox)
  • string $sec_table: sec_table Name of the table
  • string $sec_field: sec_field Name of the field
setPosition (line 182)

Adjusts the position

void setPosition (mixed $pos)
setTextField (line 141)

Sets the parameter for a textfield

void setTextField (mixed $sec_text)
updateDB (line 190)

Updates the DB with the values of this section

void updateDB ()

Documentation generated on Thu, 15 Jul 2004 08:23:55 +0200 by phpDocumentor 1.3.0RC3