Exemplo n.º 1
0
 /**
  * Set status for affected component
  * 
  * @see setAffectedItemStatus()
  * @see setAffectedBuildStatus()
  * @see setAffectedEditionStatus()
  * 
  * @param TBGComponent $item The component to set status for
  * @param TBGDatatype $status The status to set
  * 
  * @return boolean
  */
 public function setAffectedComponentStatus($item, $status)
 {
     if (TBGIssueAffectsComponentTable::getTable()->setStatusByIssueIDandComponentID($this->getID(), $item->getID(), $status->getID())) {
         $this->addLogEntry(TBGLogTable::LOG_AFF_DELETE, TBGContext::getI18n()->__("'%item_name' -> '%status_name", array('%item_name' => $item->getName(), '%status_name' => $status->getName())));
         return true;
     }
     return false;
 }
Exemplo n.º 2
0
 /**
  * Set status for affected component
  * 
  * @see setAffectedItemStatus()
  * @see setAffectedBuildStatus()
  * @see setAffectedEditionStatus()
  * 
  * @param TBGComponent $item The component to set status for
  * @param TBGDatatype $status The status to set
  * 
  * @return boolean
  */
 public function setAffectedComponentStatus($item, $status)
 {
     if (B2DB::getTable('TBGIssueAffectsComponentTable')->setStatusByIssueIDandComponentID($this->getID(), $item->getID(), $status->getID())) {
         $this->addLogEntry(TBGLogTable::LOG_AFF_DELETE, TBGContext::getI18n()->__("'%item_name%' -> '%status_name%", array('%item_name%' => $item->getName(), '%status_name%' => $status->getName())));
         $this->addSystemComment(TBGContext::getI18n()->__('Affected component updated'), TBGContext::getI18n()->__('Component \'\'\'%component%\'\'\' is now %status%', array('%component%' => $item->getName(), '%status%' => $status->getName())), TBGContext::getUser()->getID());
         return true;
     }
     return false;
 }