LimeSurvey API - Master branch

UserInPermissionrole extends CActiveRecord
in package

This is the model class for table "{{user_in_permissionrole}}".

The following are the available columns in table '{{user_in_permissionrole}}':

Table of Contents

Properties

$ptid  : int
$uid  : int

Methods

attributeLabels()  : array<string|int, mixed>
getRoleForUser()  : mixed
model()  : UserInPermissionrole
Returns the static model of the specified AR class.
relations()  : array<string|int, mixed>
rules()  : array<string|int, mixed>
search()  : CActiveDataProvider
Retrieves a list of models based on the current search/filter conditions.
tableName()  : string

Properties

Methods

attributeLabels()

public attributeLabels() : array<string|int, mixed>
Return values
array<string|int, mixed>

customized attribute labels (name=>label)

getRoleForUser()

public getRoleForUser(mixed $userId[, mixed $single = false ]) : mixed
Parameters
$userId : mixed
$single : mixed = false

model()

Returns the static model of the specified AR class.

public static model([string $className = __CLASS__ ]) : UserInPermissionrole

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

Parameters
$className : string = __CLASS__

active record class name.

Return values
UserInPermissionrole

the static model class

relations()

public relations() : array<string|int, mixed>
Return values
array<string|int, mixed>

relational rules.

rules()

public rules() : array<string|int, mixed>
Return values
array<string|int, mixed>

validation rules for model attributes.

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

public search() : CActiveDataProvider

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.
Return values
CActiveDataProvider

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

tableName()

public tableName() : string
Return values
string

the associated database table name


        
On this page

Search results