method repositoryFromUrl documentation in bbn\Appui\Project
Returns the repository's name or object from an URL.
function(string $url, bool $obj = false)
{
//search repository
if (
is_array($this->repositories)
&& count($this->repositories)
) { //if in url name of repository break loop
foreach ($this->repositories as $i => $d) {
if ((strpos($url, $i) === 0)) {
$repository = $i;
break;
}
}
//if there is name repository or total info
if (!empty($repository)) {
return empty($obj) ? $repository : $this->repositories[$repository];
}
}
return false;
//return $this->projects->repositoryFromUrl($url, $obj);
}
Returns the repository's name or object from an URL. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions