public static function create_multiple_from_competencyids($competencyids, $contextid) {
        $events = array();
        foreach ($competencyids as $id) {
            $events[$id] = static::create(array(
                'contextid' => $contextid,
                'objectid' => $id
            ));
        }
        return $events;
    }
public static function create_multiple_from_competencyids($competencyids, $contextid) {
        $events = array();
        foreach ($competencyids as $id) {
            $events[$id] = static::create(array(
                'contextid' => $contextid,
                'objectid' => $id
            ));
        }
        return $events;
    }
public static function create_multiple_from_competencyids ( $ competencyids , $ contextid ) { $ events = array ( ) ; foreach ( $ competencyids as $ id ) { $ events [ $ id ] = static :: create ( array ( 'contextid' => $ contextid , 'objectid' => $ id ) ) ; } return $ events ; }
Instantiate events from competency ids.

@param array $competencyids Array of competency ids.
@param int $contextid The context id.
@return self[] Array of events.
Instantiate events from competency ids .