本文整理匯總了PHP中ReferenceManager::insertCrossReference方法的典型用法代碼示例。如果您正苦於以下問題:PHP ReferenceManager::insertCrossReference方法的具體用法?PHP ReferenceManager::insertCrossReference怎麽用?PHP ReferenceManager::insertCrossReference使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ReferenceManager
的用法示例。
在下文中一共展示了ReferenceManager::insertCrossReference方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: insertBetweenTwoArtifacts
/**
* Save in database a cross reference between $source_artifact and $target_artifact
*
* @param Tracker_Artifact $source_artifact
* @param Tracker_Artifact $target_artifact
* @param PFUser $user
*
* @return boolean
*/
public function insertBetweenTwoArtifacts(Tracker_Artifact $source_artifact, Tracker_Artifact $target_artifact, PFUser $user)
{
return $this->reference_manager->insertCrossReference($this->getCrossReferenceBetweenTwoArtifacts($source_artifact, $target_artifact, $user));
}