original_string: public function output_html($data, $query='') {
          global $CFG, $OUTPUT;
          $default = $this->get_defaultsetting();
          require_once("$CFG->libdir/filelib.php");
  
          $context = (object) [
              'id' => $this->get_id(),
              'name' => $this->get_full_name(),
              'size' => $this->size,
              'value' => $data,
              'showvalidity' => !empty($data),
              'valid' => $data && file_exists($data) && !is_dir($data) && file_is_executable($data),
              'readonly' => !empty($CFG->preventexecpath),
              'forceltr' => $this->get_force_ltr()
          ];
  
          if (!empty($CFG->preventexecpath)) {
              $this->visiblename .= '<div class="form-overridden">'.get_string('execpathnotallowed', 'admin').'</div>';
          }
  
          $element = $OUTPUT->render_from_template('core_admin/setting_configexecutable', $context);
  
          return format_admin_setting($this, $this->visiblename, $element, $this->description, true, '', $default, $query);
      }
code: public function output_html($data, $query='') {
          global $CFG, $OUTPUT;
          $default = $this->get_defaultsetting();
          require_once("$CFG->libdir/filelib.php");
  
          $context = (object) [
              'id' => $this->get_id(),
              'name' => $this->get_full_name(),
              'size' => $this->size,
              'value' => $data,
              'showvalidity' => !empty($data),
              'valid' => $data && file_exists($data) && !is_dir($data) && file_is_executable($data),
              'readonly' => !empty($CFG->preventexecpath),
              'forceltr' => $this->get_force_ltr()
          ];
  
          if (!empty($CFG->preventexecpath)) {
              $this->visiblename .= '<div class="form-overridden">'.get_string('execpathnotallowed', 'admin').'</div>';
          }
  
          $element = $OUTPUT->render_from_template('core_admin/setting_configexecutable', $context);
  
          return format_admin_setting($this, $this->visiblename, $element, $this->description, true, '', $default, $query);
      }
code_tokens: public function output_html ( $ data , $ query = '' ) { global $ CFG , $ OUTPUT ; $ default = $ this -> get_defaultsetting ( ) ; require_once ( "$CFG->libdir/filelib.php" ) ; $ context = ( object ) [ 'id' => $ this -> get_id ( ) , 'name' => $ this -> get_full_name ( ) , 'size' => $ this -> size , 'value' => $ data , 'showvalidity' => ! empty ( $ data ) , 'valid' => $ data && file_exists ( $ data ) && ! is_dir ( $ data ) && file_is_executable ( $ data ) , 'readonly' => ! empty ( $ CFG -> preventexecpath ) , 'forceltr' => $ this -> get_force_ltr ( ) ] ; if ( ! empty ( $ CFG -> preventexecpath ) ) { $ this -> visiblename .= '<div class="form-overridden">' . get_string ( 'execpathnotallowed' , 'admin' ) . '</div>' ; } $ element = $ OUTPUT -> render_from_template ( 'core_admin/setting_configexecutable' , $ context ) ; return format_admin_setting ( $ this , $ this -> visiblename , $ element , $ this -> description , true , '' , $ default , $ query ) ; }
docstring: Returns an XHTML field
  
  @param string $data This is the value for the field
  @param string $query
  @return string XHTML field
docstring_tokens: Returns an XHTML field