TRUE)) {} /** * Closes this database connection * @link http://www.php.net/manual/en/mongo.close.php * * @return boolean */ public function close () {} /** * Connects to a database server * @link http://www.php.net/manual/en/mongo.connect.php * * @return boolean */ public function connect () {} /** * Connects with a database server * @link http://www.php.net/manual/en/mongo.connectutil.php * * @return boolean */ protected function connectUtil () {} /** * Drops a database [deprecated] * @see MongoDB::drop() * @link http://www.php.net/manual/en/mongo.dropdb.php * * @param mixed $db * * @return array */ public function dropDB ( $db ) {} /** * Gets a database * @link http://www.php.net/manual/en/mongo.get.php * * @param string $dbname * @return MongoDB */ public function __get ( $dbname ) {} /** * Lists all of the databases available. * @link http://www.php.net/manual/en/mongo.listdbs.php * * @return array */ public function listDBs ( ) {} /** * Gets a database collection * @link http://www.php.net/manual/en/mongo.selectcollection.php * * @param string $db * @param string $collection * * @return MongoCollection */ public function selectCollection ( $db , $collection ) {} /** * Gets a database * @link http://www.php.net/manual/en/mongo.selectdb.php * * @param string $dbname * @return MongoDB */ public function selectDB ( $name ) {} /** * String representation of this connection * @link http://www.php.net/manual/en/mongo.tostring.php * * @return string */ public function __toString () {} } /** * Instances of this class are used to interact with a database. * * @link http://www.php.net/manual/en/class.mongodb.php */ class MongoDB { /* Constants */ const PROFILING_OFF = 0 ; const PROFILING_SLOW = 1 ; const PROFILING_ON = 2 ; /* Fields */ public $w = 1 ; public $wtimeout = 10000 ; /* Methods */ /** * Creates a new database * @link http://www.php.net/manual/en/mongodb.construct.php * * @param Mongo $conn * @param string $name */ public function __construct ( $conn , $name ) {} /** * Log in to this database * @link http://www.php.net/manual/en/mongodb.authenticate.php * * @param string $username * @param string $password * @return array */ public function authenticate ( $username , $password ) {} /** * Execute a database command * @link http://www.php.net/manual/en/mongodb.command.php * * @param array $data * @return array */ public function command ( array $data ) {} /** * Creates a collection * @link http://www.php.net/manual/en/mongodb.createcollection.php * * @param string $name * @param bool $capped * @param int $size * @param int $max * * @return MongoCollection */ public function createCollection ( $name , $capped = FALSE, $size = 0, $max = 0) {} /** * Creates a database reference * @link * * @param string $collection * @param mixed $a * * @return array */ public function createDBRef ( string $collection , mixed $a ) {} /** * Drops this database * @link http://www.php.net/manual/en/mongodb.drop.php * * @return array */ public function drop () {} /** * Drops a collection [deprecated] * @link http://www.php.net/manual/en/mongodb.dropcollection.php * @see MongoCollection::drop() * * @param mixed $coll * * @return array */ public function dropCollection ( $coll ) {} /** * Runs JavaScript code on the database server. * @link http://www.php.net/manual/en/mongodb.execute.php * * @param mixed $code * @param array $args * * @returnarray */ public function execute ( $code, array $args = array() ) {} /** * Creates a database error * @link http://www.php.net/manual/en/mongodb.forceerror.php * * @return bool */ public function forceError ( ) {} /** * Gets a collection * @link http://www.php.net/manual/en/mongodb.get.php * * @param string $name * * @return MongoCollection */ public function __get ( $name ) {} /** * Fetches the document pointed to by a database reference * @link http://www.php.net/manual/en/mongodb.getdbref.php * * @param array $ref * * @return array */ public function getDBRef ( $ref ) {} /** * Fetches toolkit for dealing with files stored in this database * @link http://www.php.net/manual/en/mongodb.getgridfs.php * * @param string $prefix * * @return MongoGridFS */ public function getGridFS ( $prefix = "fs" ) {} /** * Gets this database's profiling level * @link http://www.php.net/manual/en/mongodb.getprofilinglevel.php * * @return int */ public function getProfilingLevel ( ) {} /** * Check if there was an error on the most recent db operation performed * @link http://www.php.net/manual/en/mongodb.lasterror.php * * @return array */ public function lastError ( ) {} /** * Get a list of collections in this database * @link http://www.php.net/manual/en/mongodb.listcollections.php * * @return array */ public function listCollections ( ) {} /** * Checks for the last error thrown during a database operation * @link http://www.php.net/manual/en/mongodb.preverror.php * * @return array */ public function prevError ( ) {} /** * Repairs and compacts this database * @link http://www.php.net/manual/en/mongodb.repair.php * * @param bool $preserve_cloned_files * @param bool $backup_original_files * * @return array */ public function repair ($preserve_cloned_files = FALSE, $backup_original_files = FALSE ) {} /** * Clears any flagged errors on the database * @link http://www.php.net/manual/en/mongodb.reseterror.php * * @return array */ public function resetError () {} /** * Gets a collection * @link http://www.php.net/manual/en/mongodb.selectcollection.php * * @param string $name * * @return MongoCollection */ public function selectCollection ( $name ) {} /** * Sets this database's profiling level * @link http://www.php.net/manual/en/mongodb.setprofilinglevel.php * * @param int $level * * @return int */ public function setProfilingLevel ( $level ) {} /** * The name of this database * * @link http://www.php.net/manual/en/mongodb.--tostring.php * * @return string */ public function __toString ( ) {} } /** * Representations a database collection. * * @link http://www.php.net/manual/en/class.mongocollection.php */ class MongoCollection { /* Constants */ /** * @link http://www.php.net/manual/en/class.mongocollection.php#mongocollection.constants.ascending */ const ASCENDING = 1; /** * @link http://www.php.net/manual/en/class.mongocollection.php#mongocollection.constants.descending */ const DESCENDING = -1; /* Fields */ /** * @link http://www.php.net/manual/en/class.mongodb.php */ public $MongoDB = NULL; /* Methods */ /** * Inserts multiple documents into this collection * @link http://www.php.net/manual/en/mongocollection.batchinsert.php * * @param array $a * @param array $options * * @return mixed */ public function batchInsert(array $a, array $options = array()) {} /** * Creates a new collection * @link http://www.php.net/manual/en/mongocollection.construct.php * * @param MongoDB $db * @param string $name * * @return MongoDB */ public function __construct(MongoDB $db, $name) {} /** * Counts the number of documents in this collection * @link http://www.php.net/manual/en/mongocollection.count.php * * @param array $query * @param int $limit * @param int $skip * * @return int */ public function count(array $query = array(), $limit = 0, $skip = 0) {} /** * Creates a database reference * @link http://www.php.net/manual/en/mongocollection.createdbref.php * * @param array $a * * @return array */ public function createDBRef(array $a) {} /** * Deletes an index from this collection * @link http://www.php.net/manual/en/mongocollection.deleteindex.php * * @param string|array $keys * * @return array */ public function deleteIndex($keys) {} /** * Delete all indices for this collection * @link http://www.php.net/manual/en/mongocollection.deleteindexes.php * * * @return array */ public function deleteIndexes() {} /** * Drops this collection * @link http://www.php.net/manual/en/mongocollection.drop.php * * * @return array */ public function drop() {} /** * Creates an index on the given field(s), or does nothing if the index already exists * @link http://www.php.net/manual/en/mongocollection.ensureindex.php * * @param array $keys * @param array $options * * @return boolean */ public function ensureIndex(array $keys, array $options) {} /** * Querys this collection * @link http://www.php.net/manual/en/mongocollection.find.php * * @param array $query * @param array $fields * * @return MongoCursor */ public function find(array $query = array(), array $fields = array()) {} /** * Querys this collection, returning a single element * @link http://www.php.net/manual/en/mongocollection.findone.php * * @param array $query * @param array $fields * * @return array */ public function findOne(array $query = array(), array $fields = array()) {} /** * Gets a collection * @link http://www.php.net/manual/en/mongocollection.get.php * * @param string $name * * @return MongoCollection */ public function __get($name) {} /** * Fetches the document pointed to by a database reference * @link http://www.php.net/manual/en/mongocollection.getdbref.php * * @param array $ref * * @return array */ public function getDBRef(array $ref) {} /** * Returns an array of index names for this collection * @link http://www.php.net/manual/en/mongocollection.getindexinfo.php * * * @return array */ public function getIndexInfo() {} /** * Returns this collection's name * @link http://www.php.net/manual/en/mongocollection.getname.php * * * @return string */ public function getName() {} /** * Performs an operation similar to SQL's GROUP BY command * @link http://www.php.net/manual/en/mongocollection.group.php * * @param mixed $keys * @param array $initial * @param MongoCode $reduce * @param array $options * * @return array */ public function group($keys, array $initial, MongoCode $reduce, array $options = array()) {} /** * Inserts an array into the collection * @link http://www.php.net/manual/en/mongocollection.insert.php * * @param array $a * @param array $options * * @return mixed */ public function insert(array $a, array $options = array()) {} /** * Remove records from this collection * @link http://www.php.net/manual/en/mongocollection.remove.php * * @param array $criteria * @param array $options * * @return mixed */ public function remove(array $criteria, array $options = array()) {} /** * Saves an object to this collection * @link http://www.php.net/manual/en/mongocollection.save.php * * @param array $a * @param array $options * * @return mixed */ public function save(array $a, array $options = array()) {} /** * String representation of this collection * @link http://www.php.net/manual/en/mongocollection.--tostring.php * * * @return string */ public function __toString() {} /** * Update records based on a given criteria * @link http://www.php.net/manual/en/mongocollection.update.php * * @param array $criteria * @param array $newobj * @param array $options * * @return boolean */ public function update(array $criteria, array $newobj, array $options = array()) {} /** * Validates this collection * @link http://www.php.net/manual/en/mongocollection.validate.php * * @param bool $scan_data * * @return array */ public function validate($scan_data = FALSE) {} } /** * Result object for database query. * * @link http://www.php.net/manual/en/class.mongocursor.php */ class MongoCursor implements Iterator { /* Static Fields */ /* Methods */ /** * Adds a top-level key/value pair to a query * @link http://www.php.net/manual/en/mongocursor.addoption.php * * @param string $key * @param mixed $value * * @return MongoCursor */ public function addOption($key, $value) {} /** * Create a new cursor * @link http://www.php.net/manual/en/mongocursor.construct.php * * @param resource $connection * @param string $ns * @param array $query * @param array $fields * * @return resource */ function __construct(resource $connection, $ns, array $query = array(), array $fields = array()) {} /** * Counts the number of results for this query * @link http://www.php.net/manual/en/mongocursor.count.php * * @param boolean $foundOnly * * @return int */ public function count($foundOnly = FALSE) {} /** * Returns the current element * @link http://www.php.net/manual/en/mongocursor.current.php * * * @return array */ public function current() {} /** * Checks if there are documents that have not been sent yet from the database for this cursor * @link http://www.php.net/manual/en/mongocursor.dead.php * * * @return boolean */ public function dead() {} /** * Execute the query. * @link http://www.php.net/manual/en/mongocursor.doquery.php * * * @return void */ protected function doQuery() {} /** * Return an explanation of the query, often useful for optimization and debugging * @link http://www.php.net/manual/en/mongocursor.explain.php * * * @return array */ public function explain() {} /** * Sets the fields for a query * @link http://www.php.net/manual/en/mongocursor.fields.php * * @param array $f * * @return MongoCursor */ public function fields(array $f) {} /** * Return the next object to which this cursor points, and advance the cursor * @link http://www.php.net/manual/en/mongocursor.getnext.php * * * @return array */ public function getNext() {} /** * Checks if there are any more elements in this cursor * @link http://www.php.net/manual/en/mongocursor.hasnext.php * * * @return boolean */ public function hasNext() {} /** * Gives the database a hint about the query * @link http://www.php.net/manual/en/mongocursor.hint.php * * @param array $key_pattern * * @return MongoCursor */ public function hint(array $key_pattern) {} /** * Sets whether this cursor will timeout * @link http://www.php.net/manual/en/mongocursor.immortal.php * * @param boolean $liveForever * * @return MongoCursor */ public function immortal($liveForever = true) {} /** * Gets the query, fields, limit, and skip for this cursor * @link http://www.php.net/manual/en/mongocursor.info.php * * * @return array */ public function info() {} /** * Returns the current result's _id * @link http://www.php.net/manual/en/mongocursor.key.php * * * @return string */ public function key() {} /** * Limits the number of results returned * @link http://www.php.net/manual/en/mongocursor.limit.php * * @param int $num * * @return MongoCursor */ public function limit($num) {} /** * Advances the cursor to the next result * @link http://www.php.net/manual/en/mongocursor.next.php * * * @return void */ public function next() {} /** * Clears the cursor * @link http://www.php.net/manual/en/mongocursor.reset.php * * * @return void */ public function reset() {} /** * Returns the cursor to the beginning of the result set * @link http://www.php.net/manual/en/mongocursor.rewind.php * * * @return void */ public function rewind() {} /** * Skips a number of results * @link http://www.php.net/manual/en/mongocursor.skip.php * * @param int $num * * @return MongoCursor */ public function skip($num) {} /** * Sets whether this query can be done on a slave * @link http://www.php.net/manual/en/mongocursor.slaveOkay.php * * @param boolean $okay * * @return MongoCursor */ public function slaveOkay($okay = true) {} /** * Use snapshot mode for the query * @link http://www.php.net/manual/en/mongocursor.snapshot.php * * * @return MongoCursor */ public function snapshot() {} /** * Sorts the results by given fields * @link http://www.php.net/manual/en/mongocursor.sort.php * * @param array $fields * * @return MongoCursor */ public function sort(array $fields) {} /** * Sets whether this cursor will be left open after fetching the last results * @link http://www.php.net/manual/en/mongocursor.tailable.php * * @param boolean $tail * * @return MongoCursor */ public function tailable($tail = true) {} /** * Sets a client-side timeout for this query * @link http://www.php.net/manual/en/mongocursor.timeout.php * * @param int $ms * * @return MongoCursor */ public function timeout($ms) {} /** * Checks if the cursor is reading a valid result. * @link http://www.php.net/manual/en/mongocursor.valid.php * * * @return boolean */ public function valid() {} } /** * A unique identifier created for database objects. If an object is inserted * into the database without an _id field, an _id field will be added to it * with a MongoId instance as its value. If the data * has a naturally occuring unique field (say, a username or timestamp) it is * fine to use this as the _id field instead, and it will not be replaced with * a MongoId. * * @link http://www.php.net/manual/en/class.mongoid.php */ class MongoId { /* Methods */ /** * Creates a new id * @link http://www.php.net/manual/en/mongoid.construct.php * * @param string $id * * @return string */ function __construct($id = NULL) {} /** * Gets the hostname being used for this machine's ids * @link http://www.php.net/manual/en/mongoid.gethostname.php * * * @return string */ public function getHostname() {} /** * Gets the number of seconds since the epoch that this id was created * @link http://www.php.net/manual/en/mongoid.gettimestamp.php * * * @return int */ public function getTimestamp() {} /** * Create a dummy MongoId * @link http://www.php.net/manual/en/mongoid.setstate.php * * @param array $props * * @return MongoId */ public function __set_state(array $props) {} /** * Returns a hexidecimal representation of this id * @link http://www.php.net/manual/en/mongoid.tostring.php * * * @return string */ public function __toString() {} } /** * Represents JavaScript code for the database. * * @link http://www.php.net/manual/en/class.mongocode.php */ class MongoCode { /* Methods */ /** * Creates a new code object * @link http://www.php.net/manual/en/mongocode.construct.php * * @param string $code * @param array $scope * * @return string */ function __construct($code, array $scope = array()) {} /** * Returns this code as a string * @link http://www.php.net/manual/en/mongocode.tostring.php * * * @return string */ public function __toString() {} } /** * Represent date objects for the database. This class should be used to save * dates to the database and to query for dates. For example: * * @link http://www.php.net/manual/en/class.mongodate.php */ class MongoDate { /* Fields */ /* Methods */ /** * Creates a new date. * @link http://www.php.net/manual/en/mongodate.construct.php * * @param long $sec * @param long $usec * * @return long */ function __construct(long $sec, long $usec) {} /** * Returns a string representation of this date * @link http://www.php.net/manual/en/mongodate.tostring.php * * * @return string */ public function __toString() {} } /** * This class can be used to create regular expressions. Typically, these * expressions will be used to query the database and find matching strings. * More unusually, they can be saved to the database and retrieved. * * @link http://www.php.net/manual/en/class.mongoregex.php */ class MongoRegex { /* Fields */ /* Methods */ /** * Creates a new regular expression * @link http://www.php.net/manual/en/mongoregex.construct.php * * @param string $regex * * @return string */ function __construct($regex) {} /** * A string representation of this regular expression * @link http://www.php.net/manual/en/mongoregex.tostring.php * * * @return string */ public function __toString() {} } /** * An object that can be used to store or retrieve binary data from the database. * * @link http://www.php.net/manual/en/class.mongobindata.php */ class MongoBinData { /* Constants */ /** * @link http://www.php.net/manual/en/class.mongobindata.php#mongobindata.constants.func */ const FUNC = 1; /** * @link http://www.php.net/manual/en/class.mongobindata.php#mongobindata.constants.bytearray */ const BYTE_ARRAY = 2; /** * @link http://www.php.net/manual/en/class.mongobindata.php#mongobindata.constants.uuid */ const UUID = 3; /** * @link http://www.php.net/manual/en/class.mongobindata.php#mongobindata.constants.md5 */ const MD5 = 5; /** * @link http://www.php.net/manual/en/class.mongobindata.php#mongobindata.constants.custom */ const CUSTOM = 128; /* Fields */ /* Methods */ /** * Creates a new binary data object. * @link http://www.php.net/manual/en/mongobindata.construct.php * * @param string $data * @param int $type * * @return string */ public function __construct($data, $type) {} /** * The string representation of this binary data object. * @link http://www.php.net/manual/en/mongobindata.tostring.php * * * @return string */ public function __toString() {} } /** * The class can be used to save 32-bit integers to the database on a 64-bit * system. * * @link http://www.php.net/manual/en/class.mongoint32.php */ class MongoInt32 { /* Methods */ /** * Creates a new 32-bit integer. * @link http://www.php.net/manual/en/mongoint32.construct.php * * @param string $value * * @return string */ public function __construct($value) {} /** * Returns the string representation of this 32-bit integer. * @link http://www.php.net/manual/en/mongoint32.tostring.php * * * @return */ public function __toString() {} } /** * The class can be used to save 64-bit integers to the database on a 32-bit * system. * * @link http://www.php.net/manual/en/class.mongoint64.php */ class MongoInt64 { /* Methods */ /** * Creates a new 64-bit integer. * @link http://www.php.net/manual/en/mongoint64.construct.php * * @param string $value * * @return string */ public function __construct($value) {} /** * Returns the string representation of this 64-bit integer. * @link http://www.php.net/manual/en/mongoint64.tostring.php * * * @return */ public function __toString() {} } /** * This class can be used to create lightweight links between objects in * different collections. * * @link http://www.php.net/manual/en/class.mongodbref.php */ class MongoDBRef { /* Methods */ /** * Creates a new database reference * @link http://www.php.net/manual/en/mongodbref.create.php * * @param string $collection * @param mixed $id * @param string $database * * @return array */ public function create($collection, $id, $database) {} /** * Fetches the object pointed to by a reference * @link http://www.php.net/manual/en/mongodbref.get.php * * @param MongoDB $db * @param array $ref * * @return array */ public function get(MongoDB $db, array $ref) {} /** * Checks if an array is a database reference * @link http://www.php.net/manual/en/mongodbref.isref.php * * @param mixed $ref * * @return boolean */ public function isRef($ref) {} } /** * MongoMinKey is a special type used by the database * that evaluates to less than any other type. Thus, if a query is sorted by a * given field in ascending order, any document with a * MongoMinKey as its value will be returned first. * * @link http://www.php.net/manual/en/class.mongominkey.php */ class MongoMinKey {} /** * MongoMaxKey is a special type used by the database * that evaluates to greater than any other type. Thus, if a query is sorted * by a given field in ascending order, any document with a * MongoMaxKey as its value will be returned last. * * @link http://www.php.net/manual/en/class.mongomaxkey.php */ class MongoMaxKey {} /** * MongoTimestamp is used by sharding. If you're not * looking to write sharding tools, what you probably want is * MongoDate. * * @link http://www.php.net/manual/en/class.mongotimestamp.php */ class MongoTimestamp { /* Fields */ /* Methods */ /** * Creates a new timestamp. * @link http://www.php.net/manual/en/mongotimestamp.construct.php * * @param long $sec * @param long $inc * * @return long */ function __construct(long $sec, long $inc) {} /** * Returns a string representation of this timestamp * @link http://www.php.net/manual/en/mongotimestamp.tostring.php * * * @return string */ public function __toString() {} }