本文整理汇总了PHP中ProjectManager::getProjectFromDbRow方法的典型用法代码示例。如果您正苦于以下问题:PHP ProjectManager::getProjectFromDbRow方法的具体用法?PHP ProjectManager::getProjectFromDbRow怎么用?PHP ProjectManager::getProjectFromDbRow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProjectManager
的用法示例。
在下文中一共展示了ProjectManager::getProjectFromDbRow方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get
/**
* @param array $projectInfo The project data db row
*
* @return SVN_Apache
*/
public function get($projectInfo)
{
$requested_authentication_method = ForgeConfig::get(SVN_Apache_SvnrootConf::CONFIG_SVN_AUTH_KEY);
$svn_apache_auth = $this->getModFromPlugins($projectInfo, $requested_authentication_method);
if (!$svn_apache_auth) {
$project = $this->project_manager->getProjectFromDbRow($projectInfo);
if ($this->token_manager->isProjectAuthorizingTokens($project)) {
$svn_apache_auth = new SVN_Apache_ModPerl($projectInfo);
} else {
$svn_apache_auth = $this->getModFromLocalIncFile($projectInfo, $requested_authentication_method);
}
}
return $svn_apache_auth;
}
示例2: get
/**
* @param array $projectInfo The project data db row
*
* @return SVN_Apache
*/
public function get(array $projectInfo, $requested_authentication_method)
{
$project = $this->project_manager->getProjectFromDbRow($projectInfo);
$project_authorizes_tokens = $this->token_manager->isProjectAuthorizingTokens($project);
$svn_apache_auth = $this->getModFromPlugins($projectInfo, $requested_authentication_method, $project_authorizes_tokens);
if (!$svn_apache_auth) {
if ($project_authorizes_tokens) {
$svn_apache_auth = new SVN_Apache_ModPerl($projectInfo);
} else {
$svn_apache_auth = $this->getModFromLocalIncFile($projectInfo, $requested_authentication_method);
}
}
return $svn_apache_auth;
}
示例3: getParentProject
/**
* @param int $project_id
* @return Project | null
*/
public function getParentProject($project_id)
{
$data = $this->getDao()->getParentProject($project_id);
if ($data->count() > 0) {
return $this->project_manager->getProjectFromDbRow($data->getRow());
}
return null;
}