/** * Class constructor * * @param string $elementName (optional)Input field name attribute * @param string $elementLabel (optional)Input field label * @param string $text (optional)Text to put after the checkbox * @param mixed $attributes (optional)Either a typical HTML attribute string * or an associative array * @param mixed $values (optional)Values to pass if checked or not checked * * @since 1.0 * @access public * @return void */ function MoodleQuickForm_advcheckbox($elementName = null, $elementLabel = null, $text = null, $attributes = null, $values = null) { if ($values === null) { $values = array(0, 1); } parent::HTML_QuickForm_advcheckbox($elementName, $elementLabel, $text, $attributes, $values); }
/** * Returns HTML for advchecbox form element. * * @return string */ function toHtml() { return '<span>' . parent::toHtml() . '</span>'; }