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:
Jeremy Mikola 2015-03-13 00:27:37 +00:00
parent 8f5c5641d1
commit 119a7f907b

View file

@ -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: