original_string: public static function get_concepts($courseid) {
          list($glossaries, $concepts) = self::get_course_concepts($courseid);
          list($globalglossaries, $globalconcepts) = self::get_global_concepts();
  
          foreach ($globalconcepts as $gid => $cs) {
              if (!isset($concepts[$gid])) {
                  $concepts[$gid] = $cs;
              }
          }
          foreach ($globalglossaries as $gid => $name) {
              if (!isset($glossaries[$gid])) {
                  $glossaries[$gid] = $name;
              }
          }
  
          return array($glossaries, $concepts);
      }
code: public static function get_concepts($courseid) {
          list($glossaries, $concepts) = self::get_course_concepts($courseid);
          list($globalglossaries, $globalconcepts) = self::get_global_concepts();
  
          foreach ($globalconcepts as $gid => $cs) {
              if (!isset($concepts[$gid])) {
                  $concepts[$gid] = $cs;
              }
          }
          foreach ($globalglossaries as $gid => $name) {
              if (!isset($glossaries[$gid])) {
                  $glossaries[$gid] = $name;
              }
          }
  
          return array($glossaries, $concepts);
      }
code_tokens: public static function get_concepts ( $ courseid ) { list ( $ glossaries , $ concepts ) = self :: get_course_concepts ( $ courseid ) ; list ( $ globalglossaries , $ globalconcepts ) = self :: get_global_concepts ( ) ; foreach ( $ globalconcepts as $ gid => $ cs ) { if ( ! isset ( $ concepts [ $ gid ] ) ) { $ concepts [ $ gid ] = $ cs ; } } foreach ( $ globalglossaries as $ gid => $ name ) { if ( ! isset ( $ glossaries [ $ gid ] ) ) { $ glossaries [ $ gid ] = $ name ; } } return array ( $ glossaries , $ concepts ) ; }
docstring: Get all concepts that should be linked in the given course.
  @param int $courseid
  @return array with two elements - array of glossaries and concepts for each glossary
docstring_tokens: Get all concepts that should be linked in the given course .