本文整理匯總了PHP中ReferenceManager::extractReferences方法的典型用法代碼示例。如果您正苦於以下問題:PHP ReferenceManager::extractReferences方法的具體用法?PHP ReferenceManager::extractReferences怎麽用?PHP ReferenceManager::extractReferences使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ReferenceManager
的用法示例。
在下文中一共展示了ReferenceManager::extractReferences方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: removePreviousCrossReferences
private function removePreviousCrossReferences(Project $project, $revision, $old_commit_message)
{
$GLOBALS['group_id'] = $project->getID();
$references = $this->reference_manager->extractReferences($old_commit_message, $project->getID());
foreach ($references as $reference_instance) {
/* @var $reference Reference */
$reference = $reference_instance->getReference();
if ($reference) {
$cross_reference = new CrossReference($revision, $project->getID(), ReferenceManager::REFERENCE_NATURE_SVNREVISION, '', $reference_instance->getValue(), $reference->getGroupId(), $reference->getNature(), '', '');
$this->reference_manager->removeCrossReference($cross_reference);
}
}
}