/**
  * Load child update objects.
  */
 function load_updates()
 {
     if (empty($this->updates)) {
         $this->updates = TimecardUpdate::load_by_bug($this->bug_id);
     }
 }
 /**
  * Generate and cache a dict of TimecardUpdate objects keyed by bugnote ID.
  * @param string Event name
  * @param int Bug ID
  */
 function view_bugnotes_start($p_event, $p_bug_id)
 {
     $this->update_cache = array();
     if (!plugin_config_get('use_updates') || !access_has_bug_level(plugin_config_get('view_threshold'), $p_bug_id)) {
         return;
     }
     $t_updates = TimecardUpdate::load_by_bug($p_bug_id);
     foreach ($t_updates as $t_update) {
         $this->update_cache[$t_update->bugnote_id] = $t_update;
     }
 }