Properties

$poolManager

$poolManager : \ManaPHP\Pool\ManagerInterface

Type

\ManaPHP\Pool\ManagerInterface

$alias

$alias : \ManaPHP\AliasInterface

Type

\ManaPHP\AliasInterface

$eventsManager

$eventsManager : \ManaPHP\Event\ManagerInterface

Type

\ManaPHP\Event\ManagerInterface

$logger

$logger : \ManaPHP\Logging\LoggerInterface

Type

\ManaPHP\Logging\LoggerInterface

$configure

$configure : \ManaPHP\Configuration\Configure

Type

\ManaPHP\Configuration\Configure

$settings

$settings : \ManaPHP\Configuration\SettingsInterface

Type

\ManaPHP\Configuration\SettingsInterface

$crypt

$crypt : \ManaPHP\Security\CryptInterface

Type

\ManaPHP\Security\CryptInterface

$identity

$identity : \ManaPHP\IdentityInterface

Type

\ManaPHP\IdentityInterface

$cache

$cache : \ManaPHP\Caching\CacheInterface

Type

\ManaPHP\Caching\CacheInterface

$httpClient

$httpClient : \ManaPHP\Http\ClientInterface

Type

\ManaPHP\Http\ClientInterface

$restClient

$restClient : \ManaPHP\Http\ClientInterface

Type

\ManaPHP\Http\ClientInterface

$db

$db : \ManaPHP\Data\DbInterface

Type

\ManaPHP\Data\DbInterface

$redisCache

$redisCache : \Redis|\ManaPHP\Data\RedisInterface

Type

\Redis|\ManaPHP\Data\RedisInterface

$redisDb

$redisDb : \Redis|\ManaPHP\Data\RedisInterface

Type

\Redis|\ManaPHP\Data\RedisInterface

$redisBroker

$redisBroker : \Redis|\ManaPHP\Data\RedisInterface

Type

\Redis|\ManaPHP\Data\RedisInterface

$mongodb

$mongodb : \ManaPHP\Data\MongodbInterface

Type

\ManaPHP\Data\MongodbInterface

$rabbitmq

$rabbitmq : \ManaPHP\Messaging\AmqpInterface

Type

\ManaPHP\Messaging\AmqpInterface

$elasticsearch

$elasticsearch : \Elasticsearch\Client

Type

\Elasticsearch\Client

$mailer

$mailer : \ManaPHP\Mailing\MailerInterface

Type

\ManaPHP\Mailing\MailerInterface

$bosClient

$bosClient : \ManaPHP\Bos\ClientInterface

Type

\ManaPHP\Bos\ClientInterface

$wspClient

$wspClient : \ManaPHP\Ws\Pushing\ClientInterface

Type

\ManaPHP\Ws\Pushing\ClientInterface

$coroutineManager

$coroutineManager : \ManaPHP\Coroutine\ManagerInterface

Type

\ManaPHP\Coroutine\ManagerInterface

$wsClient

$wsClient : \ManaPHP\Ws\ClientInterface

Type

\ManaPHP\Ws\ClientInterface

$pubSub

$pubSub : \ManaPHP\Messaging\PubSubInterface

Type

\ManaPHP\Messaging\PubSubInterface

$_context

$_context : \object

Type

\object

$_di

$_di : \ManaPHP\DiInterface

Type

\ManaPHP\DiInterface

$_object_id

$_object_id : integer

Type

integer

$_on

$_on : array<mixed,callable>

Type

array<mixed,callable>

$_injections

$_injections : array

Type

array

$_dsn

$_dsn : string

Type

string

$_prefix

$_prefix : string

Type

string

$_default_db

$_default_db : string

Type

string

Methods

getInstance()

getInstance(string  $class, array  $params = array()) : mixed

Parameters

string $class
array $params

Returns

mixed

getShared()

getShared(string  $name) : mixed

Parameters

string $name

Returns

mixed

inject()

inject(string  $name, mixed  $target) : static

Parameters

string $name
mixed $target

Returns

static

__get()

__get(string  $name) : mixed

Magic method __get

Parameters

string $name

Returns

mixed

