本文整理汇总了PHP中GitRepository::getGitRootPath方法的典型用法代码示例。如果您正苦于以下问题:PHP GitRepository::getGitRootPath方法的具体用法?PHP GitRepository::getGitRootPath怎么用?PHP GitRepository::getGitRootPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GitRepository
的用法示例。
在下文中一共展示了GitRepository::getGitRootPath方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getView
private function getView()
{
if (empty($_REQUEST['a'])) {
$_REQUEST['a'] = 'summary';
} else {
if ($_REQUEST['a'] === 'blobdiff' && isset($_REQUEST['jenkins']) && $_REQUEST['jenkins'] === 'true') {
$this->inverseURLArgumentsForGitPhpDiff();
}
}
set_time_limit(300);
$_GET['a'] = $_REQUEST['a'];
$_REQUEST['group_id'] = $this->repository->getProjectId();
$_REQUEST['repo_id'] = $this->repository->getId();
$_REQUEST['repo_name'] = $this->repository->getFullName();
$_GET['p'] = $_REQUEST['repo_name'] . '.git';
$_REQUEST['repo_path'] = $this->repository->getPath();
$_REQUEST['project_dir'] = $this->repository->getProject()->getUnixName();
$_REQUEST['git_root_path'] = $this->repository->getGitRootPath();
$_REQUEST['action'] = 'view';
$this->preSanitizeRequestForGitphp();
if (empty($_REQUEST['noheader'])) {
echo '<div id="gitphp" class="plugin_git_gitphp">';
}
include $this->getGitPhpIndexPath();
if (empty($_REQUEST['noheader'])) {
echo '</div>';
}
}
示例2: getView
/**
* Configure gitphp output
*
* @param GitRepository $repository
*/
public function getView($repository)
{
include_once 'common/include/Codendi_HTMLPurifier.class.php';
if (empty($_REQUEST['a'])) {
$_REQUEST['a'] = 'summary';
}
set_time_limit(300);
$_GET['a'] = $_REQUEST['a'];
$_REQUEST['group_id'] = $this->groupId;
$_REQUEST['repo_id'] = $repository->getId();
$_REQUEST['repo_name'] = $repository->getFullName();
$_GET['p'] = $_REQUEST['repo_name'] . '.git';
$_REQUEST['repo_path'] = $repository->getPath();
$_REQUEST['project_dir'] = $repository->getProject()->getUnixName();
$_REQUEST['git_root_path'] = $repository->getGitRootPath();
$_REQUEST['action'] = 'view';
if (empty($_REQUEST['noheader'])) {
//echo '<hr>';
echo '<div id="gitphp">';
}
include $this->getGitPhpIndexPath();
if (empty($_REQUEST['noheader'])) {
echo '</div>';
}
}