\InvHw

This is the model class for table "inv_hw".

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

Summary

Methods
Properties
Constants
tableName()
rules()
setPrimaryKey()
relations()
attributeLabels()
search()
searchGroup()
searchByName()
searchByVersion()
reportByPartNumber()
model()
$router_name
$router_id
$hw_item
$hw_name
$hw_version
$hw_amount
$router
No constants found
No protected methods found
No protected properties found
N/A
isNoEmpty()
No private properties found
N/A

Properties

$router_name

$router_name : 

Type

$router_id

$router_id : integer

Type

integer

$hw_item

$hw_item : string

Type

string

$hw_name

$hw_name : string

Type

string

$hw_version

$hw_version : string

Type

string

$hw_amount

$hw_amount : string

The followings are the available model relations:

Type

string

$router

$router : \Routers

Type

\Routers

Methods

tableName()

tableName() : string

Returns

string —

the associated database table name

rules()

rules() : array

Returns

array —

validation rules for model attributes.

setPrimaryKey()

setPrimaryKey() 

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.

searchGroup()

searchGroup() 

searchByName()

searchByName(  $str) : mixed

Return results of searching by HW name

Parameters

$str

Returns

mixed

searchByVersion()

searchByVersion(  $str) : mixed

Return results of searching by HW version

Parameters

$str

Returns

mixed

reportByPartNumber()

reportByPartNumber(integer  $number_of_page = 25) : \CArrayDataProvider

Return report by part number

Parameters

integer $number_of_page

Returns

\CArrayDataProvider

model()

model(string  $className = __CLASS__) : \InvHw

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

\InvHw

the static model class

isNoEmpty()

isNoEmpty(  $valore,   $name,   $amount,   $cond) 

Check empty or no is value

Parameters

$valore
$name
$amount
$cond