PHP 클래스 yupe\models\Settings

상속: extends yupe\models\YModel
파일 보기 프로젝트 열기: yupe/yupe 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$rulesFromModule Массив хранящий список валидаторов для определенного параметра модуля

공개 메소드들

메소드 설명
attributeLabels ( ) : array
beforeSave ( ) : boolean
fetchModuleSettings ( $moduleId, array $params = null ) : array
fetchUserModuleSettings ( string $userId, mixed $modulesId = [] ) : array Получает настройки модуля/модулей из базы данных (пользователельские)
model ( $className = __CLASS__ ) : Settings Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
saveModuleSettings ( $moduleId, $paramValues ) : boolean
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string

메소드 상세

attributeLabels() 공개 메소드

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

beforeSave() 공개 메소드

public beforeSave ( ) : boolean
리턴 boolean

fetchModuleSettings() 공개 정적인 메소드

public static fetchModuleSettings ( $moduleId, array $params = null ) : array
$moduleId
$params array
리턴 array

fetchUserModuleSettings() 공개 메소드

Получает настройки модуля/модулей из базы данных (пользователельские)
public fetchUserModuleSettings ( string $userId, mixed $modulesId = [] ) : array
$userId string - Идентификатор пользователя
$modulesId mixed - Список идентификаторов модулей
리턴 array Экземпляры класса Settings, соответствующие запрошенным параметрам

model() 공개 정적인 메소드

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Settings
리턴 Settings the static model class

relations() 공개 메소드

public relations ( ) : array
리턴 array relational rules.

rules() 공개 메소드

public rules ( ) : array
리턴 array validation rules for model attributes.

saveModuleSettings() 공개 정적인 메소드

public static saveModuleSettings ( $moduleId, $paramValues ) : boolean
$moduleId
$paramValues
리턴 boolean

tableName() 공개 메소드

public tableName ( ) : string
리턴 string the associated database table name

프로퍼티 상세

$rulesFromModule 공개적으로 프로퍼티

Массив хранящий список валидаторов для определенного параметра модуля
public $rulesFromModule