__set()

__set(string  $name, mixed  $value) : void

Parameters

string $name
mixed $value

__isset()

__isset(string  $name) : boolean

Parameters

string $name

Returns

boolean

attachEvent()

attachEvent(string  $event, callable  $handler, boolean  $appended = true) : static

Attach a listener to the events manager

Parameters

string $event
callable $handler
boolean $appended

Returns

static

detachEvent()

detachEvent(string  $event, callable  $handler) : static

Parameters

string $event
callable $handler

Returns

static

peekEvent()

peekEvent(string  $group, callable  $handler) : static

Parameters

string $group
callable $handler

Returns

static

fireEvent()

fireEvent(string  $event, mixed  $data = array(), mixed  $source = null) : void

Fires an event in the events manager causing that the active listeners will be notified about it

Parameters

string $event
mixed $data
mixed $source

on()

on(string  $event, callable  $handler) : static

Parameters

string $event
callable $handler

Returns

static

off()

off(string  $event = null, callable  $handler = null) : static

Parameters

string $event
callable $handler

Returns

static

emit()

emit(string  $event, array  $data = array()) : void

Parameters

string $event
array $data

__debugInfo()

__debugInfo() : array

Returns

array

dump()

dump() : array

Returns

array

toArray()

toArray() : array

Returns

array

jsonSerialize()

jsonSerialize() 

__construct()

__construct(string  $dsn = 'mongodb://127.0.0.1:27017/') 

Parameters

string $dsn

__destruct()

__destruct() 

__clone()

__clone() 

getPrefix()

getPrefix() : string

Returns

string

getDefaultDb()

getDefaultDb() : string|null

Returns

string|null

insert()

insert(string  $source, array  $document) : integer

Parameters

string $source
array $document

Returns

integer

bulkInsert()

bulkInsert(string  $source, array<mixed,array>  $documents) : integer

Parameters

string $source
array<mixed,array> $documents

Returns

integer

update()

update(string  $source, array  $document, array  $filter) : integer

Parameters

string $source
array $document
array $filter

Returns

integer

bulkUpdate()

bulkUpdate(string  $source, array  $documents, string  $primaryKey) : integer

Parameters

string $source
array $documents
string $primaryKey

Throws

\ManaPHP\Data\Mongodb\Exception

Returns

integer

upsert()

upsert(string  $source, array  $document, string  $primaryKey) : integer

Parameters

string $source
array $document
string $primaryKey

Throws

\ManaPHP\Data\Mongodb\Exception

Returns

integer

bulkUpsert()

bulkUpsert(string  $source, array  $documents, string  $primaryKey) : integer

Parameters

string $source
array $documents
string $primaryKey

Throws

\ManaPHP\Data\Mongodb\Exception

Returns

integer

delete()

delete(string  $source, array  $filter) : integer

Parameters

string $source
array $filter

Throws

\ManaPHP\Data\Mongodb\Exception

Returns

integer

fetchAll()

fetchAll(string  $source, array  $filter = array(), array  $options = array(), boolean|integer  $secondaryPreferred = true) : array<mixed,array>

Parameters

string $source
array $filter
array $options
boolean|integer $secondaryPreferred

Returns

array<mixed,array>

command()

command(array  $command, string  $db = null) : array<mixed,array>

Parameters

array $command
string $db

Returns

array<mixed,array>

aggregate()

aggregate(string  $source, array  $pipeline, array  $options = array()) : array

Parameters

string $source
array $pipeline
array $options

Throws

\ManaPHP\Data\Mongodb\Exception

Returns

array

truncate()

truncate(string  $source) : boolean

Parameters

string $source

Returns

boolean

listDatabases()

listDatabases() : array

Returns

array

listCollections()

listCollections(string  $db = null) : array

Parameters

string $db

Returns

array

query()

query(string  $collection = null) : \ManaPHP\Data\Mongodb\Query

Parameters

string $collection

Returns

\ManaPHP\Data\Mongodb\Query

_createContext()

_createContext() : object

Returns

object

_completeNamespace()

_completeNamespace(string  $source) : string

Parameters

string $source

Returns

string