original_string: public function export_for_download() {
  
          if (count($this->versions) == 1) {
              if ($this->accepted) {
                  if ($this->onbehalf) {
                      return get_string('acceptancestatusacceptedbehalf', 'tool_policy');
                  } else {
                      return get_string('acceptancestatusaccepted', 'tool_policy');
                  }
  
              } else if ($this->declined) {
                  if ($this->onbehalf) {
                      return get_string('acceptancestatusdeclinedbehalf', 'tool_policy');
                  } else {
                      return get_string('acceptancestatusdeclined', 'tool_policy');
                  }
  
              } else {
                  return get_string('acceptancestatuspending', 'tool_policy');
              }
  
          } else if (count($this->versions) > 1) {
              if (count($this->accepted) == count($this->versions)) {
                  return get_string('acceptancestatusaccepted', 'tool_policy');
  
              } else if (count($this->declined) == count($this->versions)) {
                  return get_string('acceptancestatusdeclined', 'tool_policy');
  
              } else if (count($this->accepted) > 0 || count($this->declined) > 0) {
                  return get_string('acceptancestatuspartial', 'tool_policy');
  
              } else {
                  return get_string('acceptancestatuspending', 'tool_policy');
              }
          }
      }
code: public function export_for_download() {
  
          if (count($this->versions) == 1) {
              if ($this->accepted) {
                  if ($this->onbehalf) {
                      return get_string('acceptancestatusacceptedbehalf', 'tool_policy');
                  } else {
                      return get_string('acceptancestatusaccepted', 'tool_policy');
                  }
  
              } else if ($this->declined) {
                  if ($this->onbehalf) {
                      return get_string('acceptancestatusdeclinedbehalf', 'tool_policy');
                  } else {
                      return get_string('acceptancestatusdeclined', 'tool_policy');
                  }
  
              } else {
                  return get_string('acceptancestatuspending', 'tool_policy');
              }
  
          } else if (count($this->versions) > 1) {
              if (count($this->accepted) == count($this->versions)) {
                  return get_string('acceptancestatusaccepted', 'tool_policy');
  
              } else if (count($this->declined) == count($this->versions)) {
                  return get_string('acceptancestatusdeclined', 'tool_policy');
  
              } else if (count($this->accepted) > 0 || count($this->declined) > 0) {
                  return get_string('acceptancestatuspartial', 'tool_policy');
  
              } else {
                  return get_string('acceptancestatuspending', 'tool_policy');
              }
          }
      }
code_tokens: public function export_for_download ( ) { if ( count ( $ this -> versions ) == 1 ) { if ( $ this -> accepted ) { if ( $ this -> onbehalf ) { return get_string ( 'acceptancestatusacceptedbehalf' , 'tool_policy' ) ; } else { return get_string ( 'acceptancestatusaccepted' , 'tool_policy' ) ; } } else if ( $ this -> declined ) { if ( $ this -> onbehalf ) { return get_string ( 'acceptancestatusdeclinedbehalf' , 'tool_policy' ) ; } else { return get_string ( 'acceptancestatusdeclined' , 'tool_policy' ) ; } } else { return get_string ( 'acceptancestatuspending' , 'tool_policy' ) ; } } else if ( count ( $ this -> versions ) > 1 ) { if ( count ( $ this -> accepted ) == count ( $ this -> versions ) ) { return get_string ( 'acceptancestatusaccepted' , 'tool_policy' ) ; } else if ( count ( $ this -> declined ) == count ( $ this -> versions ) ) { return get_string ( 'acceptancestatusdeclined' , 'tool_policy' ) ; } else if ( count ( $ this -> accepted ) > 0 || count ( $ this -> declined ) > 0 ) { return get_string ( 'acceptancestatuspartial' , 'tool_policy' ) ; } else { return get_string ( 'acceptancestatuspending' , 'tool_policy' ) ; } } }
docstring: Describe the status with a plain text for downloading purposes.
  
  @return string
docstring_tokens: Describe the status with a plain text for downloading purposes .