protected function get_activity() {
        if ($this->activity === false) {
            $this->activity = $this->reorder_activities();
        }
        return $this->activity;
    }
protected function get_activity() {
        if ($this->activity === false) {
            $this->activity = $this->reorder_activities();
        }
        return $this->activity;
    }
protected function get_activity ( ) { if ( $ this -> activity === false ) { $ this -> activity = $ this -> reorder_activities ( ) ; } return $ this -> activity ; }
Returns the current activity if exists

@return null|cm_info
Returns the current activity if exists