目录搜索
文字
分享

The MongoCode class

(PECL mongo >=0.8.3)

简介

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.

类摘要

MongoCode {
public __construct ( string $code [, array $scope = array() ] )
public string __toString ( void )
}

Table of Contents

  • MongoCode::__construct — 创建一个新的代码对象
  • MongoCode::__toString — 返回代码的字符串形式
上一篇:下一篇: