Comments: on this page. Click to read or post your own.

Class CheckboxSetField

Description

Displays a set of checkboxes as a logical group.

ASSUMPTION -> IF you pass your source as an array, you pass values as an array too. Likewise objects are handled the same.

Located in /sapphire/forms/CheckboxSetField.php (line 10)

Object
   |
   --ViewableData
      |
      --RequestHandlingData
         |
         --FormField
            |
            --DropdownField
               |
               --OptionsetField
                  |
                  --CheckboxSetField
Variable Summary
mixed $disabled
Method Summary
CheckboxSetField __construct ( $name, [ $title = ""], [ $source = array()], [ $value = ""], [ $form = null])
void dataValue ()
void ExtraOptions ()
void Field ()
void saveInto ( $record)
void setDisabled ( $val)
void setValue ( $value, [ $obj = null])
Variables
Methods
Constructor __construct (line 15)
CheckboxSetField __construct ( $name, [ $title = ""], [ $source = array()], [ $value = ""], [ $form = null])
  • $name
  • $title
  • $source
  • $value
  • $form

Redefinition of:
OptionsetField::__construct()
Creates a new optionset field.
dataValue (line 154)

Return the CheckboxSetField value, as an array of the selected item keys

void dataValue ()

Redefinition of:
FormField::dataValue()
Returns the field value suitable for insertion into the data object
ExtraOptions (line 222)
void ExtraOptions ()

Redefinition of:
OptionsetField::ExtraOptions()
Field (line 26)

Object handles arrays and dosets being passed by reference.

  • todo: Should use CheckboxField FieldHolder rather than constructing own markup.
void Field ()

Redefinition of:
OptionsetField::Field()
Create a UL tag containing sets of radio buttons and labels. The IDs are set to FieldID_ItemKey, where ItemKey is the key with all non-alphanumerics removed.
performDisabledTransformation (line 165)
void performDisabledTransformation ()

Redefinition of:
FormField::performDisabledTransformation()
Return a disabled version of this field
performReadonlyTransformation (line 174)

Makes a pretty readonly field

void performReadonlyTransformation ()

Redefinition of:
OptionsetField::performReadonlyTransformation()
saveInto (line 132)

Save the current value of this CheckboxSetField into a DataObject.

If the field it is saving to is a has_many or many_many relationship, it is saved by setByIDList(), otherwise it creates a comma separated list for a standard DB text/varchar field.

void saveInto ( $record)

Redefinition of:
FormField::saveInto()
Method to save this form field into the given data object.
setDisabled (line 106)
void setDisabled ( $val)
  • $val

Redefinition of:
OptionsetField::setDisabled()
setValue (line 113)

Load a value into this CheckboxSetField

void setValue ( $value, [ $obj = null])
  • $value
  • $obj

Redefinition of:
FormField::setValue()
Set the field value.

Inherited Methods

Inherited From OptionsetField

OptionsetField::__construct()
OptionsetField::ExtraOptions()
OptionsetField::Field()
OptionsetField::performReadonlyTransformation()
OptionsetField::setDisabled()

Inherited From DropdownField

DropdownField::__construct()
DropdownField::extraClass()
DropdownField::Field()
DropdownField::getEmptyString()
DropdownField::getHasEmptyDefault()
DropdownField::getSource()
DropdownField::isSelected()
DropdownField::performReadonlyTransformation()
DropdownField::setEmptyString()
DropdownField::setHasEmptyDefault()
DropdownField::setSource()

Inherited From FormField

FormField::__construct()
FormField::addExtraClass()
FormField::attrName()
FormField::attrTitle()
FormField::attrValue()
FormField::createTag()
FormField::dataValue()
FormField::debug()
FormField::describe()
FormField::extraClass()
FormField::Field()
FormField::FieldHolder()
FormField::forTemplate()
FormField::getForm()
FormField::getTabIndex()
FormField::getTabIndexHTML()
FormField::hasClass()
FormField::hasData()
FormField::id()
FormField::isComposite()
FormField::isDisabled()
FormField::isReadonly()
FormField::jsValidation()
FormField::LeftTitle()
FormField::Link()
FormField::Message()
FormField::MessageType()
FormField::Name()
FormField::name_to_label()
FormField::performDisabledTransformation()
FormField::performReadonlyTransformation()
FormField::removeExtraClass()
FormField::Required()
FormField::RightTitle()
FormField::rootFieldSet()
FormField::saveInto()
FormField::setContainerFieldSet()
FormField::setDisabled()
FormField::setError()
FormField::setForm()
FormField::setLeftTitle()
FormField::setName()
FormField::setReadonly()
FormField::setRightTitle()
FormField::setTabIndex()
FormField::setTitle()
FormField::setValue()
FormField::SmallFieldHolder()
FormField::Title()
FormField::transform()
FormField::Type()
FormField::validate()
FormField::Value()

Inherited From RequestHandlingData

RequestHandlingData::checkAccessAction()
RequestHandlingData::getRequest()
RequestHandlingData::handleRequest()
RequestHandlingData::httpError()

Inherited From ViewableData

ViewableData::ATT_val()
ViewableData::BaseHref()
ViewableData::buildCastingHelperCache()
ViewableData::cachedCall()
ViewableData::castingHelper()
ViewableData::castingHelperPair()
ViewableData::castingObjectCreator()
ViewableData::castingObjectCreatorPair()
ViewableData::CSSClasses()
ViewableData::CurrentMember()
ViewableData::CurrentPage()
ViewableData::customise()
ViewableData::Debug()
ViewableData::defineMethods()
ViewableData::escapeTypeForField()
ViewableData::Even()
ViewableData::EvenOdd()
ViewableData::First()
ViewableData::FirstLast()
ViewableData::getField()
ViewableData::getIterator()
ViewableData::getXMLValues()
ViewableData::hasField()
ViewableData::HasPerm()
ViewableData::hasValue()
ViewableData::i18nLocale()
ViewableData::IsAjax()
ViewableData::iteratorProperties()
ViewableData::JS_val()
ViewableData::Last()
ViewableData::Me()
ViewableData::Middle()
ViewableData::MiddleString()
ViewableData::obj()
ViewableData::Odd()
ViewableData::Pos()
ViewableData::RAW_val()
ViewableData::renderWith()
ViewableData::SecurityID()
ViewableData::setCustomisedObj()
ViewableData::setField()
ViewableData::SQL_val()
ViewableData::ThemeDir()
ViewableData::Top()
ViewableData::TotalItems()
ViewableData::val()
ViewableData::XML_val()
ViewableData::__get()
ViewableData::__isset()
ViewableData::__set()

Inherited From Object

Object::__construct()
Object::addMethodsFrom()
Object::addStaticVars()
Object::addWrapperMethod()
Object::add_extension()
Object::allMethodNames()
Object::buildMethodList()
Object::cacheToFile()
Object::cacheToFileWithArgs()
Object::create()
Object::createMethod()
Object::defineMethods()
Object::exists()
Object::extend()
Object::extInstance()
Object::getCustomClass()
Object::hasExtension()
Object::hasMethod()
Object::invokeWithExtensions()
Object::is_a()
Object::loadCache()
Object::parentClass()
Object::sanitiseCachename()
Object::saveCache()
Object::set_stat()
Object::set_uninherited()
Object::stat()
Object::strong_create()
Object::uninherited()
Object::useCustomClass()
Object::__call()
Object::__toString()
blog comments powered by Disqus

Documentation generated on Sun, 19 Oct 2008 06:38:41 +1300 by phpDocumentor 1.3.2