property code style extensions

This commit is contained in:
Carsten Brandt
2014-07-30 00:40:20 +02:00
parent 63b98dbcd5
commit 7736853837
142 changed files with 183 additions and 104 deletions

View File

@ -39,6 +39,7 @@ class ActiveFixture extends BaseActiveFixture
*/
public $collectionName;
/**
* @inheritdoc
*/

View File

@ -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.

View File

@ -72,6 +72,7 @@ class Collection extends Object
*/
public $mongoCollection;
/**
* @return string name of this collection.
*/

View File

@ -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.

View File

@ -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.
*/

View File

@ -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.

View File

@ -54,6 +54,7 @@ class Query extends Component implements QueryInterface
*/
public $from;
/**
* Returns the Mongo collection for this query.
* @param Connection $db Mongo connection.

View File

@ -69,6 +69,7 @@ class MigrateController extends BaseMigrateController
*/
public $db = 'mongodb';
/**
* @inheritdoc
*/

View File

@ -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.

View File

@ -29,6 +29,7 @@ class Generator extends \yii\gii\Generator
public $modelClass;
public $baseClass = 'yii\mongodb\ActiveRecord';
/**
* @inheritdoc
*/

View File

@ -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.