original_string: protected function get_activitytype() {
          $options = $this->get_format_options();
          $availabletypes = $this->get_supported_activities();
          if (!empty($options['activitytype']) &&
                  array_key_exists($options['activitytype'], $availabletypes)) {
              return $options['activitytype'];
          } else {
              return null;
          }
      }
code: protected function get_activitytype() {
          $options = $this->get_format_options();
          $availabletypes = $this->get_supported_activities();
          if (!empty($options['activitytype']) &&
                  array_key_exists($options['activitytype'], $availabletypes)) {
              return $options['activitytype'];
          } else {
              return null;
          }
      }
code_tokens: protected function get_activitytype ( ) { $ options = $ this -> get_format_options ( ) ; $ availabletypes = $ this -> get_supported_activities ( ) ; if ( ! empty ( $ options [ 'activitytype' ] ) && array_key_exists ( $ options [ 'activitytype' ] , $ availabletypes ) ) { return $ options [ 'activitytype' ] ; } else { return null ; } }
docstring: Returns the name of activity type used for this course
  
  @return string|null
docstring_tokens: Returns the name of activity type used for this course