예제 #1
0
 /**
  * Set status for affected edition
  *
  * @see setAffectedItemStatus()
  * @see setAffectedBuildStatus()
  * @see setAffectedComponentStatus()
  *
  * @param \thebuggenie\core\entities\Edition $item The edition to set status for
  * @param \thebuggenie\core\entities\Datatype $status The status to set
  *
  * @return boolean
  */
 public function setAffectedEditionStatus($item, $status)
 {
     if (tables\IssueAffectsEdition::getTable()->setStatusByIssueIDandEditionID($this->getID(), $item->getID(), $status->getID())) {
         $this->touch();
         $this->addLogEntry(tables\Log::LOG_AFF_DELETE, framework\Context::getI18n()->__("'%item_name' -> '%status_name", array('%item_name' => $item->getName(), '%status_name' => $status->getName())));
         return true;
     }
     return false;
 }
예제 #2
0
 public function getEditionID()
 {
     return $this->_edition instanceof \thebuggenie\core\entities\Edition ? $this->_edition->getID() : (int) $this->_edition;
 }