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


PHP ReferenceManager::extractCrossRef方法代碼示例

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


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

示例1: execute

 public function execute(Git_Hook_PushDetails $push_details, $commit_sha1)
 {
     $rev_id = $push_details->getRepository()->getFullName() . '/' . $commit_sha1;
     $text = $this->git_exec->catFile($commit_sha1);
     $GLOBALS['group_id'] = $push_details->getRepository()->getProject()->getId();
     $this->reference_manager->extractCrossRef($text, $rev_id, Git::REFERENCE_NATURE, $push_details->getRepository()->getProject()->getId(), $push_details->getUser()->getId());
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:7,代碼來源:ExtractCrossReferences.class.php

示例2: update

 /**
  * Be careful due to a svn bug, this method will be call twice by svn server <= 1.7
  * The first time with the new commit_message as expected
  * The second time with the OLD commit message (oh yeah baby!)
  * http://subversion.tigris.org/issues/show_bug.cgi?id=3085
  *
  * @param String $repository_path
  * @param String $revision
  * @param String $user_name
  * @param String $old_commit_message
  */
 public function update($repository_path, $revision, $user_name, $old_commit_message)
 {
     $project = $this->svn_hooks->getProjectFromRepositoryPath($repository_path);
     $user = $this->svn_hooks->getUserByName($user_name);
     $message = $this->svn_hooks->getMessageFromRevision($repository_path, $revision);
     $this->dao->updateCommitMessage($project->getID(), $revision, $message);
     $this->removePreviousCrossReferences($project, $revision, $old_commit_message);
     // Marvelous, extractCrossRef depends on globals group_id to find the group
     // when it's not explicit... yeah!
     $GLOBALS['group_id'] = $project->getID();
     $this->reference_manager->extractCrossRef($message, $revision, ReferenceManager::REFERENCE_NATURE_SVNREVISION, $project->getID(), $user->getId());
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:23,代碼來源:PostRevPropset.class.php


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