function __construct() { parent::__construct(); $this->_eachPost = "\n"; }
/** * Sets the value of this Component to the {@link SObject} passed. * @param ref object $value The {@link SObject} value to use. * * @return void **/ function setValue($value) { parent::setValue($value->value() ? "1" : "0"); }
/** * Answer the extended HTML for an item * * @param string $fieldName The field name to use when outputting form data or * @param string $key * @return string * @access protected * @since 5/19/08 */ protected function getExtendedHtml($fieldName, $key) { ob_start(); if ($this->_deletable[$key]) { $choiceName = RequestContext::name($fieldName); $deleteName = RequestContext::name($fieldName . '_delete'); $name = RequestContext::name($fieldName . '_delete_' . $key); print " "; print "\n\t<input type='button' name='{$name}' value='" . _("Delete") . "'"; print " onclick=\""; print " WRadioListWithDelete.delete(this, '{$choiceName}', '{$deleteName}', '{$key}');"; print "\""; print "'/>"; } return ob_get_clean() . parent::getExtendedHtml($fieldName, $key); }