php-doc-en/reference/mongo/mongotimestamp.xml
Pierrick Charron 4724b47c25 Added new entities for Properties, Methods, InheritedMethods, Constants
# Those words were hardcoded in all class synopsis 


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@292734 c90b9560-bf6c-de11-be94-00142212c4b1
2009-12-29 09:42:00 +00:00

99 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<phpdoc:classref xml:id="class.mongotimestamp" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>The MongoTimestamp class</title>
<titleabbrev>MongoTimestamp</titleabbrev>
<partintro>
<!-- {{{ MongoTimestamp intro -->
<section xml:id="mongotimestamp.intro">
&reftitle.intro;
<para>
<classname>MongoTimestamp</classname> is used by sharding. If you're not
looking to write sharding tools, what you probably want is
<classname>MongoDate</classname>.
</para>
<para>
<classname>MongoTimestamp</classname> is 4 bytes of timestamp (seconds since
the epoch) and 4 bytes of increment.
</para>
<para>
<emphasis>
This class is not for measuring time, creating a timestamp on a
document or automatically adding or updating a timestamp on a document.
</emphasis>
Unless you are writing something that interacts with the sharding internals,
stop, go directly to <classname>MongoDate</classname>, do not pass go, do
not collect 200 dollars. This is not the class you are looking for.
</para>
<para>
If you are writing sharding tools, read on.
</para>
</section>
<!-- }}} -->
<section xml:id="mongotimestamp.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis>
<ooclass><classname>MongoTimestamp</classname></ooclass>
<!-- {{{ Class synopsis -->
<classsynopsisinfo>
<ooclass>
<classname>MongoTimestamp</classname>
</ooclass>
</classsynopsisinfo>
<!-- }}} -->
<classsynopsisinfo role="comment">Fields</classsynopsisinfo>
<fieldsynopsis>
<modifier>public</modifier>
<type>int</type>
<varname>sec</varname>
<initializer>0</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<type>int</type>
<varname>inc</varname>
<initializer>0</initializer>
</fieldsynopsis>
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.mongotimestamp')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
</classsynopsis>
<!-- }}} -->
</section>
</partintro>
&reference.mongo.entities.mongotimestamp;
</phpdoc:classref>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->