authclient\OAuth2 apiInternal()

apiInternal() protected method Performs request to the OAuth API. protected array apiInternal ( $accessToken, $url, $method, array $params, array $headers )$accessToken yii\authclient\OAuthToken Actual access token. $url string Absolute API URL. $method string Request method. $params array Request parameters. $headers array Additional request headers. return array API response. throws yii\base\Exception on failure.

elasticsearch\Command openIndex()

openIndex() public method See also http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html. public mixed openIndex ( $index )$index

db\ActiveRecord primaryKey()

primaryKey() public static method Returns the primary key name(s) for this AR class. The default implementation will return the primary key(s) as declared in the DB table that is associated with this AR class. If the DB table does not declare any primary key, you should override this method to return the attributes that you want to use as primary keys for this AR class. Note that an array should be returned even for a table with single primary key. public static string[] primaryKey ( )ret

elasticsearch\Query $highlight

$highlight public property The highlight part of this search query. This is an array that allows to highlight search results on one or more fields. See also http://www.elastic.co/guide/en/elasticsearch/reference/1.x/search-request-highlighting.html. public array $highlight = null

authclient\WeChat defaultName()

defaultName() protected method Generates service name. protected string defaultName ( )return string Service name.

validators\Validator validateValue()

validateValue() protected method Validates a value. A validator class can implement this method to support data validation out of the context of a data model. protected array|null validateValue ( $value )$value mixed The data value to be validated. return array|null The error message and the parameters to be inserted into the error message. Null should be returned if the data is valid. throws yii\base\NotSupportedException if the validator does not supporting data validation withou

helpers\BaseConsole moveCursorTo()

moveCursorTo() public static method Moves the cursor to an absolute position given as column and row by sending ANSI control code CUP or CHA to the terminal. public static void moveCursorTo ( $column, $row = null )$column integer 1-based column number, 1 is the left edge of the screen. $row integer|null 1-based row number, 1 is the top edge of the screen. if not set, will move cursor only in current line.

mongodb\QueryBuilder distinct()

distinct() public method Generates 'distinct' command. public array distinct ( $collectionName, $fieldName, $condition = [], $options = [] )$collectionName string Collection name. $fieldName string Target field name. $condition array Filter condition $options array List of options in format: optionName => optionValue. return array Command document.

db\ActiveRelationTrait via()

via() public method Specifies the relation associated with the junction table. Use this method to specify a pivot record/table when declaring a relation in the yii\db\ActiveRecord class: public function getOrders() { return $this->hasOne(Order::className(), ['id' => 'order_id']); } public function getOrderItems() { return $this->hasMany(Item::className(), ['id' => 'item_id']) ->via('orders'); } public $this via ( $relationName, callable $callable =

mongodb\QueryBuilder explain()

explain() public method Generates 'explain' command. public array explain ( $collectionName, $query )$collectionName string Collection name. $query array Query options. return array Command document.