a choice list field from which a select, list of hrefs etc can be built
A field class that can only take a restricted set of values, such as a radio list or a drop-down list.
This class cannot adequately represent itself and is designed to be inherited by a representation (such as RadioList or DropDownList)
Located in /inc/formslib/choicelist.php (line 37)
Field | --ChoiceList
Class | Description |
---|---|
AnchorList | anchor list (<li><a href="$href">$name</a></li>) for a ChoiceList |
CheckBoxTableList | a table of checkboxes for different options |
DropList | a dropdown selection list using a ChoiceList |
RadioList | a radio button list based on the ChoiceList class |
Inherited from Field
Field::$attr
Field::$changed
Field::$DEBUG
Field::$defaultValue
Field::$description
Field::$duplicateName
Field::$editable
Field::$errorclass
Field::$hidden
Field::$isValid
Field::$isValidTest
Field::$longname
Field::$name
Field::$namebase
Field::$notifyIdChange
Field::$oob_errorMessage
Field::$oob_status
Field::$ovalue
Field::$required
Field::$requiredTwoStage
Field::$sqlHidden
Field::$suppressValidation
Field::$useNullValues
Field::$value
Field::$valueCleaner
Create a new choice list
appends a value to the dropdown list
Create a DBList object within this class that is connected to the available choices in the database and will handle the actual parsing of user input etc
If php supported multiple inheritance, then $this->list would not be a member of the class, rather DBList would be multiply inherited along with Field.
Display the field inside a table
A test text-based format function for the object.
Check the validity of the data.
Return TRUE iff the DBList isValid and the Field isValid. This permits two rounds of checks on the data to be performed.
prepends a value to the dropdown list
Set the value of this field, both in the Field and in the DBList
Create a set of OutputFormatter objects to handle the display of this object.
called as: setFormat($id, $f1, $v1, $f2, $v2, ...) {
Provides a set of values for the droplist rather than filling it from a db query
cf. ChoiceList::connectDB
Obtain the SQL data necessary for including the foreign key in the DBRow to which we belong.
trip the complex field within us to sync(), which allows us to then know our actual value (at last).
Update the value of the field and also the complex field within based on the user data.
This does *not* create new elements within the complex field (list) at this stage: that is deferred until the latest possible point for all error checking to be performed.
PHP5 clone method
PHP5 clone statement will perform only a shallow copy of the object. Any subobjects must also be cloned
Inherited From Field
Field::Field()
Field::display()
Field::displayInTable()
Field::getValue()
Field::hidden()
Field::isValid()
Field::log()
Field::selectable()
Field::selectedValue()
Field::set()
Field::setattr()
Field::setEditable()
Field::setNamebase()
Field::sqlSetStr()
Field::text_dump()
Field::update()
Field::__clone()
Documentation generated on Tue, 06 Mar 2007 10:01:04 +0000 by phpDocumentor 1.3.0