mongodb\ActiveFixture getCollection()

getCollection() protected method Returns collection used by this fixture. protected yii\mongodb\Collection getCollection ( )return yii\mongodb\Collection Related collection.

mongodb\ActiveFixture $db

$db public property The DB connection object or the application component ID of the DB connection. public yii\mongodb\Connection|string $db = 'mongodb'

mongodb\ActiveFixture $collectionName

$collectionName public property The collection name that this fixture is about. If this property is not set, the collection name will be determined via $modelClass. See also yii\mongodb\Connection::getCollection(). public string|array $collectionName = null

Modules

Creating Modules Using Modules Nested Modules Best Practices Modules are self-contained software units that consist of models, views, controllers, and other supporting components. End users can access the controllers of a module when it is installed in application. For these reasons, modules are often viewed as mini-applications. Modules differ from applications in that modules cannot be deployed alone and must reside within applications. Creating Modules A module is organized as a directory

Models

Attributes Scenarios Validation Rules Massive Assignment Data Exporting Best Practices Models are part of the MVC architecture. They are objects representing business data, rules and logic. You can create model classes by extending yii\base\Model or its child classes. The base class yii\base\Model supports many useful features: Attributes: represent the business data and can be accessed like normal object properties or array elements; Attribute labels: specify the display labels for attribut

mail\MessageInterface toString()

toString() public abstract method Returns string representation of this message. public abstract string toString ( )return string The string representation of this message.

mail\MessageInterface setTo()

setTo() public abstract method Sets the message recipient(s). public abstract $this setTo ( $to )$to string|array Receiver email address. You may pass an array of addresses if multiple recipients should receive this message. You may also specify receiver name in addition to email address using format: [email => name]. return $this Self reference.

mail\MessageInterface setTextBody()

setTextBody() public abstract method Sets message plain text content. public abstract $this setTextBody ( $text )$text string Message plain text content. return $this Self reference.

mail\MessageInterface setSubject()

setSubject() public abstract method Sets the message subject. public abstract $this setSubject ( $subject )$subject string Message subject return $this Self reference.

mail\MessageInterface setReplyTo()

setReplyTo() public abstract method Sets the reply-to address of this message. public abstract $this setReplyTo ( $replyTo )$replyTo string|array The reply-to address. You may pass an array of addresses if this message should be replied to multiple people. You may also specify reply-to name in addition to email address using format: [email => name]. return $this Self reference.