Object and Object Method Help


Database Object

Constructor - select - put - get

Form Object

Constructor - addtable - describe - equal - makefields - build - submit - Result

Table Object

Constructor - submit

Field Object

Constructor - SetValue - SetVar - build - GetValue - Result




MySQL Database Object:

Constructor Method

Create this object with the following syntax:

$db = new MySQLDB("DB Name","User Name","Password","Host");
select Method
Sets the database connection as the default.

Use this method with the following syntax:

$db->select()


put Method
Inserts or Updates a table/field in the database.

Use this method with the following syntax:

$db->put("SQL Query")
get Method
Selects a row from a table in the database.

Use this method with the following syntax:

$db->put("SQL Query")


Form Object:

Constructor Method

Create this object with the following syntax:

$form = new Form("Form Name","Title",Action,"Method","Encryption Type","Submit","CSS");
addtable Method
Creates a new Table Class and add's the name to the form's table list.

Use this method with the following syntax:

$form->addtable("DB Object","Table Name","Ignore Fields","Password Fields","Hidden Fields","Table Action","Where Clause","Order Clause","Limit Clause")
describe Method
Sets the descriptions of each form input field.

Use this method with the following syntax:

$form->describe("Field Descriptions");
equal Method
Sets different fields to use the same variable or form input field.

Use this method with the following syntax:

$form->equal("Equal Array");
makefields Method
Compiles a list of all the field objects to be displayed in the form.

Use this method with the following syntax:

$form->makefields();


build Method
Compiles the HTML for a functional database insert/update form.

Use this method with the following syntax:

$form->build("Col1 Width","Col2 Width","Col3 Width","TextBox Rows","TextBox Cols");
submit Method
Enters the submitted form into the database.

Use this method with the following syntax:

$form->submit();


Result Method
Compiles a the HTML Table containing all the submitted and updated values.

Use this method with the following syntax:

$form->Result("Col1 Width","Col2 Width","Col3 Width");


MySQL Table Object:

Constructor Method

Create this object with the following syntax:

$db1 = new MySQLTable("DB Object","Table Name","Ignore Fields","Password Fields","Hidden Fields","Action","Where Clause","Order Clause","Limit Clause");
submit Method
Compiles a the HTML Table containing all the submitted and updated values.

Use this method with the following syntax:

$table->submit("Form Object");


MySQL Table Object:

Constructor Method

Create this object with the following syntax:

$db1 = new MySQLField("Field ID","Name","Type","Null","Key","Default","Extra","Length","Is Password?","Is Hidden?,"Value");
SetValue Method
Updates the field object with a custom value.

Use this method with the following syntax:

$form->SetValue("Value");
SetVar Method
Updates the field object with a custom variable name.

Use this method with the following syntax:

$form->SetVar("Variable Name");
build Method
Compiles the HTML for the specific field object's form input.

Use this method with the following syntax:

$field->build("Description","Col1 Width","Col2 Width","Col3 Width","TextBox Rows","TextBox Cols");
GetValue Method
Updates the field object with the submitted form value.

Use this method with the following syntax:

$form->GetValue();


Result Method
Compiles the HTML to display the specific field object's result.

Use this method with the following syntax:

$field->Result("Description","Col1 Width","Col2 Width","Col3 Width");