faker\FixtureController $count

$count public property Total count of data per fixture. Defaults to 2. public integer $count = 2

Extensions

Using Extensions Creating Extensions Core Extensions Extensions are redistributable software packages specifically designed to be used in Yii applications and provide ready-to-use features. For example, the yiisoft/yii2-debug extension adds a handy debug toolbar at the bottom of every page in your application to help you more easily grasp how the pages are generated. You can use extensions to accelerate your development process. You can also package your code as extensions to share with other

Events

Event Handlers Attaching Event Handlers Event Handler Order Triggering Events Detaching Event Handlers Class-Level Event Handlers Events using interfaces Global Events Events allow you to inject custom code into existing code at certain execution points. You can attach custom code to an event so that when the event is triggered, the code gets executed automatically. For example, a mailer object may trigger a messageSent event when it successfully sends a message. If you want to keep track of t

Entry Scripts

Web Applications Console Applications Defining Constants Entry scripts are the first step in the application bootstrapping process. An application (either Web application or console application) has a single entry script. End users make requests to entry scripts which instantiate application instances and forward the requests to them. Entry scripts for Web applications must be stored under Web accessible directories so that they can be accessed by end users. They are often named as index.php,

elasticsearch\QueryBuilder __construct()

__construct() public method Constructor. public void __construct ( $connection, $config = [] )$connection yii\elasticsearch\Connection The database connection. $config array Name-value pairs that will be used to initialize the object properties

elasticsearch\QueryBuilder buildOrderBy()

buildOrderBy() public method Adds order by condition to the query public void buildOrderBy ( $columns )$columns

elasticsearch\QueryBuilder buildCondition()

buildCondition() public method Parses the condition specification and generates the corresponding SQL expression. public string buildCondition ( $condition )$condition string|array The condition specification. Please refer to yii\elasticsearch\Query::where() on how to specify a condition. return string The generated SQL expression throws yii\base\InvalidParamException if unknown operator is used in query throws yii\base\NotSupportedException if string conditions are used in where

elasticsearch\QueryBuilder buildCompositeInCondition()

buildCompositeInCondition() protected method protected void buildCompositeInCondition ( $operator, $columns, $values )$operator $columns $values

elasticsearch\QueryBuilder build()

build() public method Generates query from a yii\elasticsearch\Query object. public array build ( $query )$query yii\elasticsearch\Query The yii\elasticsearch\Query object from which the query will be generated return array The generated SQL statement (the first array element) and the corresponding parameters to be bound to the SQL statement (the second array element).

elasticsearch\QueryBuilder $db

$db public property The database connection. public yii\elasticsearch\Connection $db = null