PHP Doku:: Construct a new V8Js object - v8js.construct.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige GrunderweiterungenV8 Javascript Engine IntegrationThe V8Js classV8Js::__construct

Ein Service von Reinhard Neidl - Webprogrammierung.

The V8Js class

<<The V8Js class

V8Js::executeString>>

V8Js::__construct

(PECL v8js >= 0.1.0)

V8Js::__constructConstruct a new V8Js object

Beschreibung

V8Js::__construct ([ string $object_name = "PHP" [, array $variables = array() [, array $extensions = array() [, bool $report_uncaught_exceptions = TRUE ]]]] )

Constructs a new V8Js object.

Parameter-Liste

object_name

The name of the object passed to Javascript. Defaults to PHP.

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.

Hinweis:

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. If set to FALSE the uncaught exception can be accessed using V8Js::getPendingException().

Rückgabewerte

Returns a new V8Js context object.


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)