HU/isBrowserDomainBlocked: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0150|1.5|| This function checks if the specified URL is blocked from being loaded. }} ==Syntax== <syntaxhighlight lang="lua...")
 
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function hu}}
{{New feature/item|3.0150|1.5||
{{New feature/item|3.0150|1.5||
This function checks if the specified URL is blocked from being loaded.
Ez a függvény leellenőrzi, hogy egy adott URL betöltése tiltott-e.
}}
}}


==Syntax==
==Szintaxis==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool isBrowserDomainBlocked ( string address [, bool isURL = false] )
bool isBrowserDomainBlocked ( string address [, bool isURL = false] )
Line 11: Line 11:
{{OOP|This is a static function under the '''Browser''' class|[[Element/Browser|Browser]].isDomainBlocked}}
{{OOP|This is a static function under the '''Browser''' class|[[Element/Browser|Browser]].isDomainBlocked}}


===Required arguments===
===Kötelező argumentumok===
*'''address:''' A website URL
*'''address:''' Egy weboldal URL


===Optional arguments===
===Opcionális argumentumok===
*'''isURL:''' ''true'' if ''address'' should be parsed as URL, ''false'' otherwise.
*'''isURL:''' ''true'' amennyiben az ''address'' egy URL, ''false'' egyébként.


===Returns===
===Visszaadott érték===
Returns ''false'' if the URL is able to be loaded, ''true'' if it is blocked and ''nil'' if an invalid domain/URL was passed.
''false'' ha az URL-t be lehet tölteni, ''true'' ha tiltott és ''nil'' ha hibás URL/domain lett megadva.


==Example==
==Példa==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
--Check the state of wiki.mtasa.com
--Check the state of wiki.mtasa.com
Line 32: Line 32:
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==Lásd még==
{{CEF_functions_hu}}
{{CEF_functions_hu}}
[[en:isBrowserDomainBlocked]]
==Fordította==
*'''WorthlessCynomys'''
[[en:isBrowserDomainBlocked]]

Latest revision as of 10:31, 11 August 2018

Ez a függvény leellenőrzi, hogy egy adott URL betöltése tiltott-e.

Szintaxis

bool isBrowserDomainBlocked ( string address [, bool isURL = false] )

OOP Syntax Help! I don't understand this!

Note: This is a static function under the Browser class
Method: Browser.isDomainBlocked(...)


Kötelező argumentumok

  • address: Egy weboldal URL

Opcionális argumentumok

  • isURL: true amennyiben az address egy URL, false egyébként.

Visszaadott érték

false ha az URL-t be lehet tölteni, true ha tiltott és nil ha hibás URL/domain lett megadva.

Példa

--Check the state of wiki.mtasa.com
if ( isBrowserDomainBlocked ( "wiki.mtasa.com" ) ) then
	--If it is blocked.
	outputChatBox("wiki.mtasa.com is blocked and can't be loaded right now!")
else
	--If it is not blocked. (Was accepted by the user)
	outputChatBox("wiki.mtasa.com is not blocked and ready to be loaded!")
end

Lásd még

GUI Függvények

Fordította

  • WorthlessCynomys