/**
  * Get items of current folder
  */
 function getItems()
 {
     $usages = ilGlossaryTerm::getUsages($this->term_id);
     $clip_cnt = 0;
     $to_del = array();
     $agg_usages = array();
     foreach ($usages as $k => $usage) {
         if (empty($agg_usages[$usage["type"] . ":" . $usage["id"]])) {
             $usage["hist_nr"] = array($usage["hist_nr"]);
             $agg_usages[$usage["type"] . ":" . $usage["id"]] = $usage;
         } else {
             $agg_usages[$usage["type"] . ":" . $usage["id"]]["hist_nr"][] = $usage["hist_nr"];
         }
     }
     $this->setData($agg_usages);
 }
 /**
  * Get number of usages
  *
  * @param	int		term id
  * @return	int		number of usages
  */
 static function getNumberOfUsages($a_term_id)
 {
     return count(ilGlossaryTerm::getUsages($a_term_id));
 }