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

Class: HTMLRadioGroup

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

Class Overview

ABSTObject
   |
   --ABSTHTMLTag
      |
      --ABSTHTMLFormItem
         |
         --HTMLRadioGroup



Author(s):

Version:

  • 0.2.23

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:

Inherited Variables

Inherited Methods

Class: ABSTHTMLFormItem

ABSTHTMLFormItem::addValue()
Concats the given string to the value of this item's "value"-attribute.
ABSTHTMLFormItem::disable()
Disables this item. This method is an alias for the method setDisabled().
ABSTHTMLFormItem::enable()
Enables this item. This method is an alias for the method setDisabled().
ABSTHTMLFormItem::getCheckOrder()
Blind method cause other objects will invoke it.
ABSTHTMLFormItem::getLabel()
Returns the label to the extended extended underlying form component as string.
ABSTHTMLFormItem::getValidationOrder()
Blind method cause other objects will invoke it.
ABSTHTMLFormItem::getValue()
Returns the value of this item's "value"-attribute.
ABSTHTMLFormItem::HTMLFormItem()
Constructor
ABSTHTMLFormItem::setDisabled()
Disables this item.
ABSTHTMLFormItem::setEnabled()
Enables this item.
ABSTHTMLFormItem::setLabel()
Stores the given label object to the extended underlying form component.
ABSTHTMLFormItem::setManipulateable()
Makes sure that this item is manipulateable by the user.
ABSTHTMLFormItem::setNotManipulateable()
Makes sure that this item is not manipulateable by the user, but carrys the value trough the form.
ABSTHTMLFormItem::setParentForm()
Stores a reference to the form-object that contains this item-object.
ABSTHTMLFormItem::setValue()
Stores the value of this item's "value"-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 48]


Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  0.2.23
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

$horizontal =  false

[line 77]

Stores whether the radio buttons should arrange horizontal; Arrangement with or without breaks.



Tags:

public:  

Type:   array


[ Top ]

$radioButtonsLabels = array()

[line 54]



Tags:

public:  

Type:   array


[ Top ]

$radioButtonsLabelsInlineStyle =  "display: inline"

[line 59]



Tags:

public:  

Type:   string


[ Top ]

$radioButtonsOnMouseUp =

[line 69]



Tags:

public:  

Type:   array


[ Top ]

$radioButtonsValues = array()

[line 64]



Tags:

public:  

Type:   array


[ Top ]



Class Methods


static method getJSFunctions [line 189]

static string getJSFunctions( )

Returns a string which contains a function of a javascript to check the radiobutton which value is the given one.



Tags:

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


[ Top ]

constructor HTMLRadioGroup [line 97]

HTMLRadioGroup HTMLRadioGroup( [string $name = ""], [array $labelArr = array()], [array $valueArr = array()], [string $selectedValue = ""], [string $horizontal = false])

Constructor



Tags:

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


Parameters:

string   $name   Name of the radio button group.
array   $labelArr   Array with the label of each radio button.
array   $valueArr   Array with the value of each radio button.
string   $selectedValue   Value to be select.
string   $horizontal   Whether the radio buttons should arrange horizontal.

[ Top ]

method addButton [line 136]

void addButton( [string $label = ""], [string $value = ""])

Adds a new radiobutton to the group.



Tags:

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


Parameters:

string   $label  
string   $value  

[ Top ]

method get [line 328]

string get( [string $forminput = ""])

Returns a generated string based on the attributes of this object.



Tags:

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


Parameters:

string   $forminput   forminput POST or GET or REQUEST

[ Top ]

method getCheckOrder [line 214]

string getCheckOrder( string $formName)

Returns an if-order of a javascript to check whether this item is NOT filled



Tags:

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


Overrides ABSTHTMLFormItem::getCheckOrder() (Blind method cause other objects will invoke it.)

Parameters:

string   $formName  

[ Top ]

method getPHPSource [line 255]

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.5
access:  public


[ Top ]

method setLabelFreeStyle [line 241]

void setLabelFreeStyle( string $string)

Set the value of inline styles of the labels for the radiobuttons of the group.



Tags:

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


Parameters:

string   $string  

[ Top ]

method setMouseUpArray [line 170]

void setMouseUpArray( array $array)

Adding an array to this object, that carries the javascript for the onMouseup-tag of each radiobutton.



Tags:

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


Parameters:

array   $array   Array with the javascripts of each radio button they should execute on left mouse button up.

[ Top ]


Documentation generated on Thu, 05 Jun 2008 19:12:51 +0200 by phpDocumentor 1.4.1