V8 Javascript-Engine Integration

Inhaltsverzeichnis

Die Klasse V8Js

Einführung

Dies ist die Kernklasse der V8JS-Erweiterung. Jede Instanz dieser Klasse hat einen eigenen Kontext in dem alles JavaScript kompiliert und ausgeführt wird.

Für mehr Informationen, siehe V8Js::__construct.

Klassenbeschreibung

V8Js
class V8Js {
/* Konstanten */
const string V8Js::V8_VERSION ;
const integer V8Js::FLAG_NONE = 1 ;
const integer V8Js::FLAG_FORCE_ARRAY = 2 ;
/* Methoden */
public __construct ([ string $object_name = "PHP" [, array $variables = array() [, array $extensions = array() [, bool $report_uncaught_exceptions = TRUE ]]]] )
public mixed executeString ( string $script [, string $identifier = "V8Js::executeString()" [, int $flags = V8Js::FLAG_NONE ]] )
public static array getExtensions ( void )
public V8JsException getPendingException ( void )
public static bool registerExtension ( string $extension_name , string $script [, array $dependencies = array() [, bool $auto_enable = FALSE ]] )
}

Vordefinierte Konstanten

V8Js Knotentypen

V8Js::V8_VERSION

Version der V8-Engine.

V8Js::FLAG_NONE

Keine Parameter.

V8Js::FLAG_FORCE_ARRAY

Verursacht, dass alle JavaScript-Objekte in PHP als assoziatove Arrays abgebildet werden.

Die Klasse V8JsException

Einführung

Klassenbeschreibung

V8JsException
class V8JsException extends Exception {
/* Eigenschaften */
protected $JsFileName ;
protected $JsLineNumber ;
protected $JsSourceLine ;
protected $JsTrace ;
/* Geerbte Eigenschaften */
protected string $message ;
protected int $code ;
protected string $file ;
protected int $line ;
/* Methoden */
final public string getJsFileName ( void )
final public int getJsLineNumber ( void )
final public string getJsSourceLine ( void )
final public string getJsTrace ( void )
/* Geerbte Methoden */
final public string Exception::getMessage ( void )
final public Exception Exception::getPrevious ( void )
final public mixed Exception::getCode ( void )
final public string Exception::getFile ( void )
final public int Exception::getLine ( void )
final public array Exception::getTrace ( void )
final public string Exception::getTraceAsString ( void )
public string Exception::__toString ( void )
final private void Exception::__clone ( void )
}

Eigenschaften

JsFileName

JsLineNumber

JsSourceLine

JsTrace