docblock for isValidUrl method
This commit is contained in:
parent
2077464d46
commit
218ac05e71
1 changed files with 8 additions and 0 deletions
|
@ -23,6 +23,14 @@
|
||||||
*/
|
*/
|
||||||
class SemanticScuttle_Model_Bookmark
|
class SemanticScuttle_Model_Bookmark
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Checks if the given URL is valid and may be used with this
|
||||||
|
* SemanticScuttle installation.
|
||||||
|
*
|
||||||
|
* @param string $url URL to verify.
|
||||||
|
*
|
||||||
|
* @return boolean True if the URL is allowed, false if not
|
||||||
|
*/
|
||||||
public static function isValidUrl($url)
|
public static function isValidUrl($url)
|
||||||
{
|
{
|
||||||
$scheme = parse_url($url, PHP_URL_SCHEME);
|
$scheme = parse_url($url, PHP_URL_SCHEME);
|
||||||
|
|
Loading…
Reference in a new issue