original_string: protected function get_reply_address($course, $forum, $discussion, $post, $cm, $context) {
          if ($this->can_post($course, $forum, $discussion, $post, $cm, $context)) {
              // Generate a reply-to address from using the Inbound Message handler.
              $this->inboundmanager->set_data($post->id);
              return $this->inboundmanager->generate($this->recipient->id);
          }
  
          // TODO Check if we can return a string.
          // This will be controlled by the event.
          return null;
      }
code: protected function get_reply_address($course, $forum, $discussion, $post, $cm, $context) {
          if ($this->can_post($course, $forum, $discussion, $post, $cm, $context)) {
              // Generate a reply-to address from using the Inbound Message handler.
              $this->inboundmanager->set_data($post->id);
              return $this->inboundmanager->generate($this->recipient->id);
          }
  
          // TODO Check if we can return a string.
          // This will be controlled by the event.
          return null;
      }
code_tokens: protected function get_reply_address ( $ course , $ forum , $ discussion , $ post , $ cm , $ context ) { if ( $ this -> can_post ( $ course , $ forum , $ discussion , $ post , $ cm , $ context ) ) { // Generate a reply-to address from using the Inbound Message handler. $ this -> inboundmanager -> set_data ( $ post -> id ) ; return $ this -> inboundmanager -> generate ( $ this -> recipient -> id ) ; } // TODO Check if we can return a string. // This will be controlled by the event. return null ; }
docstring: Get a no-reply address for this user to reply to the current post.
  
  @param   \stdClass   $course
  @param   \stdClass   $forum
  @param   \stdClass   $discussion
  @param   \stdClass   $post
  @param   \stdClass   $cm
  @param   \context    $context
  @return  string
docstring_tokens: Get a no - reply address for this user to reply to the current post .