PHP Class DB\Mongo

Afficher le fichier Open project: bcosca/fatfree-core Class Usage Examples

Protected Properties

Свойство Type Description
$db @}
$dsn @}
$log @}
$uuid @}

Méthodes publiques

Méthode 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

Méthode Description
__clone ( ) ! Prohibit cloning

Method Details

__call() public méthode

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

__construct() public méthode

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

drop() public méthode

Intercept native call to re-enable profiler
public drop ( ) : integer
Résultat integer

dsn() public méthode

Return data source name
public dsn ( ) : string
Résultat string

log() public méthode

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

uuid() public méthode

Return UUID
public uuid ( ) : string
Résultat 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