SequoiaDB
 All Classes Files Functions Variables Pages
Public Member Functions | List of all members
SequoiaID Class Reference

Public Member Functions

 __construct ($oid)
 
 __toString ()
 

Detailed Description

Class for create an object of the object id type

Constructor & Destructor Documentation

SequoiaID::__construct (   $oid)

Constructor.

Parameters
string$oida string to uses as id
$oid = new SequoiaID( '123456789012345678901234' ) ;
$arr = array( 'id' => $oid ) ; // json ==> { "id": { "$oid": "123456789012345678901234" } }

Member Function Documentation

SequoiaID::__toString ( )

PHP Magic Methods, the class as string output.

Returns
object id string
$oid = new SequoiaID( '123456789012345678901234' ) ;
echo $oid ; // output ==> 123456789012345678901234

The documentation for this class was generated from the following file: