original_string: public static function get_publication($id, $courseid = 0, $strictness = IGNORE_MISSING) {
          global $DB;
          if (!$id && $strictness != MUST_EXIST) {
              return false;
          }
          $params = ['id' => $id, 'huburl' => HUB_MOODLEORGHUBURL];
          if ($courseid) {
              $params['courseid'] = $courseid;
          }
          return $DB->get_record('course_published', $params, '*', $strictness);
      }
code: public static function get_publication($id, $courseid = 0, $strictness = IGNORE_MISSING) {
          global $DB;
          if (!$id && $strictness != MUST_EXIST) {
              return false;
          }
          $params = ['id' => $id, 'huburl' => HUB_MOODLEORGHUBURL];
          if ($courseid) {
              $params['courseid'] = $courseid;
          }
          return $DB->get_record('course_published', $params, '*', $strictness);
      }
code_tokens: public static function get_publication ( $ id , $ courseid = 0 , $ strictness = IGNORE_MISSING ) { global $ DB ; if ( ! $ id && $ strictness != MUST_EXIST ) { return false ; } $ params = [ 'id' => $ id , 'huburl' => HUB_MOODLEORGHUBURL ] ; if ( $ courseid ) { $ params [ 'courseid' ] = $ courseid ; } return $ DB -> get_record ( 'course_published' , $ params , '*' , $ strictness ) ; }
docstring: Load publication information from local db
  
  @param int $id
  @param int $courseid if specified publication will be checked that it is in the current course
  @param int $strictness
  @return stdClass
docstring_tokens: Load publication information from local db