PHP Class DB\Mongo

Mostra file Open project: bcosca/fatfree-core Class Usage Examples

Protected Properties

Property Type Description
$db @}
$dsn @}
$log @}
$uuid @}

Public Methods

Method Description
__call ( $func, array $args ) : mixed Redirect call to MongoDB object
__construct ( $dsn, $dbname, array $options = NULL ) Instantiate class
drop ( ) : integer Intercept native call to re-enable profiler
dsn ( ) : string Return data source name
log ( $flag = TRUE ) : string Return MongoDB profiler results (or disable logging)
uuid ( ) : string Return UUID

Private Methods

Method Description
__clone ( ) ! Prohibit cloning

Method Details

__call() public method

Redirect call to MongoDB object
public __call ( $func, array $args ) : mixed
$func string
$args array array
return mixed

__construct() public method

Instantiate class
public __construct ( $dsn, $dbname, array $options = NULL )
$dsn string
$dbname string
$options array array

drop() public method

Intercept native call to re-enable profiler
public drop ( ) : integer
return integer

dsn() public method

Return data source name
public dsn ( ) : string
return string

log() public method

Return MongoDB profiler results (or disable logging)
public log ( $flag = TRUE ) : string
$flag bool
return string

uuid() public method

Return UUID
public uuid ( ) : string
return string

Property Details

$db protected_oe property

@}
protected $db

$dsn protected_oe property

@}
protected $dsn

$log protected_oe property

@}
protected $log

$uuid protected_oe property

@}
protected $uuid