mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
property code style extensions
This commit is contained in:
@ -39,6 +39,7 @@ class ActiveFixture extends BaseActiveFixture
|
||||
*/
|
||||
public $collectionName;
|
||||
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
|
@ -54,6 +54,7 @@ class Cache extends \yii\caching\Cache
|
||||
*/
|
||||
public $gcProbability = 100;
|
||||
|
||||
|
||||
/**
|
||||
* Initializes the Cache component.
|
||||
* This method will initialize the [[db]] property to make sure it refers to a valid MongoDB connection.
|
||||
|
@ -72,6 +72,7 @@ class Collection extends Object
|
||||
*/
|
||||
public $mongoCollection;
|
||||
|
||||
|
||||
/**
|
||||
* @return string name of this collection.
|
||||
*/
|
||||
|
@ -112,11 +112,13 @@ class Connection extends Component
|
||||
* @var \MongoClient Mongo client instance.
|
||||
*/
|
||||
public $mongoClient;
|
||||
|
||||
/**
|
||||
* @var Database[] list of Mongo databases
|
||||
*/
|
||||
private $_databases = [];
|
||||
|
||||
|
||||
/**
|
||||
* Returns the Mongo collection with the given name.
|
||||
* @param string|null $name collection name, if null default one will be used.
|
||||
|
@ -26,6 +26,7 @@ class Database extends Object
|
||||
* @var \MongoDB Mongo database instance.
|
||||
*/
|
||||
public $mongoDb;
|
||||
|
||||
/**
|
||||
* @var Collection[] list of collections.
|
||||
*/
|
||||
@ -35,6 +36,7 @@ class Database extends Object
|
||||
*/
|
||||
private $_fileCollections = [];
|
||||
|
||||
|
||||
/**
|
||||
* @return string name of this database.
|
||||
*/
|
||||
|
@ -39,6 +39,7 @@ abstract class Migration extends Component implements MigrationInterface
|
||||
*/
|
||||
public $db = 'mongodb';
|
||||
|
||||
|
||||
/**
|
||||
* Initializes the migration.
|
||||
* This method will set [[db]] to be the 'db' application component, if it is null.
|
||||
|
@ -54,6 +54,7 @@ class Query extends Component implements QueryInterface
|
||||
*/
|
||||
public $from;
|
||||
|
||||
|
||||
/**
|
||||
* Returns the Mongo collection for this query.
|
||||
* @param Connection $db Mongo connection.
|
||||
|
@ -69,6 +69,7 @@ class MigrateController extends BaseMigrateController
|
||||
*/
|
||||
public $db = 'mongodb';
|
||||
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
|
@ -28,11 +28,13 @@ class Collection extends \yii\mongodb\Collection
|
||||
* @var \MongoGridFS Mongo GridFS collection instance.
|
||||
*/
|
||||
public $mongoCollection;
|
||||
|
||||
/**
|
||||
* @var \yii\mongodb\Collection file chunks Mongo collection.
|
||||
*/
|
||||
private $_chunkCollection;
|
||||
|
||||
|
||||
/**
|
||||
* Returns the Mongo collection for the file chunks.
|
||||
* @param boolean $refresh whether to reload the collection instance even if it is found in the cache.
|
||||
|
@ -29,6 +29,7 @@ class Generator extends \yii\gii\Generator
|
||||
public $modelClass;
|
||||
public $baseClass = 'yii\mongodb\ActiveRecord';
|
||||
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
|
@ -37,6 +37,7 @@ class MongoDbTarget extends Target
|
||||
*/
|
||||
public $logCollection = 'log';
|
||||
|
||||
|
||||
/**
|
||||
* Initializes the MongoDbTarget component.
|
||||
* This method will initialize the [[db]] property to make sure it refers to a valid MongoDB connection.
|
||||
|
Reference in New Issue
Block a user