StaticModel

Extends\CModel

Class StaticModel A general class to use in case of non-db models

package

Default

Methods

{@inheritdoc}

attributeNames()

findOne

findOne(string $pk): null|static
static

Arguments

$pk

string

primary key of model

Response

null|static

Models attributes as array indexed by primary key

modelsAttributes(): array
static

Response

array