forms
[ class tree: forms ] [ index: forms ] [ all elements ]

Class: DBTfillingForm

Source Location: /forms/DBTfillingForm.class.php

Class Overview

ABSTObject
   |
   --ABSTHTMLTag
      |
      --HTMLForm
         |
         --DBTfillingForm

A class to generate forms to put data in a databasetable.


Author(s):

Version:

  • 0.2.5

Copyright:

  • Copyright (C) 2003 Daniel Plücken <daniel@debakel.net>

    This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

    This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Variables

Methods


Inherited Variables

Inherited Methods

Class: HTMLForm

HTMLForm::HTMLForm()
Constructor
HTMLForm::addDummyItem()
Adds dummy-form-item to this object. It doesn't apear on the website.
HTMLForm::addFormBodyText()
Adds text into the form.
HTMLForm::addFormItem()
Adds references of form-items to this object.
HTMLForm::addHiddenFormItem()
Adds hidden-form-items to this object.
HTMLForm::changeHiddenFormItem()
Changes the value of the hidden form item with the given namen.
HTMLForm::disable()
Disables all formitems. This function is an alias for the function disableAllFormItems()
HTMLForm::disableAllFormItems()
Disables all formitems.
HTMLForm::get()
Returns a generated string based on the Attributes of this HTML-Object.
HTMLForm::getFieldsAndValues()
Returns the fieldnames and values of the form by a two dimensional array.
HTMLForm::getFormInTag()
Builds the tag to introduce the html form.
HTMLForm::getFormItemCount()
Returns the count of items of this form.
HTMLForm::getItemPHPSource()
Generates the sourcecode to build this object and returns it.
HTMLForm::getJScheckData()
Returns a javascript to validate the input of the form.
HTMLForm::getMethod()
Returns the method-attribute of this form.
HTMLForm::getName()
Returns the name of this form.
HTMLForm::getPHPSource()
Generates the sourcecode to build this object and returns it.
HTMLForm::getRightRequestData()
Returns raw data from a given request variable; Removes escapings if magic quotes is enabled.
HTMLForm::getSubmitOrder()
Returns the javascript that should execute on form submit.
HTMLForm::getTargetFile()
Returns the action-attribute of this form.
HTMLForm::isFormItem()
Adds references of form-items to this object.
HTMLForm::overrideWholeFormBody()
Overides the body of the form with the given custom string.
HTMLForm::removeHiddenFormItem()
Removes the hidden item with the given name.
HTMLForm::setDisabled()
Disables all formitems. This function is an alias for the function disableAllFormItems()
HTMLForm::setFormBody()
Builds the content of this Form andstores it in the attribute form_body.
HTMLForm::setJSerrorMessage()
Sets the javascript error message that appears if user information is missing.
HTMLForm::setLayoutString()
Adds the string by dint of the form should be formatted.
HTMLForm::setLayoutTable()
Adds the table by dint of the form should be formatted.
HTMLForm::setMethod()
Sets the method, how the data should be send; POST or GET.
HTMLForm::setName()
Sets the name of this form.
HTMLForm::setNoFormat()
Stores that the HTML-elements should not format by "\r\n" in the source.
HTMLForm::setSubmitOrder()
Sets the javascript that should execute on submit.
HTMLForm::setTargetFile()
Sets the target script of the data; The "action"-attribute.
HTMLForm::setTargetFrame()
Sets the target frame where the target script should appear; The "target"-attribute.

Class: ABSTHTMLTag

ABSTHTMLTag::getId()
Returns the value of this tag's "id"-attribute.
ABSTHTMLTag::getName()
Returns the value of this tag's "name"-attribute.
ABSTHTMLTag::HTMLTag()
The Constructor let the script die, cause this is an abstract class!
ABSTHTMLTag::idExists()
Stores all used ids and makes sure that every id in the document is unique. It should called in every get method of classes in the packages forms and html.
ABSTHTMLTag::setAttributes()
This method allows to set the attributes of the tag that are not handled by other methods.
ABSTHTMLTag::setFreeStyle()
Set the value of style definitions that are not handled by implemented methods.
ABSTHTMLTag::setId()
Stores the value of this item's "id"-attribute.
ABSTHTMLTag::setName()
Stores the value of this tag's "name"-attribute.
ABSTHTMLTag::setNoFormat()
Stores that the HTML-elements should not format by "\r\n" in the source.
ABSTHTMLTag::setOnBlur()
Sets the value of the blur-attribute of this html-tag.
ABSTHTMLTag::setOnClick()
Sets the value of the click-attribute of this html-tag.
ABSTHTMLTag::setOnFocus()
Sets the value of the focus-attribute of this html-tag.
ABSTHTMLTag::setOnMouseMove()
Sets the value of the mousemove-attribute of this html-tag.
ABSTHTMLTag::setOnMouseOut()
Sets the value of the mouseout-attribute of this html-tag.
ABSTHTMLTag::setOnMouseOver()
Sets the value of the mouseover-attribute of this html-tag.
ABSTHTMLTag::setOnMouseUp()
Sets the value of the mouseup-attribute of this html-tag.
ABSTHTMLTag::setStyle()
Set the value of the class-attribute of this tag.

Class: ABSTObject

ABSTObject::printComplexData()
Prints out the more complex data by the given array.
ABSTObject::printPrimitiveData()
Prints out the primitive data by the given arrays.
ABSTObject::printStructure()
Prints out the Structure of this Object.
ABSTObject::same()
Checks whether the passed object reference points to this object.
ABSTObject::sameReferences()
Compares two references whether they points to the same object

Class Details

[line 49]
A class to generate forms to put data in a databasetable.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  0.2.5
copyright:  

Copyright (C) 2003 Daniel Plücken <daniel@debakel.net>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

since:  0.4.0.2
license:  GNU Lesser General Public License


[ Top ]


Class Variables

$dbt_obj =

[line 57]

The reference to the needed Databasetable-Object.



Tags:

var:  access private

Type:   object


[ Top ]

$lastEntryId =

[line 61]


Type:   integer


[ Top ]



Class Methods


constructor DBTfillingForm [line 81]

DBTfillingForm DBTfillingForm( &$dbt_obj, [string $name = "DP_Form"], [string $onSubmitOrder = ""], [string $targetFile = ""], [string $method = "POST"], object $dbt_obj)

Constructor



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.0
access:  public


Parameters:

object   $dbt_obj   The reference to the needed Databasetable-Object.
string   $name   The name of the form.
string   $onSubmitOrder   The javascript thatshould be execute before submit.
string   $targetFile   The file that should receive the data.
string   $method   The Method how the data should be send ( "post" or "get" )
   &$dbt_obj  

[ Top ]

method getDatasetsWithFields [line 225]

array getDatasetsWithFields( array $fieldnamesArr, [string $where = ""])

Returns the datasets as an two dimensional array if the query could be execute. The first dimension carries the datasets. The second dimension carries the fields's values of the result list.

Usage: getDatasetsWithFields( $fieldnamesArr, $where ); Or: getDatasetsWithFields( $where );




Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.2
access:  public


Parameters:

array   $fieldnamesArr   The fields that should be in the result list.
string   $where   The where clause of the query.

[ Top ]

method getDBTFieldNames [line 239]

array getDBTFieldNames( )

Returns the table's fieldnames.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.2
access:  public


[ Top ]

method getFieldsAndValues [line 253]

array getFieldsAndValues( )

Returns the fieldnames and values of the form by a two dimensional array.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.5
since:  0.1.4
access:  public


Overrides HTMLForm::getFieldsAndValues() (Returns the fieldnames and values of the form by a two dimensional array.)

[ Top ]

method getPHPSource [line 366]

string getPHPSource( )

Generates the sourcecode to build this object and returns it.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.2
access:  public


Overrides HTMLForm::getPHPSource() (Generates the sourcecode to build this object and returns it.)

[ Top ]

method getSingleDataset [line 201]

array getSingleDataset( string $where)

Returns a single dataset as an array if the query could be execute.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.4
access:  public


Parameters:

string   $where  

[ Top ]

method insertIntoDBT [line 310]

integer|boolean insertIntoDBT( )

Inserts a Dataset into the specified database's table.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.2
since:  0.1.4
access:  public


[ Top ]

method replaceIntoDBT [line 338]

mixed replaceIntoDBT( )

Replaces a Dataset into the specified database's table.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.2.5
access:  public


[ Top ]

method setupDBT [line 109]

void setupDBT( )

Sets up the databasetable by using the information of the form.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.7
access:  public


[ Top ]

method updateDBT [line 271]

mixed updateDBT( [$where $where = ""])

Updates the gotten Dataset.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.3
since:  0.1.4
access:  public


Parameters:

$where   $where   The where-definition to the dataset.

[ Top ]


Documentation generated on Thu, 05 Jun 2008 19:11:09 +0200 by phpDocumentor 1.4.1