db\ActiveRecordInterface setAttribute()

setAttribute() public abstract method Sets the named attribute value. See also hasAttribute(). public abstract void setAttribute ( $name, $value )$name string The attribute name. $value mixed The attribute value.

grid\ActionColumn $template

$template public property The template used for composing each cell in the action column. Tokens enclosed within curly brackets are treated as controller action IDs (also called button names in the context of action column). They will be replaced by the corresponding button rendering callbacks specified in $buttons. For example, the token {view} will be replaced by the result of the callback buttons['view']. If a callback cannot be found, the token will be replaced with an empty string. As

data\Pagination setPage()

setPage() public method Sets the current page number. public void setPage ( $value, $validatePage = false )$value integer The zero-based index of the current page. $validatePage boolean Whether to validate the page number. Note that in order to validate the page number, both $validatePage and this parameter must be true.

db\SchemaBuilderTrait binary()

binary() public method (available since version 2.0.6) Creates a binary column. public yii\db\ColumnSchemaBuilder binary ( $length = null )$length integer Column size or precision definition. This parameter will be ignored if not supported by the DBMS. return yii\db\ColumnSchemaBuilder The column instance which can be further customized.

validators\RangeValidator $range

$range public property A list of valid values that the attribute value should be among or an anonymous function that returns such a list. The signature of the anonymous function should be as follows, function($model, $attribute) { // compute range return $range; } public array|Traversable|Closure $range = null

db\mssql\PDO lastInsertId()

lastInsertId() public method Returns value of the last inserted ID. public integer lastInsertId ( $sequence = null )$sequence string|null The sequence name. Defaults to null. return integer Last inserted ID value.

validators\Validator $attributes

$attributes public property Attributes to be validated by this validator. For multiple attributes, please specify them as an array; for single attribute, you may use either a string or an array. public array|string $attributes = []

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

db\ColumnSchemaBuilder $categoryMap

$categoryMap public property (available since version 2.0.8) Mapping of abstract column types (keys) to type categories (values). public array $categoryMap = [\yii\db\Schema::TYPE_PK => self::CATEGORY_PK, \yii\db\Schema::TYPE_UPK => self::CATEGORY_PK, \yii\db\Schema::TYPE_BIGPK => self::CATEGORY_PK, \yii\db\Schema::TYPE_UBIGPK => self::CATEGORY_PK, \yii\db\Schema::TYPE_CHAR => self::CATEGORY_STRING, \yii\db\Schema::TYPE_STRING => self::CATEGORY_STRING, \yii\db\Schema::TYP

helpers\BaseFormatConverter convertDatePhpToJui()

convertDatePhpToJui() public static method Converts a date format pattern from [php date() function format][] to [jQuery UI date format][]. The conversion is limited to date patterns that do not use escaped characters. Patterns like jS \o\f F Y which will result in a date like 1st of December 2014 may not be converted correctly because of the use of escaped characters. Pattern constructs that are not supported by the jQuery UI format will be removed. public static string convertDatePhpToJ