original_string: public function showTrack($value)
      {
          $empty  = $this->util->getTranslated()->getEmptyDropdownArray();
          if (! $value || in_array($value, $empty)) {
              return null;
          }
          if (!$value instanceof \Gems_Tracker_RespondentTrack) {
              $value = $this->loader->getTracker()->getRespondentTrack($value);
          }
  
          if (!$value instanceof \Gems_Tracker_RespondentTrack) {
              return null;
          }
  
          $name = $value->getTrackName();
          /*$startDate = $value->getStartDate();
          if ($startDate) {
              $name .= ' (' . $startDate->toString('dd-MM-yyyy') . ')';
          }*/
  
          if (! $this->menu instanceof \Gems_Menu) {
              $this->menu = $this->loader->getMenu();
          }
  
          $menuItem = $this->menu->findAllowedController('track', 'show-track');
          if ($menuItem instanceof \Gems_Menu_SubMenuItem) {
              if (!$this->request) {
                  $this->request = \Zend_Controller_Front::getInstance()->getRequest();
              }
              $href = $menuItem->toHRefAttribute([
                  'gr2t_id_respondent' => $value->getPatientNumber(),
                  'gr2t_id_organization' => $value->getOrganizationId(),
                  'gr2t_id_respondent_track' => $value->getRespondentTrackId(),
              ], $this->request);
              if ($href) {
                  return \MUtil_Html::create('a', $href, $name);
              }
          }
  
          return $name;
      }
code: public function showTrack($value)
      {
          $empty  = $this->util->getTranslated()->getEmptyDropdownArray();
          if (! $value || in_array($value, $empty)) {
              return null;
          }
          if (!$value instanceof \Gems_Tracker_RespondentTrack) {
              $value = $this->loader->getTracker()->getRespondentTrack($value);
          }
  
          if (!$value instanceof \Gems_Tracker_RespondentTrack) {
              return null;
          }
  
          $name = $value->getTrackName();
          /*$startDate = $value->getStartDate();
          if ($startDate) {
              $name .= ' (' . $startDate->toString('dd-MM-yyyy') . ')';
          }*/
  
          if (! $this->menu instanceof \Gems_Menu) {
              $this->menu = $this->loader->getMenu();
          }
  
          $menuItem = $this->menu->findAllowedController('track', 'show-track');
          if ($menuItem instanceof \Gems_Menu_SubMenuItem) {
              if (!$this->request) {
                  $this->request = \Zend_Controller_Front::getInstance()->getRequest();
              }
              $href = $menuItem->toHRefAttribute([
                  'gr2t_id_respondent' => $value->getPatientNumber(),
                  'gr2t_id_organization' => $value->getOrganizationId(),
                  'gr2t_id_respondent_track' => $value->getRespondentTrackId(),
              ], $this->request);
              if ($href) {
                  return \MUtil_Html::create('a', $href, $name);
              }
          }
  
          return $name;
      }
code_tokens: public function showTrack ( $ value ) { $ empty = $ this -> util -> getTranslated ( ) -> getEmptyDropdownArray ( ) ; if ( ! $ value || in_array ( $ value , $ empty ) ) { return null ; } if ( ! $ value instanceof \ Gems_Tracker_RespondentTrack ) { $ value = $ this -> loader -> getTracker ( ) -> getRespondentTrack ( $ value ) ; } if ( ! $ value instanceof \ Gems_Tracker_RespondentTrack ) { return null ; } $ name = $ value -> getTrackName ( ) ; /*$startDate = $value->getStartDate();
          if ($startDate) {
              $name .= ' (' . $startDate->toString('dd-MM-yyyy') . ')';
          }*/ if ( ! $ this -> menu instanceof \ Gems_Menu ) { $ this -> menu = $ this -> loader -> getMenu ( ) ; } $ menuItem = $ this -> menu -> findAllowedController ( 'track' , 'show-track' ) ; if ( $ menuItem instanceof \ Gems_Menu_SubMenuItem ) { if ( ! $ this -> request ) { $ this -> request = \ Zend_Controller_Front :: getInstance ( ) -> getRequest ( ) ; } $ href = $ menuItem -> toHRefAttribute ( [ 'gr2t_id_respondent' => $ value -> getPatientNumber ( ) , 'gr2t_id_organization' => $ value -> getOrganizationId ( ) , 'gr2t_id_respondent_track' => $ value -> getRespondentTrackId ( ) , ] , $ this -> request ) ; if ( $ href ) { return \ MUtil_Html :: create ( 'a' , $ href , $ name ) ; } } return $ name ; }
docstring: Display a respondent track as text
  
  @param $value
  @return string
docstring_tokens: Display a respondent track as text