Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** @phpstub */ class MongoDB { const PROFILING_OFF = 0; const PROFILING_ON..
Decoded Output download
<?php
/** @phpstub */
class MongoDB
{
const PROFILING_OFF = 0;
const PROFILING_ON = 2;
const PROFILING_SLOW = 1;
/** @var integer */
public $wtimeout;
/** @var integer */
public $w;
/**
* Creates a new database
*
* @param Mongo $conn
* @param string $name
*/
public function __construct($conn, $name)
{
}
/**
* Gets a collection
*
* @param string $name
*
* @return MongoCollection Returns the collection.
*/
public function __get($name)
{
}
/**
* The name of this database
*
* @return string Returns this databaseaposs name.
*/
public function __toString()
{
}
/**
* Log in to this database
*
* @param string $username
* @param string $password
*
* @return array Returns database response. If the login was successful, it will return
*
* If something went wrong, it will return
*
* ("auth fails" could be another message, depending on database version and what
* when wrong).
*/
public function authenticate($username, $password)
{
}
/**
* Execute a database command
*
* @param array $command
* @param array $options
*
* @return array Returns database response.
*/
public function command($command, $options = array())
{
}
/**
* Creates a collection
*
* @param string $name
* @param bool $capped
* @param int $size
* @param int $max
*
* @return MongoCollection Returns a collection object representing the new collection.
*/
public function createCollection($name, $capped = false, $size = false, $max = false)
{
}
/**
* Creates a database reference
*
* @param string $collection
* @param mixed $a
*
* @return array Returns a database reference array.
*/
public function createDBRef($collection, $a)
{
}
/**
* Drops this database
*
* @return array Returns the database response.
*/
public function drop()
{
}
/**
* Drops a collection [deprecated]
*
* @param mixed $coll
*
* @return array Returns the database response.
*/
public function dropCollection($coll)
{
}
/**
* Runs JavaScript code on the database server.
*
* @param mixed $code
* @param array $args
*
* @return array Returns the result of the evaluation.
*/
public function execute($code, $args = array())
{
}
/**
* Creates a database error
*
* @return bool Returns the database response.
*/
public function forceError()
{
}
/**
* Get all collections from this database
*
* @param bool $includeSystemCollections
*
* @return array Returns the names of the all the collections in the database as an ``array``.
*/
public function getCollectionNames($includeSystemCollections = false)
{
}
/**
* Fetches the document pointed to by a database reference
*
* @param array $ref
*
* @return array Returns the document pointed to by the reference.
*/
public function getDBRef($ref)
{
}
/**
* Fetches toolkit for dealing with files stored in this database
*
* @param string $prefix
*
* @return MongoGridFS Returns a new gridfs object for this database.
*/
public function getGridFS($prefix = 'quotfsquot')
{
}
/**
* Gets this databaseaposs profiling level
*
* @return int Returns the profiling level.
*/
public function getProfilingLevel()
{
}
/**
* Get the read preference for this database
*
* @return array This function returns an array describing the read preference. The array
* contains the values for the numeric read preference
* mode, for the name of the read preference
* mode, and containing a list of all tag set
* criteria. If no tag sets were specified, will not
* be present in the array.
*/
public function getReadPreference()
{
}
/**
* Get slaveOkay setting for this database
*
* @return bool Returns the value of slaveOkay for this instance.
*/
public function getSlaveOkay()
{
}
/**
* Check if there was an error on the most recent db operation performed
*
* @return array Returns the error, if there was one.
*/
public function lastError()
{
}
/**
* Get an of MongoCollection for this database
*
* @param bool $includeSystemCollections
*
* @return array Returns an array of MongoCollections.
*/
public function listCollections($includeSystemCollections = false)
{
}
/**
* Checks for the last error thrown during a database operation
*
* @return array Returns the error and the number of operations ago it occurred.
*/
public function prevError()
{
}
/**
* Repairs and compacts this database
*
* @param bool $preserve_cloned_files
* @param bool $backup_original_files
*
* @return array Returns db response.
*/
public function repair($preserve_cloned_files = false, $backup_original_files = false)
{
}
/**
* Clears any flagged errors on the database
*
* @return array Returns the database response.
*/
public function resetError()
{
}
/**
* Gets a collection
*
* @param string $name
*
* @return MongoCollection Returns the collection.
*/
public function selectCollection($name)
{
}
/**
* Sets this databaseaposs profiling level
*
* @param int $level
*
* @return int Returns the previous profiling level.
*/
public function setProfilingLevel($level)
{
}
/**
* Set the read preference for this database
*
* @param int $read_preference
* @param array $tags
*
* @return bool
*/
public function setReadPreference($read_preference, $tags = array())
{
}
/**
* Change slaveOkay setting for this database
*
* @param bool $ok
*
* @return bool Returns the former value of slaveOkay for this instance.
*/
public function setSlaveOkay($ok = true)
{
}
} ?>
Did this file decode correctly?
Original Code
<?php
/** @phpstub */
class MongoDB
{
const PROFILING_OFF = 0;
const PROFILING_ON = 2;
const PROFILING_SLOW = 1;
/** @var integer */
public $wtimeout;
/** @var integer */
public $w;
/**
* Creates a new database
*
* @param Mongo $conn
* @param string $name
*/
public function __construct($conn, $name)
{
}
/**
* Gets a collection
*
* @param string $name
*
* @return MongoCollection Returns the collection.
*/
public function __get($name)
{
}
/**
* The name of this database
*
* @return string Returns this databaseaposs name.
*/
public function __toString()
{
}
/**
* Log in to this database
*
* @param string $username
* @param string $password
*
* @return array Returns database response. If the login was successful, it will return
*
* If something went wrong, it will return
*
* ("auth fails" could be another message, depending on database version and what
* when wrong).
*/
public function authenticate($username, $password)
{
}
/**
* Execute a database command
*
* @param array $command
* @param array $options
*
* @return array Returns database response.
*/
public function command($command, $options = array())
{
}
/**
* Creates a collection
*
* @param string $name
* @param bool $capped
* @param int $size
* @param int $max
*
* @return MongoCollection Returns a collection object representing the new collection.
*/
public function createCollection($name, $capped = false, $size = false, $max = false)
{
}
/**
* Creates a database reference
*
* @param string $collection
* @param mixed $a
*
* @return array Returns a database reference array.
*/
public function createDBRef($collection, $a)
{
}
/**
* Drops this database
*
* @return array Returns the database response.
*/
public function drop()
{
}
/**
* Drops a collection [deprecated]
*
* @param mixed $coll
*
* @return array Returns the database response.
*/
public function dropCollection($coll)
{
}
/**
* Runs JavaScript code on the database server.
*
* @param mixed $code
* @param array $args
*
* @return array Returns the result of the evaluation.
*/
public function execute($code, $args = array())
{
}
/**
* Creates a database error
*
* @return bool Returns the database response.
*/
public function forceError()
{
}
/**
* Get all collections from this database
*
* @param bool $includeSystemCollections
*
* @return array Returns the names of the all the collections in the database as an ``array``.
*/
public function getCollectionNames($includeSystemCollections = false)
{
}
/**
* Fetches the document pointed to by a database reference
*
* @param array $ref
*
* @return array Returns the document pointed to by the reference.
*/
public function getDBRef($ref)
{
}
/**
* Fetches toolkit for dealing with files stored in this database
*
* @param string $prefix
*
* @return MongoGridFS Returns a new gridfs object for this database.
*/
public function getGridFS($prefix = 'quotfsquot')
{
}
/**
* Gets this databaseaposs profiling level
*
* @return int Returns the profiling level.
*/
public function getProfilingLevel()
{
}
/**
* Get the read preference for this database
*
* @return array This function returns an array describing the read preference. The array
* contains the values for the numeric read preference
* mode, for the name of the read preference
* mode, and containing a list of all tag set
* criteria. If no tag sets were specified, will not
* be present in the array.
*/
public function getReadPreference()
{
}
/**
* Get slaveOkay setting for this database
*
* @return bool Returns the value of slaveOkay for this instance.
*/
public function getSlaveOkay()
{
}
/**
* Check if there was an error on the most recent db operation performed
*
* @return array Returns the error, if there was one.
*/
public function lastError()
{
}
/**
* Get an of MongoCollection for this database
*
* @param bool $includeSystemCollections
*
* @return array Returns an array of MongoCollections.
*/
public function listCollections($includeSystemCollections = false)
{
}
/**
* Checks for the last error thrown during a database operation
*
* @return array Returns the error and the number of operations ago it occurred.
*/
public function prevError()
{
}
/**
* Repairs and compacts this database
*
* @param bool $preserve_cloned_files
* @param bool $backup_original_files
*
* @return array Returns db response.
*/
public function repair($preserve_cloned_files = false, $backup_original_files = false)
{
}
/**
* Clears any flagged errors on the database
*
* @return array Returns the database response.
*/
public function resetError()
{
}
/**
* Gets a collection
*
* @param string $name
*
* @return MongoCollection Returns the collection.
*/
public function selectCollection($name)
{
}
/**
* Sets this databaseaposs profiling level
*
* @param int $level
*
* @return int Returns the previous profiling level.
*/
public function setProfilingLevel($level)
{
}
/**
* Set the read preference for this database
*
* @param int $read_preference
* @param array $tags
*
* @return bool
*/
public function setReadPreference($read_preference, $tags = array())
{
}
/**
* Change slaveOkay setting for this database
*
* @param bool $ok
*
* @return bool Returns the former value of slaveOkay for this instance.
*/
public function setSlaveOkay($ok = true)
{
}
}
Function Calls
| None |
Stats
| MD5 | 596c74de3f083a770fa588dfe32aecea |
| Eval Count | 0 |
| Decode Time | 97 ms |