PHP Class Craft\Neo_SettingsModel

Inheritance: extends craft\BaseModel
Afficher le fichier Open project: benjamminf/craft-neo

Méthodes publiques

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

Méthodes protégées

Méthode Description
defineAttributes ( ) Protected methods

Method Details

defineAttributes() protected méthode

Protected methods
protected defineAttributes ( )

getBlockTypes() public méthode

Returns the fields' block types.
public getBlockTypes ( ) : array
Résultat array

getField() public méthode

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

getGroups() public méthode

Returns the fields' groups.
public getGroups ( ) : array
Résultat array

setBlockTypes() public méthode

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

setField() public méthode

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

setGroups() public méthode

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

validate() public méthode

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
Résultat boolean