當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Issue::getID方法代碼示例

本文整理匯總了PHP中thebuggenie\core\entities\Issue::getID方法的典型用法代碼示例。如果您正苦於以下問題:PHP Issue::getID方法的具體用法?PHP Issue::getID怎麽用?PHP Issue::getID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在thebuggenie\core\entities\Issue的用法示例。


在下文中一共展示了Issue::getID方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _markIssueSent

 /**
  * Adds "notify once" settings for necessary issues
  *
  * @param \thebuggenie\core\entities\Issue $issue
  * @param array|\thebuggenie\core\entities\User $users
  */
 protected function _markIssueSent(Issue $issue, $users)
 {
     foreach ($users as $user) {
         if ($user->getNotificationSetting(self::NOTIFY_ITEM_ONCE, false, 'mailing')->isOn()) {
             $user->setNotificationSetting(self::NOTIFY_ITEM_ONCE . '_issue_' . $issue->getID(), true, 'mailing')->save();
         }
     }
 }
開發者ID:RTechSoft,項目名稱:thebuggenie,代碼行數:14,代碼來源:Mailing.php

示例2: getIssueID

 public function getIssueID()
 {
     return is_object($this->_issue_id) ? $this->_issue_id->getID() : (int) $this->_issue_id;
 }
開發者ID:founderio,項目名稱:thebuggenie,代碼行數:4,代碼來源:IssueSpentTime.php

示例3: getCommitsByIssue

 /**
  * Return all commits for a given issue
  * @param \thebuggenie\core\entities\Issue $issue
  * @param integer $limit
  * @param integer $offset
  * @return array|\thebuggenie\core\entities\Issue
  */
 public static function getCommitsByIssue(\thebuggenie\core\entities\Issue $issue, $limit = null, $offset = null)
 {
     return tables\IssueLinks::getTable()->getByIssueID($issue->getID(), null, $limit, $offset);
 }
開發者ID:founderio,項目名稱:thebuggenie,代碼行數:11,代碼來源:IssueLink.php

示例4: addChildIssue

 /**
  * Add a related issue
  *
  * @param \thebuggenie\core\entities\Issue $related_issue
  *
  * @return boolean
  */
 public function addChildIssue(\thebuggenie\core\entities\Issue $related_issue, $epic = false)
 {
     if (!($row = tables\IssueRelations::getTable()->getIssueRelation($this->getID(), $related_issue->getID()))) {
         if (!$epic && !$this->getMilestone() instanceof Milestone && $related_issue->getMilestone() instanceof Milestone) {
             $related_issue->removeMilestone();
             $related_issue->save();
         } else {
             if ($this->getMilestone() instanceof Milestone) {
                 $related_issue->setMilestone($this->getMilestone()->getID());
                 $related_issue->save();
             }
         }
         $res = tables\IssueRelations::getTable()->addChildIssue($this->getID(), $related_issue->getID());
         $this->_child_issues = null;
         $related_issue->addLogEntry(tables\Log::LOG_ISSUE_DEPENDS, framework\Context::getI18n()->__('%issuetype %issue_no now depends on the solution of this %this_issuetype', array('%this_issuetype' => $related_issue->getIssueType()->getName(), '%issuetype' => $this->getIssueType()->getName(), '%issue_no' => $this->getFormattedIssueNo())));
         $this->addLogEntry(tables\Log::LOG_ISSUE_DEPENDS, framework\Context::getI18n()->__('This %this_issuetype now depends on the solution of %issuetype %issue_no', array('%this_issuetype' => $this->getIssueType()->getName(), '%issuetype' => $related_issue->getIssueType()->getName(), '%issue_no' => $related_issue->getFormattedIssueNo())));
         $this->calculateTime();
         $this->save();
         $last_updated = time();
         $this->touch($last_updated);
         $related_issue->touch($last_updated);
         return true;
     }
     return false;
 }
開發者ID:AzerothShard,項目名稱:thebuggenie,代碼行數:32,代碼來源:Issue.php

示例5: getCommitsByIssue

 /**
  * Return all commits for a given issue
  * @param \thebuggenie\core\entities\Issue $issue
  * @return array|\thebuggenie\core\entities\Issue
  */
 public static function getCommitsByIssue(\thebuggenie\core\entities\Issue $issue)
 {
     return tables\IssueLinks::getTable()->getByIssueID($issue->getID());
 }
開發者ID:JonathanRH,項目名稱:thebuggenie,代碼行數:9,代碼來源:IssueLink.php


注:本文中的thebuggenie\core\entities\Issue::getID方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。