\AttrAccess

This is the model class for table "attr_access".

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

Summary

Methods
Properties
Constants
tableName()
rules()
relations()
attributeLabels()
search()
getAttrByAccType()
checkAttr()
getListAttrByAccType()
getListAttrValByAccType()
model()
$id
$id_access_type
$id_attr
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

$id_access_type

$id_access_type : integer

Type

integer

$id_attr

$id_attr : integer

Type

integer

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.

getAttrByAccType()

getAttrByAccType() 

checkAttr()

checkAttr(  $id_t,   $id_a) : mixed

Check existing of attribute

Parameters

$id_t
$id_a

Returns

mixed

getListAttrByAccType()

getListAttrByAccType(  $id_t) : mixed

Return attributes list for defined access type

Parameters

$id_t

Returns

mixed

getListAttrValByAccType()

getListAttrValByAccType(  $id_t,   $id_a) : mixed

return attribute values for access type

Parameters

$id_t
$id_a

Returns

mixed

model()

model(string  $className = __CLASS__) : \AttrAccess

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

\AttrAccess

the static model class