protected function isExternalUrl( $url, $home_url ) {
		$delimiter = '~';
		$pattern_home_url = preg_quote( $home_url, $delimiter );
		$pattern = $delimiter . '^' . $pattern_home_url . $delimiter . 'i';
		return ! preg_match( $pattern, $url );
	}
protected function isExternalUrl( $url, $home_url ) {
		$delimiter = '~';
		$pattern_home_url = preg_quote( $home_url, $delimiter );
		$pattern = $delimiter . '^' . $pattern_home_url . $delimiter . 'i';
		return ! preg_match( $pattern, $url );
	}
protected function isExternalUrl ( $ url , $ home_url ) { $ delimiter = '~' ; $ pattern_home_url = preg_quote ( $ home_url , $ delimiter ) ; $ pattern = $ delimiter . '^' . $ pattern_home_url . $ delimiter . 'i' ; return ! preg_match ( $ pattern , $ url ) ; }
Get if a url is external or not.

@param  string  $url
@param  string  $home_url
@return boolean
Get if a url is external or not .