PHP Class MongoLite\Client

显示文件 Open project: sjardim/Hugopit

Protected Properties

Property Type Description
$databases array
$options array
$path string

Public Methods

Method Description
__construct ( string $path, array $options = [] ) Constructor
__get ( $database )
listDBs ( ) : array List Databases
selectCollection ( string $database, string $collection ) : object Select Collection
selectDB ( string $name ) : object Select database

Method Details

__construct() public method

Constructor
public __construct ( string $path, array $options = [] )
$path string
$options array

__get() public method

public __get ( $database )

listDBs() public method

List Databases
public listDBs ( ) : array
return array List of databases

selectCollection() public method

Select Collection
public selectCollection ( string $database, string $collection ) : object
$database string
$collection string
return object

selectDB() public method

Select database
public selectDB ( string $name ) : object
$name string
return object

Property Details

$databases protected_oe property

protected array $databases
return array

$options protected_oe property

protected array $options
return array

$path protected_oe property

protected string $path
return string