Пример #1
0
 public function getName()
 {
     if ($this->_name === null) {
         $names = array();
         foreach ($this->_identifiables as $identifiable) {
             $names[] = $identifiable instanceof \thebuggenie\core\entities\common\Identifiable ? $identifiable->getName() : \framework\Context::getI18n()->__('Unknown / not set');
         }
         $this->_name = join(', ', $names);
     }
     return $this->_name;
 }
Пример #2
0
 public function getBacklogIssuesUrl()
 {
     if ($this->usesSavedSearchBacklog()) {
         $url = \framework\Context::getRouting()->generate('project_issues', array('project_key' => $this->getProject()->getKey(), 'saved_search' => $this->getBacklogSearch()->getID(), 'search' => true, 'format' => 'backlog'));
     } else {
         $url = \framework\Context::getRouting()->generate('project_issues', array('project_key' => $this->getProject()->getKey(), 'predefined_search' => $this->getAutogeneratedSearch(), 'search' => true, 'format' => 'backlog'));
     }
     return $url;
 }