public function is_timed_discussion() : bool {
        global $CFG;

        return !empty($CFG->forum_enabletimedposts) &&
              ($this->get_time_start() || $this->get_time_end());
    }
public function is_timed_discussion() : bool {
        global $CFG;

        return !empty($CFG->forum_enabletimedposts) &&
              ($this->get_time_start() || $this->get_time_end());
    }
public function is_timed_discussion ( ) : bool { global $ CFG ; return ! empty ( $ CFG -> forum_enabletimedposts ) && ( $ this -> get_time_start ( ) || $ this -> get_time_end ( ) ) ; }
Check if the discussion is timed.

@return bool
Check if the discussion is timed .