original_string: public function output_setting_flags() {
          $output = '';
  
          foreach ($this->flags as $flag) {
              if ($flag->is_enabled()) {
                  $output .= $flag->output_setting_flag($this);
              }
          }
  
          if (!empty($output)) {
              return html_writer::tag('span', $output, array('class' => 'adminsettingsflags'));
          }
          return $output;
      }
code: public function output_setting_flags() {
          $output = '';
  
          foreach ($this->flags as $flag) {
              if ($flag->is_enabled()) {
                  $output .= $flag->output_setting_flag($this);
              }
          }
  
          if (!empty($output)) {
              return html_writer::tag('span', $output, array('class' => 'adminsettingsflags'));
          }
          return $output;
      }
code_tokens: public function output_setting_flags ( ) { $ output = '' ; foreach ( $ this -> flags as $ flag ) { if ( $ flag -> is_enabled ( ) ) { $ output .= $ flag -> output_setting_flag ( $ this ) ; } } if ( ! empty ( $ output ) ) { return html_writer :: tag ( 'span' , $ output , array ( 'class' => 'adminsettingsflags' ) ) ; } return $ output ; }
docstring: Output the input fields for the advanced and locked flags on this setting.
  
  @param bool $adv - The current value of the advanced flag.
  @param bool $locked - The current value of the locked flag.
  @return string $output - The html for the flags.
docstring_tokens: Output the input fields for the advanced and locked flags on this setting .