当前位置: 首页>>代码示例>>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;未经允许,请勿转载。