original_string: public static function share_same_framework(array $ids) {
          global $DB;
          list($insql, $params) = $DB->get_in_or_equal($ids);
          $sql = "SELECT COUNT('x') FROM (SELECT DISTINCT(competencyframeworkid) FROM {" . self::TABLE . "} WHERE id {$insql}) f";
          return $DB->count_records_sql($sql, $params) == 1;
      }
code: public static function share_same_framework(array $ids) {
          global $DB;
          list($insql, $params) = $DB->get_in_or_equal($ids);
          $sql = "SELECT COUNT('x') FROM (SELECT DISTINCT(competencyframeworkid) FROM {" . self::TABLE . "} WHERE id {$insql}) f";
          return $DB->count_records_sql($sql, $params) == 1;
      }
code_tokens: public static function share_same_framework ( array $ ids ) { global $ DB ; list ( $ insql , $ params ) = $ DB -> get_in_or_equal ( $ ids ) ; $ sql = "SELECT COUNT('x') FROM (SELECT DISTINCT(competencyframeworkid) FROM {" . self :: TABLE . "} WHERE id {$insql}) f" ; return $ DB -> count_records_sql ( $ sql , $ params ) == 1 ; }
docstring: Return whether or not the competency IDs share the same framework.
  
  @param  array  $ids Competency IDs
  @return bool
docstring_tokens: Return whether or not the competency IDs share the same framework .