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;
    }
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;
    }
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 ; }
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
Get a no - reply address for this user to reply to the current post .