DUF: Declarative Ugly Forms  v0.1-94-g0b7957c
 All Classes Functions Variables Pages
Static Public Member Functions | List of all members
IFieldGroupGenerator Interface Reference

Interface to field group generator. More...

Inheritance diagram for IFieldGroupGenerator:
Inheritance graph

Static Public Member Functions

static updateFieldGroup (&$group_config, $context)
 Update a field group. More...
 

Detailed Description

Interface to field group generator.

Field group may specify its generator rather then specifying all details of its configuration. For example fields can be generated from model definition. This interface acts as a connector between third party parts containing metadata and DUF.

Member Function Documentation

static updateFieldGroup ( $group_config,
  $context 
)
static

Update a field group.

Parameters
$group_configcontains partial configuration of the field group. Generator fills in holes in it. There should be some identifier of entity type or whatever is relevant to this generator.
$contextis global context passed from Toolbox. Generator should use only this context to retrieve all it needs to generate field group.
Returns
FALSE if group cannot be updated.

Implemented in Smalldb.