\Routers

This is the model class for table "routers".

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

Summary

Methods
Properties
Constants
tableName()
rules()
relations()
attributeLabels()
search()
routerNameForId()
getAll()
model()
$router_id
$name
$ip_addr
$eq_type
$eq_vendor
$location
$status
$icon_color
$routerGraphs
$networks
$networks1
$phInts
$invHws
$interfaces
$invSws
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$router_id

$router_id : integer

Type

integer

$name

$name : string

Type

string

$ip_addr

$ip_addr : string

Type

string

$eq_type

$eq_type : string

Type

string

$eq_vendor

$eq_vendor : string

Type

string

$location

$location : string

Type

string

$status

$status : string

Type

string

$icon_color

$icon_color : string

The followings are the available model relations:

Type

string

$routerGraphs

$routerGraphs : array<mixed,\RouterGraph>

Type

array<mixed,\RouterGraph>

$networks

$networks : array<mixed,\Network>

Type

array<mixed,\Network>

$networks1

$networks1 : array<mixed,\Network>

Type

array<mixed,\Network>

$phInts

$phInts : array<mixed,\PhInt>

Type

array<mixed,\PhInt>

$invHws

$invHws : array<mixed,\InvHw>

Type

array<mixed,\InvHw>

$interfaces

$interfaces : array<mixed,\Interfaces>

Type

array<mixed,\Interfaces>

$invSws

$invSws : array<mixed,\InvSw>

Type

array<mixed,\InvSw>

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.

routerNameForId()

routerNameForId() : mixed

Return router name by router id

Returns

mixed

getAll()

getAll() : mixed

Return list of all routers

Returns

mixed

model()

model(string  $className = __CLASS__) : \Routers

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

\Routers

the static model class