public function isLinkAllowed(string $link): bool
	{
		if (isset($this->allowedLinks[$link])) {
			return true;
		} else {
			$pos = strrpos($link, ':');
			$link = substr($link, 0, ($pos + 1));
			return isset($this->allowedLinks[$link]);
		}
	}
public function isLinkAllowed(string $link): bool
	{
		if (isset($this->allowedLinks[$link])) {
			return true;
		} else {
			$pos = strrpos($link, ':');
			$link = substr($link, 0, ($pos + 1));
			return isset($this->allowedLinks[$link]);
		}
	}
public function isLinkAllowed ( string $ link ) : bool { if ( isset ( $ this -> allowedLinks [ $ link ] ) ) { return true ; } else { $ pos = strrpos ( $ link , ':' ) ; $ link = substr ( $ link , 0 , ( $ pos + 1 ) ) ; return isset ( $ this -> allowedLinks [ $ link ] ) ; } }
Ma opravneni zobrazit stranku?
@param string $link
@return bool
Ma opravneni zobrazit stranku?