public function add_refs($item, array $ids) {
        $this->validate_item($item);
        foreach ($ids as $id) {
            $this->refs[$item][$id] = true;
        }
    }
public function add_refs($item, array $ids) {
        $this->validate_item($item);
        foreach ($ids as $id) {
            $this->refs[$item][$id] = true;
        }
    }
public function add_refs ( $ item , array $ ids ) { $ this -> validate_item ( $ item ) ; foreach ( $ ids as $ id ) { $ this -> refs [ $ item ] [ $ id ] = true ; } }
Adds a bulk of references

@param string $item the name of referenced item (like user, file, scale, outcome or grade_item)
@param array $ids the list of referenced ids
Adds a bulk of references