public function output_setting_flag(admin_setting $setting) {
        global $OUTPUT;

        $value = $setting->get_setting_flag_value($this);

        $context = new stdClass();
        $context->id = $setting->get_id() . '_' . $this->get_shortname();
        $context->name = $setting->get_full_name() .  '_' . $this->get_shortname();
        $context->value = 1;
        $context->checked = $value ? true : false;
        $context->label = $this->get_displayname();

        return $OUTPUT->render_from_template('core_admin/setting_flag', $context);
    }
public function output_setting_flag(admin_setting $setting) {
        global $OUTPUT;

        $value = $setting->get_setting_flag_value($this);

        $context = new stdClass();
        $context->id = $setting->get_id() . '_' . $this->get_shortname();
        $context->name = $setting->get_full_name() .  '_' . $this->get_shortname();
        $context->value = 1;
        $context->checked = $value ? true : false;
        $context->label = $this->get_displayname();

        return $OUTPUT->render_from_template('core_admin/setting_flag', $context);
    }
public function output_setting_flag ( admin_setting $ setting ) { global $ OUTPUT ; $ value = $ setting -> get_setting_flag_value ( $ this ) ; $ context = new stdClass ( ) ; $ context -> id = $ setting -> get_id ( ) . '_' . $ this -> get_shortname ( ) ; $ context -> name = $ setting -> get_full_name ( ) . '_' . $ this -> get_shortname ( ) ; $ context -> value = 1 ; $ context -> checked = $ value ? true : false ; $ context -> label = $ this -> get_displayname ( ) ; return $ OUTPUT -> render_from_template ( 'core_admin/setting_flag' , $ context ) ; }
Output the checkbox for this setting flag. Should only be called if the flag is enabled.

@param admin_setting $setting - The admin setting for this flag
@return string - The html for the checkbox.
Output the checkbox for this setting flag . Should only be called if the flag is enabled .