Maslosoft Mangan API
Class Mangan
MongoDB
This is merge work of tyohan, Alexander Makarov and mine
- Maslosoft\Mangan\Mangan implements Psr\Log\LoggerAwareInterface uses Maslosoft\Mangan\Traits\Defaults\MongoClientOptions
Author: Ianaré Sévi
Author: Dariusz Górecki darek.krk@gmail.com
Author: Invenzzia Group, open-source division of CleverIT company http://www.invenzzia.org
Copyright: 2011 CleverIT http://www.cleverit.com.pl
Since: v1.0
Located at Mangan.php
Methods summary
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
Psr\Log\LoggerInterface
|
|
public
|
#
getProfiler( )
Get profiler instance. This is guaranted, if not configured will return NullProfiller. |
public
|
|
public
Maslosoft\EmbeDi\EmbeDi
|
|
public static
|
|
public static
|
|
public
|
|
public
boolean
|
|
public
MongoClient
|
|
public
|
|
public
MongoDB
|
|
public
|
|
public
|
|
public
|
Constants summary
string |
DefaultConnectionId
|
#
'mongodb'
|
Properties summary
public
string
|
$connectionString
Correct syntax is: mongodb://[username:password@]host1[:port1][,host2[:port2:],...] |
#
'mongodb://localhost:27017'
|
public
array
|
$annotationsDefaults
Default annotations values configuration. This should contain array with keys same as annotation class name, and key-value pairs corresponing to annotation properties. |
#
[]
|
public
string[][]
|
$decorators
Configuration of decorators for transformers Array key is decorator class name or interface, values are decorator class names. |
#
[]
|
public
string[][]
|
$finalizers
Configuration for finalizers. |
#
[]
|
public
string[][]
|
$filters
Configuration of property filters for transformers Array key is decorator class name or interface, values are filter class names. |
#
[]
|
public
string[]
|
$validators
Mapping for validators. Key is validator proxy class name, value is concrete validator implementation |
#
[]
|
public
string[][]
|
$sanitizersMap
Sanitizers remapping for common scenarios. |
#
[]
|
public
mixed[]
|
$eventHandlers
Event handlers to attach on initialization. |
#
[]
|
public
string
|
$connectionId
Connection ID |
#
'mongodb'
|
public
string
|
$dbName
$dbName name of the Mongo database to use |
#
null
|
public
boolean
|
$safeFlag
If set to TRUE all internal DB operations will use SAFE flag with data modification requests. |
#
false
|
public
boolean
|
$useCursor
If set to TRUE findAll* methods of models, will return |
#
false
|
public
boolean
|
$enableProfiling
Queries profiling. Defaults to false. This should be mainly enabled and used during development to find out the bottleneck of mongo queries. |
#
false
|
Properties used from Maslosoft\Mangan\Traits\Defaults\MongoClientOptions
$authMechanism
,
$authSource
,
$connect
,
$connectTimeoutMS
,
$db
,
$fsync
,
$gssapiServiceName
,
$journal
,
$password
,
$readPreference
,
$readPreferenceTags
,
$replicaSet
,
$secondaryAcceptableLatencyMS
,
$socketTimeoutMS
,
$ssl
,
$username
,
$w
,
$wTimeoutMS