PHP Class FeedBack

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

Public Methods

Method Description
attributeLabels ( ) : array
beforeValidate ( ) : void Обновляем дату изменения. Если новая запись обновляем необходимые поля:
getAnsweredUser ( ) : string Имя пользователя который ответил:
getCategory ( ) : string Категория:
getIsFaq ( ) : string Находится ли ответ в FAQ:
getIsFaqList ( ) : array Массив текстовых статусов:
getStatus ( ) : string Получаем текстовый статус:
getStatusClass ( ) : string Получаем класс по статусу:
getStatusList ( ) : array Список возможных статусов:
getText ( mixed $size = false ) : string Получаем текст, при необходимости обрезаем:
getType ( ) : string Получаем тип:
getTypeList ( ) : array Список возможных типов:
model ( string $className = __CLASS__ ) : FeedBack Returns the static model of the specified AR class.
relations ( ) : array Связи:
rules ( ) : array
scopes ( ) : 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)

beforeValidate() public method

Обновляем дату изменения. Если новая запись обновляем необходимые поля:
public beforeValidate ( ) : void
return void

getAnsweredUser() public method

Имя пользователя который ответил:
public getAnsweredUser ( ) : string
return string

getCategory() public method

Категория:
public getCategory ( ) : string
return string

getIsFaq() public method

Находится ли ответ в FAQ:
public getIsFaq ( ) : string
return string

getIsFaqList() public method

Массив текстовых статусов:
public getIsFaqList ( ) : array
return array

getStatus() public method

Получаем текстовый статус:
public getStatus ( ) : string
return string

getStatusClass() public method

Получаем класс по статусу:
public getStatusClass ( ) : string
return string label-class

getStatusList() public method

Список возможных статусов:
public getStatusList ( ) : array
return array

getText() public method

Получаем текст, при необходимости обрезаем:
public getText ( mixed $size = false ) : string
$size mixed - максимальная длина
return string

getType() public method

Получаем тип:
public getType ( ) : string
return string

getTypeList() public method

Список возможных типов:
public getTypeList ( ) : array
return array

model() public static method

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : FeedBack
$className string
return FeedBack the static model class

relations() public method

Связи:
public relations ( ) : array
return array

rules() public method

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

scopes() public method

Именованные условия:
public scopes ( ) : array
return array

tableName() public method

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