Lookup

Extends\CActiveRecord

The followings are the available columns in table 'tbl_lookup':

package

Default

Methods

Returns the item name for the specified type and code.

item( $type, $code): string
static

Arguments

$type

$code

Response

string

the item name for the specified the code. False is returned if the item type or code does not exist.

Returns the items for the specified type.

items( $type): array
static

Arguments

$type

Response

array

item names indexed by item code. The items are order by their position values. An empty array is returned if the item type does not exist.

Loads the lookup items for the specified type from the database.

loadItems( $type)
static

Arguments

$type

Returns the static model of the specified AR class.

model( $className = __CLASS__): static
static

Arguments

$className

Response

static

the static model class

tableName

tableName(): string

Response

string

the associated database table name

Properties

_items

_items :
static

Type(s)

id

id :integer

Type(s)

integer

object_type

object_type :string

Type(s)

string

code

code :integer

Type(s)

integer

name_en

name_en :string

Type(s)

string

name_fr

name_fr :string

Type(s)

string

sequence

sequence :integer

Type(s)

integer

status

status :integer

Type(s)

integer