\Vegas\DI\Scaffolding\AdapterMongo

Class Mongo

Mongo adapter for scaffolding

Summary

Methods
Properties
Constants
verifyRequiredServices()
setupExtraServices()
__construct()
retrieveOne()
setScaffolding()
No public properties found
No constants found
No protected methods found
$scaffolding
N/A
No private methods found
No private properties found
N/A

Properties

Methods

verifyRequiredServices()

verifyRequiredServices(\Phalcon\DiInterface $di)

Verifies required services for Mongo adapter

Parameters

\Phalcon\DiInterface $di

Throws

\Vegas\Db\Exception\NoRequiredServiceException

setupExtraServices()

setupExtraServices(\Phalcon\DiInterface $di)

Setups extra services (if not exist) required by mongo service

Parameters

\Phalcon\DiInterface $di

__construct()

__construct()

Constructor Verifies services required by Mongo

retrieveOne()

retrieveOne( $id) : mixed

Retrieves record by its ID

Parameters

$id

Returns

mixed

setScaffolding()

setScaffolding(\Vegas\DI\Scaffolding $scaffolding) : mixed

Sets scaffolding instance

Parameters

\Vegas\DI\Scaffolding $scaffolding

Returns

mixed