\RouterIcons

This is the model class for table "router_icons".

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

Summary

Methods
Properties
Constants
tableName()
rules()
relations()
attributeLabels()
search()
model()
isImg()
$id
$vendor_name
$router_state
$img_path
$size_w
$size_h
$routerState
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$id

$id : integer

Type

integer

$vendor_name

$vendor_name : string

Type

string

$router_state

$router_state : integer

Type

integer

$img_path

$img_path : string

Type

string

$size_w

$size_w : integer

Type

integer

$size_h

$size_h : integer

The followings are the available model relations:

Type

integer

$routerState

$routerState : \RouterStates

Type

\RouterStates

Methods

tableName()

tableName() : string

Returns

string —

the associated database table name

rules()

rules() : array

Returns

array —

validation rules for model attributes.

relations()

relations() : array

Returns

array —

relational rules.

attributeLabels()

attributeLabels() : array

Returns

array —

customized attribute labels (name=>label)

search()

search() : \CActiveDataProvider

Retrieves a list of models based on the current search/filter conditions.

Typical usecase:

  • Initialize the model fields with values from filter form.
  • Execute this method to get CActiveDataProvider instance which will filter models according to data in model fields.
  • Pass data provider to CGridView, CListView or any similar widget.

Returns

\CActiveDataProvider —

the data provider that can return the models based on the search/filter conditions.

model()

model(string  $className = __CLASS__) : \RouterIcons

Returns the static model of the specified AR class.

Please note that you should have this exact method in all your CActiveRecord descendants!

Parameters

string $className

active record class name.

Returns

\RouterIcons

the static model class

isImg()

isImg(  $r_state,   $vendor_name) : mixed

check existing of icons for vendor and state

Parameters

$r_state
$vendor_name

Returns

mixed