_getInfo($name, $value, $attribs); extract($info); // name, id, value, attribs, options, listsep, disable $checked = false; if (isset($attribs['checked']) && $attribs['checked']) { $checked = true; unset($attribs['checked']); } elseif (isset($attribs['checked'])) { $checked = false; unset($attribs['checked']); } $checkedOptions = self::determineCheckboxInfo($value, $checked, $checkedOptions); // is the element disabled? $disabled = ''; if ($disable) { $disabled = ' disabled="disabled"'; } // XHTML or HTML end tag? $endTag = ' />'; if (($this->view instanceof Zend_View_Abstract) && !$this->view->doctype()->isXhtml()) { $endTag= '>'; } // build the element $xhtml = ''; if (!$disable && !strstr($name, '[]')) { //XXX: we have just copied Zend_View_Helper_FormCheckbox, and // commented this line. // $xhtml = $this->_hidden($name, $checkedOptions['uncheckedValue']); } $xhtml .= '_htmlAttribs($attribs) . $endTag; return $xhtml; } }