base\Model getAttributes()

getAttributes() public method Returns attribute values. public array getAttributes ( $names = null, $except = [] )$names array List of attributes whose value needs to be returned. Defaults to null, meaning all attributes listed in attributes() will be returned. If it is an array, only the attributes in the array will be returned. $except array List of attributes whose value should NOT be returned. return array Attribute values (name => value).

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

db\mssql\Schema $defaultSchema

$defaultSchema public property The default schema used for the current session. public string $defaultSchema = 'dbo'

base\Module $params

$params public property Custom module parameters (name => value). public array $params = []

redis\Connection $port

$port public property The port to use for connecting to the redis server. Default port is 6379. If $unixSocket is specified, hostname and port will be ignored. public integer $port = 6379

mail\MailEvent $isSuccessful

$isSuccessful public property If message was sent successfully. public boolean $isSuccessful = null

rest\UrlRule $extraPatterns

$extraPatterns public property Patterns for supporting extra actions in addition to those listed in $patterns. The keys are the patterns and the values are the corresponding action IDs. These extra patterns will take precedence over $patterns. public array $extraPatterns = []

console\controllers\BaseMigrateController generateMigrationSourceCode()

generateMigrationSourceCode() protected method (available since version 2.0.8) Generates new migration source PHP code. Child class may override this method, adding extra logic or variation to the process. protected string generateMigrationSourceCode ( $params )$params array Generation parameters, usually following parameters are present: name: string migration base name className: string migration class name return string Generated PHP code.

console\controllers\ServeController $port

$port public property Port to serve on. public integer $port = 8080

authclient\OAuthToken $token

$token public property Token value. public string getToken ( )public $this setToken ( $token )