original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Instantiate events from competency ids.
  
  @param array $competencyids Array of competency ids.
  @param int $contextid The context id.
  @return self[] Array of events.
docstring_tokens: Instantiate events from competency ids .