mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix code and link to eval command for MongoDB::execute()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336070 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
8f5c5641d1
commit
119a7f907b
1 changed files with 11 additions and 2 deletions
|
@ -25,13 +25,15 @@
|
|||
other operations. Make sure you consider this before running a long script.
|
||||
</para>
|
||||
<para>
|
||||
This is a wrapper for a database command. This method is basically:
|
||||
This is a wrapper for the
|
||||
<link xlink:href="&url.mongodb.docs.command;eval/">eval</link> database
|
||||
command. This method is basically:
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
public function execute($code, $args) {
|
||||
return $this->command(array('$eval' => $code, 'args' => $args));
|
||||
return $this->command(array('eval' => $code, 'args' => $args));
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -195,6 +197,13 @@ Goodbye, Joe, says Fred
|
|||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<simplelist>
|
||||
<member>The MongoDB <link xlink:href="&url.mongodb.docs.command;eval/">eval command</link> docs</member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
Loading…
Reference in a new issue