本文整理匯總了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();
}
}
}
示例2: getIssueID
public function getIssueID()
{
return is_object($this->_issue_id) ? $this->_issue_id->getID() : (int) $this->_issue_id;
}
示例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);
}
示例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;
}
示例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());
}