mongodb\Query $options

$options public property Cursor options in format: optionKey => optionValue See also: \MongoDB\Driver\Cursor::addOption() options() public array $options = []

db\BaseActiveRecord $relatedRecords

$relatedRecords public read-only property An array of related records indexed by relation names. public array getRelatedRecords ( )

Testing

Developing with tests When and how to test Further reading Testing is an important part of software development. Whether we are aware of it or not, we conduct testing continuously. For example, when we write a class in PHP, we may debug it step by step or simply use echo or die statements to verify the implementation works according to our initial plan. In the case of a web application, we're entering some test data in forms to ensure the page interacts with us as expected. The testing process

db\QueryBuilder checkIntegrity()

checkIntegrity() public method Builds a SQL statement for enabling or disabling integrity check. public string checkIntegrity ( $check = true, $schema = '', $table = '' )$check boolean Whether to turn on or off the integrity check. $schema string The schema of the tables. Defaults to empty string, meaning the current or default schema. $table string The table name. Defaults to empty string, meaning that no table will be changed. return string The SQL statement for checking integrit

db\ActiveQueryTrait $with

$with public property A list of relations that this query should be performed with public array $with = null

web\Response $isSent

$isSent public property Whether the response has been sent. If this is true, calling send() will do nothing. public boolean $isSent = false

debug\Panel $url

$url public read-only property URL pointing to panel detail view public string getUrl ( $additionalParams = null )

gii\generators\extension\Generator $packageName

$packageName public property public $packageName = "yii2-"

helpers\BaseFileHelper $mimeMagicFile

$mimeMagicFile public static property The path (or alias) of a PHP file containing MIME type information. public static string $mimeMagicFile = '@yii/helpers/mimeTypes.php'

filters\ContentNegotiator negotiateContentType()

negotiateContentType() protected method Negotiates the response format. protected void negotiateContentType ( $request, $response )$request yii\web\Request $response yii\web\Response throws yii\base\InvalidConfigException if $formats is empty throws yii\web\UnsupportedMediaTypeHttpException if none of the requested content types is accepted.