コード例 #1
0
 /**
  * @return Tracker_SemanticCollection
  */
 public function getSemantics()
 {
     $semantics = new Tracker_SemanticCollection();
     $title_semantic = Tracker_Semantic_Title::load($this->tracker);
     $semantics->add($title_semantic->getShortName(), $title_semantic);
     $description_semantic = Tracker_Semantic_Description::load($this->tracker);
     $semantics->add($description_semantic->getShortName(), $description_semantic);
     $status_semantic = Tracker_Semantic_Status::load($this->tracker);
     $semantics->add($status_semantic->getShortName(), $status_semantic);
     $contributor_semantic = Tracker_Semantic_Contributor::load($this->tracker);
     $semantics->add($contributor_semantic->getShortName(), $contributor_semantic);
     $tooltip_semantic = $this->tracker->getTooltip();
     $semantics->add($tooltip_semantic->getShortName(), $tooltip_semantic);
     $this->addOtherSemantics($semantics);
     return $semantics;
 }
コード例 #2
0
ファイル: Tracker.class.php プロジェクト: pombredanne/tuleap
 /**
  * Return the description field, or null if no title field defined
  *
  * @return Tracker_FormElement_Field_Text the title field, or null if not defined
  */
 public function getDescriptionField()
 {
     $title_field = Tracker_Semantic_Description::load($this)->getField();
     if ($title_field) {
         return $title_field;
     } else {
         return null;
     }
 }
コード例 #3
0
 public function getByTracker(Tracker $tracker)
 {
     return Tracker_Semantic_Description::load($tracker);
 }