PHP Class UserToken

The followings are the available columns in table '{{user_tokens}}':
Inheritance: extends yupe\models\YModel
Exibir arquivo Open project: yupe/yupe Class Usage Examples

Protected Properties

Property Type Description
$oldStatus integer Старый статус

Public Methods

Method Description
attributeLabels ( ) : array
beautifyDate ( string $dateField, string $format = 'yyyy-MM-dd HH:mm' ) : string Форматирование даты:
beforeSave ( ) : boolean
beforeValidate ( ) : boolean
compromise ( ) : boolean
getDateList ( string $dateField = 'create_time' ) : array Получаем список дат:
getFullName ( ) : mixed Получаем полное имя пользователя:
getIsCompromised ( ) : boolean
getStatus ( ) : mixed Получаем строковое занчение статуса:
getStatusList ( ) : array Список статусов:
getType ( ) : mixed Получаем строковое занчение типа:
getTypeList ( ) : array Список типов:
getUserList ( ) : array Получаем список пользователей:
model ( string $className = __CLASS__ ) : UserToken Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string

Method Details

attributeLabels() public method

public attributeLabels ( ) : array
return array customized attribute labels (name=>label)

beautifyDate() public static method

Форматирование даты:
public static beautifyDate ( string $dateField, string $format = 'yyyy-MM-dd HH:mm' ) : string
$dateField string - дата
$format string - формат
return string

beforeSave() public method

public beforeSave ( ) : boolean
return boolean

beforeValidate() public method

public beforeValidate ( ) : boolean
return boolean

compromise() public method

public compromise ( ) : boolean
return boolean

getDateList() public static method

Получаем список дат:
public static getDateList ( string $dateField = 'create_time' ) : array
$dateField string - для какого поля
return array

getFullName() public method

Получаем полное имя пользователя:
public getFullName ( ) : mixed
return mixed

getIsCompromised() public method

public getIsCompromised ( ) : boolean
return boolean

getStatus() public method

Получаем строковое занчение статуса:
public getStatus ( ) : mixed
return mixed

getStatusList() public method

Список статусов:
public getStatusList ( ) : array
return array status list

getType() public method

Получаем строковое занчение типа:
public getType ( ) : mixed
return mixed

getTypeList() public static method

Список типов:
public static getTypeList ( ) : array
return array type list

getUserList() public static method

Получаем список пользователей:
public static getUserList ( ) : array
return array User List

model() public static method

Please note that you should have this exact method in all your CActiveRecord descendants!
public static model ( string $className = __CLASS__ ) : UserToken
$className string active record class name.
return UserToken the static model class

relations() public method

public relations ( ) : array
return array relational rules.

rules() public method

public rules ( ) : array
return array validation rules for model attributes.

tableName() public method

public tableName ( ) : string
return string the associated database table name

Property Details

$oldStatus protected_oe property

Старый статус
protected int $oldStatus
return integer