本文整理匯總了PHP中ProjectManager::getParentProject方法的典型用法代碼示例。如果您正苦於以下問題:PHP ProjectManager::getParentProject方法的具體用法?PHP ProjectManager::getParentProject怎麽用?PHP ProjectManager::getParentProject使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ProjectManager
的用法示例。
在下文中一共展示了ProjectManager::getParentProject方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: recursivelyCreateUmbrellaProjects
/**
* Creates the Umbrella Projects of a given project
* @param Git_RemoteServer_GerritServer[] $gerrit_servers
* @param Project $project
*/
public function recursivelyCreateUmbrellaProjects(array $gerrit_servers, Project $project)
{
$parent_project = $this->project_manager->getParentProject($project->getID());
$this->createProjectOnServers($gerrit_servers, $project);
if (!$parent_project) {
$this->resetProjectInheritanceOnServers($gerrit_servers, $project);
return;
}
$this->recursivelyCreateUmbrellaProjects($gerrit_servers, $parent_project);
$this->setProjectInheritanceOnServers($gerrit_servers, $project, $parent_project);
}