/**
  * @param string $a_cmd
  * @return string
  */
 public function getCommandLink($a_cmd)
 {
     switch ($a_cmd) {
         case 'thread':
             return 'ilias.php?baseClass=ilRepositoryGUI&cmd=viewThread&cmdClass=ilobjforumgui&ref_id=' . $this->ref_id . '&thr_pk=' . $this->getChildId();
         case 'posting':
             $thread_post = $this->getChildId();
             return 'ilias.php?baseClass=ilRepositoryGUI&cmd=viewThread&cmdClass=ilobjforumgui&target=1&ref_id=' . $this->ref_id . '&thr_pk=' . $thread_post[0] . '&pos_pk=' . $thread_post[1] . '#' . $thread_post[1];
         default:
             return parent::getCommandLink($a_cmd);
     }
 }
 /**
  * Get command link url.
  * 
  * @param string $a_cmd The command to get the link for.
  * @return string The command link.
  */
 function getCommandLink($a_cmd)
 {
     // overwritten to always return the permanent download link
     // only create permalink for repository
     if ($a_cmd == "sendfile" && $this->context == self::CONTEXT_REPOSITORY) {
         // return the perma link for downloads
         return ilObjFileAccess::_getPermanentDownloadLink($this->ref_id);
     }
     return parent::getCommandLink($a_cmd);
 }