V8Js::__construct
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
V8Js::__construct
Референца за `v8js.construct.php` со подобрена типографија и навигација.
= NULL
string
$object_name V8Js::__construct(),array
$variables = "PHP",array
$extensions = "PHP",bool
$report_uncaught_exceptions = true)
(PHP 5, PHP 7, PHP 8, PECL tidy >= 0.5.2) V8Js object.
Параметри
object_name-
The name of the object passed to Javascript.
variables-
Map of PHP variables that will be available in Javascript. Must be an associative array in format
array("name-for-js" => "name-of-php-variable"). Defaults to empty array. extensions-
List of extensions registered using V8Js::registerExtension() which should be available in the Javascript context of the created V8Js object.
Забелешка:
Extensions registered to be enabled automatically do not need to be listed in this array. Also if an extension has dependencies, those dependencies can be omitted as well. Defaults to empty array.
report_uncaught_exceptions-
Controls whether uncaught Javascript exceptions are reported immediately or not. Defaults to
true. Ако е поставено наfalsethe uncaught exception can be accessed using V8Js::getPendingException().