Files
mongo-php-driver/docs/api/MongoDB/Command.php
Hannes Magnusson c9155e397b Add the actual implementation into the PHP API docs
This is used to generate the actual c classes.
- The CIMPL (Simple) section is the C Implementation
- The CEF (Chef) section is the C Definition
2014-07-16 17:59:26 +00:00

40 lines
647 B
PHP

<?php
namespace MongoDB;
/**
* Value object for a database command document.
*/
final class Command
{
private $document;
/**
* Constructs a new Command
*
* @param array|object $document Command document
*/
public function __construct($document)
{
$this->document = $document;
/*** CEF ***/
/*
bson_t *bson = bson_new();
*/
/*** CEF ***/
/*** CIMPL ***/
/*
php_phongo_bson_encode_array(bson, document TSRMLS_CC);
intern->bson = bson;
*/
/*** CIMPL ***/
}
}
$Command["free"] = <<< EOF
if (intern->bson) {
bson_free(intern->bson);
}
EOF;