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

Class: ABSTHTMLFormItem

Source Location: /forms/items/ABSTHTMLFormItem.class.php

Class Overview

ABSTObject
   |
   --ABSTHTMLTag
      |
      --ABSTHTMLFormItem

An abstract class as base for classes to create form items.


Author(s):

Version:

  • 0.1.71

Copyright:

  • Copyright (c) 2004 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


Child classes:

ABSTHTMLTextInput
A class to generate text input fields.
ColorInput
DateSelect
HTMLButton
Creating HTML-Buttons
HTMLCheckBox
A class to generate checkboxes.
HTMLRadioButton
A class to generate checkboxes.
HTMLRadioGroup
HTMLResetButton
A class to generate a reset button.
HTMLSelect
A class to generate select fields.
HTMLSubmitButton
HTMLTextArea
MultiRelationSelect
A class to generate selects mainly to handle multiple relation between two databasetables.
ResetSubmitButton
A class to create a reset and a buton to submit forms.
SubmitCancelButton
A class to create a reset and a buton to submit forms.

Inherited Variables

Inherited Methods

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 50]
An abstract class as base for classes to create form items.



Tags:

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

Copyright (c) 2004 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

abstract:  
license:  GNU Lesser General Public License


[ Top ]


Class Variables

$enabled =  true

[line 63]



Tags:

access:  public

Type:   boolean


[ Top ]

$label_obj =  null

[line 76]

A reference to a label object, which carries information for this input object.



Tags:

access:  public

Type:   HTMLLabel


[ Top ]

$manipulateable =  true

[line 68]



Tags:

access:  public

Type:   boolean


[ Top ]

$parentform =  null

[line 83]

A reference to the form that contains this input object.



Tags:

access:  private

Type:   object


[ Top ]

$value =  ""

[line 58]

The value of the "value"-attribute of this form item object.



Tags:

access:  public

Type:   string


[ Top ]



Class Methods


method addValue [line 129]

void addValue( void $string)

Concats the given string to the value of this item's "value"-attribute.



Tags:

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


Parameters:

void   $string  

[ Top ]

method disable [line 171]

void disable( )

Disables this item. This method is an alias for the method setDisabled().



Tags:

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


[ Top ]

method enable [line 199]

void enable( )

Enables this item. This method is an alias for the method setDisabled().



Tags:

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


[ Top ]

method getCheckOrder [line 278]

string getCheckOrder( )

Blind method cause other objects will invoke it.



Tags:

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


Overridden in child classes as:

ABSTHTMLTextInput::getCheckOrder()
Returns an if-order of a javascript to check whether this item is NOT filled
NumberTextInput::getCheckOrder()
Returns an if-order of a javascript to check whether this item is NOT filled
URLTextInput::getCheckOrder()
Returns an if-order of a javascript to check whether this item is NOT filled
ColorInput::getCheckOrder()
Returns an if-order of a javascript to check whether this item is NOT filled
HTMLButton::getCheckOrder()
Blind method cause other objects will invoke it.
HTMLCheckBox::getCheckOrder()
Returns an if-order of a javascript to check whether this item is NOT filled
HTMLRadioButton::getCheckOrder()
Returns an if-order of a javascript to check whether this item is NOT filled
HTMLRadioGroup::getCheckOrder()
Returns an if-order of a javascript to check whether this item is NOT filled
HTMLSelect::getCheckOrder()
Returns an if-order of a javascript to check whether this item is NOT filled
HTMLSubmitButton::getCheckOrder()
Blind method cause other objects will invoke it.
HTMLTextArea::getCheckOrder()
Returns an if-order of a javascript to check whether this item is NOT filled
ResetSubmitButton::getCheckOrder()
Blind method cause other objects will invoke it.
SubmitCancelButton::getCheckOrder()
Blind method cause other objects will invoke it.

[ Top ]

method getLabel [line 307]

string getLabel( )

Returns the label to the extended extended underlying form component as string.



Tags:

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


[ Top ]

method getValidationOrder [line 292]

string getValidationOrder( )

Blind method cause other objects will invoke it.



Tags:

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


Overridden in child classes as:

BirthdayDateTextInput::getValidationOrder()
Returns a javascript to check if the given value is valid for this kind of input.
EMailTextInput::getValidationOrder()
Returns an if-order of a javascript to check whether the value of this item has the correct format.
NumberTextInput::getValidationOrder()
Returns an if-order of a javascript to check whether the value of this item has the correct format.
URLTextInput::getValidationOrder()
Returns an if-order of a javascript to check whether the value of this item has the correct format.
HTMLButton::getValidationOrder()
Blind method cause other objects will invoke it.
HTMLSubmitButton::getValidationOrder()
Blind method cause other objects will invoke it.
ResetSubmitButton::getValidationOrder()
Blind method cause other objects will invoke it.
SubmitCancelButton::getValidationOrder()
Blind method cause other objects will invoke it.

[ Top ]

method getValue [line 143]

string getValue( )

Returns the value of this item's "value"-attribute.



Tags:

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


Overridden in child classes as:

ColorInput::getValue()
Returns the value of textfield tag's "value"-attribute.

[ Top ]

method HTMLFormItem [line 96]

void HTMLFormItem( )

Constructor



Tags:

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


[ Top ]

method setDisabled [line 157]

void setDisabled( )

Disables this item.



Tags:

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


[ Top ]

method setEnabled [line 185]

void setEnabled( )

Enables this item.



Tags:

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


[ Top ]

method setLabel [line 264]

void setLabel( object &$lab_obj)

Stores the given label object to the extended underlying form component.



Tags:

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


Overridden in child classes as:

HTMLCheckBox::setLabel()
Sets the label of this checkbox.
HTMLRadioButton::setLabel()
Sets the label of this checkbox.

Parameters:

object   &$lab_obj  

[ Top ]

method setManipulateable [line 231]

void setManipulateable( )

Makes sure that this item is manipulateable by the user.



Tags:

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


[ Top ]

method setNotManipulateable [line 214]

void setNotManipulateable( )

Makes sure that this item is not manipulateable by the user, but carrys the value trough the form.



Tags:

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


[ Top ]

method setParentForm [line 249]

void setParentForm( object &$formobj)

Stores a reference to the form-object that contains this item-object.



Tags:

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


Overridden in child classes as:

ColorInput::setParentForm()
Stores a reference to the form-object that contains this item-object.
ResetSubmitButton::setParentForm()
Returns the name of the submit button.
SubmitCancelButton::setParentForm()
Sets the "parentform"-attribute of both buttons.

Parameters:

object   &$formobj  

[ Top ]

method setValue [line 115]

void setValue( void $string)

Stores the value of this item's "value"-attribute.



Tags:

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


Overridden in child classes as:

ColorInput::setValue()
Sets the value of textfield tag's "value"-attribute.

Parameters:

void   $string  

[ Top ]


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