Php/docs/class.mongocode

From Get docs
Revision as of 08:13, 9 December 2020 by Notes (talk | contribs) (autoload)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

(PECL mongo >=0.8.3)

Warning This extension that defines this class is deprecated. Instead, the MongoDB extension should be used. Alternatives to this class include:


Introduction

Represents JavaScript code for the database.

MongoCode objects are composed of two parts: a string of code and an optional scope. The string of code must be valid JavaScript. The scope is a associative array of variable name/value pairs.


Class synopsis


MongoCode {

/* Methods */

public __construct ( string $code [, array $scope = array() ] )

public __toString ( ) : string

}

Table of Contents