本文整理匯總了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;
}