HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
AccountUsers Class Reference

Public Member Functions

 tableName ()
 rules ()
 relations ()
 attributeLabels ()
 search ()
 setUserDefaultAccountType ($userId, $defaultType=self::DEFAULT_ACCOUNT_TYPE)
 setUserAccountType ($userId, $accountType)
 setAllUsersDefaultAccountTypeByAccountTypeId ($accountTypeId)

Static Public Member Functions

static model ($className=__CLASS__)

Public Attributes

const DEFAULT_ACCOUNT_TYPE = 'default'
const DEFAULT_TEMP_ACCOUNT_TYPE = 'default_temp'

Detailed Description

Definition at line 11 of file AccountUsers.php.

Member Function Documentation

AccountUsers::attributeLabels ( )
Returns
array customized attribute labels (name=>label)

Definition at line 67 of file AccountUsers.php.

static AccountUsers::model (   $className = __CLASS__)
static

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$classNameactive record class name.
Returns
AccountUsers the static model class

Definition at line 109 of file AccountUsers.php.

Here is the caller graph for this function:

AccountUsers::relations ( )
Returns
array relational rules.

Definition at line 54 of file AccountUsers.php.

AccountUsers::rules ( )
Returns
array validation rules for model attributes.

Definition at line 38 of file AccountUsers.php.

AccountUsers::search ( )

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.

Definition at line 87 of file AccountUsers.php.

AccountUsers::setAllUsersDefaultAccountTypeByAccountTypeId (   $accountTypeId)

For all users with current account type id set account type to default

Parameters
integer$accountTypeId

Definition at line 163 of file AccountUsers.php.

Here is the call graph for this function:

AccountUsers::setUserAccountType (   $userId,
  $accountType 
)

Set user account type.

Parameters
integer$userId
string$accountType
Returns
boolean

Definition at line 136 of file AccountUsers.php.

Here is the call graph for this function:

Here is the caller graph for this function:

AccountUsers::setUserDefaultAccountType (   $userId,
  $defaultType = self::DEFAULT_ACCOUNT_TYPE 
)

Set user default account type.

Parameters
boolean

Definition at line 119 of file AccountUsers.php.

Here is the call graph for this function:

AccountUsers::tableName ( )
Returns
string the associated database table name

Definition at line 30 of file AccountUsers.php.

Member Data Documentation

const AccountUsers::DEFAULT_ACCOUNT_TYPE = 'default'

Definition at line 18 of file AccountUsers.php.

const AccountUsers::DEFAULT_TEMP_ACCOUNT_TYPE = 'default_temp'

Definition at line 25 of file AccountUsers.php.


The documentation for this class was generated from the following file: