PHP Class Craft\Neo_SettingsModel

Inheritance: extends craft\BaseModel
Datei anzeigen Open project: benjamminf/craft-neo

Public Methods

Method Description
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.

Protected Methods

Method Description
defineAttributes ( ) Protected methods

Method Details

defineAttributes() protected method

Protected methods
protected defineAttributes ( )

getBlockTypes() public method

Returns the fields' block types.
public getBlockTypes ( ) : array
return array

getField() public method

Returns the field the settings belong to.
public getField ( ) : craft\FieldModel | null
return craft\FieldModel | null

getGroups() public method

Returns the fields' groups.
public getGroups ( ) : array
return array

setBlockTypes() public method

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

setField() public method

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

setGroups() public method

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

validate() public method

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
return boolean