Added the getAuthAccessUrl method.

This commit is contained in:
Loic d'Anterroches 2009-05-27 22:54:26 +02:00
parent 6ef721d3a8
commit 44ea8f1817

View File

@ -85,6 +85,23 @@ class IDF_Scm_Svn extends IDF_Scm
return sprintf(Pluf::f('svn_remote_url'), $project->shortname);
}
/**
* Returns the URL of the subversion repository.
*
* @param IDF_Project
* @return string URL
*/
public static function getAuthAccessUrl($project, $user)
{
$conf = $project->getConf();
if (false !== ($url=$conf->getVal('svn_remote_url', false))
&& !empty($url)) {
// Remote repository
return $url;
}
return sprintf(Pluf::f('svn_remote_url'), $project->shortname);
}
/**
* Returns this object correctly initialized for the project.
*