PHP Класс Craft\Neo_SettingsModel

Наследование: extends craft\BaseModel
Показать файл Открыть проект

Открытые методы

Метод Описание
getBlockTypes ( ) : array Returns the fields' block types.
getField ( ) : craft\FieldModel | null Returns the field the settings belong to.
getGroups ( ) : array Returns the fields' groups.
setBlockTypes ( $blockTypes ) Sets the fields' block types.
setField ( craft\FieldModel $field = null ) Sets the field the settings belong to.
setGroups ( $groups ) Sets the fields' groups.
validate ( array | null $attributes = null, boolean | true $clearErrors = true ) : boolean Validates all the attributes, block types and groups.

Защищенные методы

Метод Описание
defineAttributes ( ) Protected methods

Описание методов

defineAttributes() защищенный Метод

Protected methods
protected defineAttributes ( )

getBlockTypes() публичный Метод

Returns the fields' block types.
public getBlockTypes ( ) : array
Результат array

getField() публичный Метод

Returns the field the settings belong to.
public getField ( ) : craft\FieldModel | null
Результат craft\FieldModel | null

getGroups() публичный Метод

Returns the fields' groups.
public getGroups ( ) : array
Результат array

setBlockTypes() публичный Метод

Sets the fields' block types.
public setBlockTypes ( $blockTypes )
$blockTypes

setField() публичный Метод

Sets the field the settings belong to.
public setField ( craft\FieldModel $field = null )
$field craft\FieldModel

setGroups() публичный Метод

Sets the fields' groups.
public setGroups ( $groups )
$groups

validate() публичный Метод

Validates all the attributes, block types and groups.
public validate ( array | null $attributes = null, boolean | true $clearErrors = true ) : boolean
$attributes array | null
$clearErrors boolean | true
Результат boolean