当前位置: 首页>>代码示例>>PHP>>正文


PHP GitRepository::getRemoteServerId方法代码示例

本文整理汇总了PHP中GitRepository::getRemoteServerId方法的典型用法代码示例。如果您正苦于以下问题:PHP GitRepository::getRemoteServerId方法的具体用法?PHP GitRepository::getRemoteServerId怎么用?PHP GitRepository::getRemoteServerId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GitRepository的用法示例。


在下文中一共展示了GitRepository::getRemoteServerId方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getRemoteRepositoryInfoDone

 private function getRemoteRepositoryInfoDone()
 {
     /** @var $gerrit_server Git_RemoteServer_GerritServer */
     $gerrit_server = $this->gerrit_servers[$this->repository->getRemoteServerId()];
     $driver = $this->driver_factory->getDriver($gerrit_server);
     $gerrit_project = $driver->getGerritProjectName($this->repository);
     $link = $gerrit_server->getProjectUrl($gerrit_project);
     $html = '';
     $html .= '<div class="alert alert-info gerrit_url">';
     $html .= $GLOBALS['Language']->getText('plugin_git', 'delegated_to_gerrit');
     $html .= ' <a href="' . $link . '">' . $gerrit_project . '</a>';
     $html .= '</div>';
     return $html;
 }
开发者ID:blestab,项目名称:tuleap,代码行数:14,代码来源:ContentGerrit.php

示例2: getAccessURLs

 private function getAccessURLs()
 {
     $urls = $this->repository->getAccessURL();
     if ($this->repository->isMigratedToGerrit()) {
         $gerrit_user = $this->gerrit_usermanager->getGerritUser($this->current_user);
         $gerrit_server = $this->gerrit_servers[$this->repository->getRemoteServerId()];
         $driver = $this->driver_factory->getDriver($gerrit_server);
         $gerrit_project = $driver->getGerritProjectName($this->repository);
         $clone_url = $gerrit_server->getEndUserCloneUrl($gerrit_project, $gerrit_user);
         $this->prependGerritCloneURL($urls, $clone_url);
     }
     return $urls;
 }
开发者ID:blestab,项目名称:tuleap,代码行数:13,代码来源:Content.class.php

示例3: queueRemoteProjectReadOnly

 public function queueRemoteProjectReadOnly(GitRepository $repository)
 {
     $this->system_event_manager->createEvent(SystemEvent_GIT_GERRIT_PROJECT_READONLY::NAME, $repository->getId() . SystemEvent::PARAMETER_SEPARATOR . $repository->getRemoteServerId(), SystemEvent::PRIORITY_HIGH, SystemEvent::OWNER_APP);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:4,代码来源:SystemEventManager.class.php

示例4: getServer

 /**
  *
  * @param GitRepository $repository
  * @return Git_RemoteServer_GerritServer
  */
 public function getServer(GitRepository $repository)
 {
     $id = $repository->getRemoteServerId();
     return $this->getServerById($id);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:10,代码来源:GerritServerFactory.class.php

示例5: getGerritServerForRepository

 private function getGerritServerForRepository(GitRepository $repository)
 {
     return $this->gerrit_servers[$repository->getRemoteServerId()];
 }
开发者ID:blestab,项目名称:tuleap,代码行数:4,代码来源:Gerrit.class.php


注:本文中的GitRepository::getRemoteServerId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。