PHP Class UserToken

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

Protected Properties

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

Méthodes publiques

Méthode 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 méthode

public attributeLabels ( ) : array
Résultat array customized attribute labels (name=>label)

beautifyDate() public static méthode

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

beforeSave() public méthode

public beforeSave ( ) : boolean
Résultat boolean

beforeValidate() public méthode

public beforeValidate ( ) : boolean
Résultat boolean

compromise() public méthode

public compromise ( ) : boolean
Résultat boolean

getDateList() public static méthode

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

getFullName() public méthode

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

getIsCompromised() public méthode

public getIsCompromised ( ) : boolean
Résultat boolean

getStatus() public méthode

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

getStatusList() public méthode

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

getType() public méthode

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

getTypeList() public static méthode

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

getUserList() public static méthode

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

model() public static méthode

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.
Résultat UserToken the static model class

relations() public méthode

public relations ( ) : array
Résultat array relational rules.

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.

tableName() public méthode

public tableName ( ) : string
Résultat string the associated database table name

Property Details

$oldStatus protected_oe property

Старый статус
protected int $oldStatus
Résultat integer