StaticModel
extends CModel
in package
Class StaticModel A general class to use in case of non-db models
Table of Contents
Methods
- attributeNames() : mixed
- {@inheritdoc}
- findOne() : null|static
- modelsAttributes() : array<string|int, mixed>
- Models attributes as array indexed by primary key
Methods
attributeNames()
{@inheritdoc}
public
attributeNames() : mixed
findOne()
public
static findOne(string $pk) : null|static
Parameters
- $pk : string
-
primary key of model
Return values
null|staticmodelsAttributes()
Models attributes as array indexed by primary key
public
static modelsAttributes() : array<string|int, mixed>