mongodb\i18n\MongoDbMessageSource $enableCaching

$enableCaching public property Whether to enable caching translated messages public boolean $enableCaching = false

mongodb\i18n\MongoDbMessageSource $db

$db public property The MongoDB connection object or the application component ID of the MongoDB connection. After the MongoDbMessageSource object is created, if you want to change this property, you should only assign it with a MongoDB connection object. This can also be a configuration array for creating the object. public yii\mongodb\Connection|array|string $db = 'mongodb'

mongodb\i18n\MongoDbMessageSource $collection

$collection public property The name of the MongoDB collection, which stores translated messages. This collection is better to be pre-created with fields 'category' and 'language' indexed. public string|array $collection = 'message'

mongodb\i18n\MongoDbMessageSource $cachingDuration

$cachingDuration public property The time in seconds that the messages can remain valid in cache. Use 0 to indicate that the cached data will never expire. See also $enableCaching. public integer $cachingDuration = 0

mongodb\i18n\MongoDbMessageSource $cache

$cache public property The cache object or the application component ID of the cache object. The messages data will be cached using this cache object. Note, that to enable caching you have to set $enableCaching to true, otherwise setting this property has no effect. After the MongoDbMessageSource object is created, if you want to change this property, you should only assign it with a cache object. This can also be a configuration array for creating the object. See also: $cachingDuration $en

mongodb\gii\model\Generator validateNamespace()

validateNamespace() public method Validates the $ns attribute. public void validateNamespace ( )

mongodb\gii\model\Generator validateModelClass()

validateModelClass() public method Validates the $modelClass attribute. public void validateModelClass ( )

mongodb\gii\model\Generator validateDb()

validateDb() public method Validates the $db attribute. public void validateDb ( )

mongodb\gii\model\Generator validateCollectionName()

validateCollectionName() public method Validates the $collectionName attribute. public void validateCollectionName ( )

mongodb\gii\model\Generator stickyAttributes()

stickyAttributes() public method Returns the list of sticky attributes. A sticky attribute will remember its value and will initialize the attribute with this value when the generator is restarted. public array stickyAttributes ( )return array List of sticky attributes