original_string: protected function display_category_form_checkbox($name, $value, $label) {
          debugging('display_category_form_checkbox() is deprecated, ' .
                  'please use \core_question\bank\search\condition instead.', DEBUG_DEVELOPER);
          echo '<div><input type="hidden" id="' . $name . '_off" name="' . $name . '" value="0" />';
          echo '<input type="checkbox" id="' . $name . '_on" name="' . $name . '" value="1"';
          if ($value) {
              echo ' checked="checked"';
          }
          echo ' onchange="getElementById(\'displayoptions\').submit(); return true;" />';
          echo '<label for="' . $name . '_on">' . $label . '</label>';
          echo "</div>\n";
      }
code: protected function display_category_form_checkbox($name, $value, $label) {
          debugging('display_category_form_checkbox() is deprecated, ' .
                  'please use \core_question\bank\search\condition instead.', DEBUG_DEVELOPER);
          echo '<div><input type="hidden" id="' . $name . '_off" name="' . $name . '" value="0" />';
          echo '<input type="checkbox" id="' . $name . '_on" name="' . $name . '" value="1"';
          if ($value) {
              echo ' checked="checked"';
          }
          echo ' onchange="getElementById(\'displayoptions\').submit(); return true;" />';
          echo '<label for="' . $name . '_on">' . $label . '</label>';
          echo "</div>\n";
      }
code_tokens: protected function display_category_form_checkbox ( $ name , $ value , $ label ) { debugging ( 'display_category_form_checkbox() is deprecated, ' . 'please use \core_question\bank\search\condition instead.' , DEBUG_DEVELOPER ) ; echo '<div><input type="hidden" id="' . $ name . '_off" name="' . $ name . '" value="0" />' ; echo '<input type="checkbox" id="' . $ name . '_on" name="' . $ name . '" value="1"' ; if ( $ value ) { echo ' checked="checked"' ; } echo ' onchange="getElementById(\'displayoptions\').submit(); return true;" />' ; echo '<label for="' . $ name . '_on">' . $ label . '</label>' ; echo "</div>\n" ; }
docstring: Print a single option checkbox.
  @deprecated since Moodle 2.7 MDL-40313.
  @see \core_question\bank\search\condition
  @see html_writer::checkbox
  @todo MDL-41978 This will be deleted in Moodle 2.8
docstring_tokens: Print a single option checkbox .