class FlexiformRepeatableElement in Flexiform 7
Class for Elements that can be added to the form more than once with different configurations.
Hierarchy
- class \FlexiformElement implements FlexiformElementInterface
- class \FlexiformRepeatableElement
Expanded class hierarchy of FlexiformRepeatableElement
File
- includes/
flexiform.element_repeatable.inc, line 11 - Contains the FlexiformRepeatableElement class.
View source
class FlexiformRepeatableElement extends FlexiformElement {
/**
* Make a namespace for the element.
*
* If that namespace is already taken then make a new one.
*/
public function makeElementNamespace() {
$namespace = parent::makeElementNamespace();
$full_namespace = $namespace;
$delta = 0;
while (!empty($this->flexiform->elements[$full_namespace])) {
$full_namespace = $namespace . ':' . $delta;
$delta++;
}
return $full_namespace;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FlexiformElement:: |
protected | property | The bundle this is on. | |
FlexiformElement:: |
protected | property | The namespace of this element. | |
FlexiformElement:: |
protected | property | The entity namespace of the entity this element is acting on. | |
FlexiformElement:: |
protected | property | The entity type this field is on. | |
FlexiformElement:: |
protected | property | The flexiform entity this element is one. | |
FlexiformElement:: |
protected | property | The settings for this element. | |
FlexiformElement:: |
protected | property | The weight of this element. | |
FlexiformElement:: |
public | function | Build the configure form for the element. | 11 |
FlexiformElement:: |
public | function | Submit the configure form for the element. | 10 |
FlexiformElement:: |
public | function | Validate the configure form for the element. | 3 |
FlexiformElement:: |
public static | function | Create an element object. | |
FlexiformElement:: |
public | function | Get the form element. | 15 |
FlexiformElement:: |
public | function | Extract the submitted values for this form element. | 12 |
FlexiformElement:: |
public | function | Work out if the submitted value constitutes empty. | 1 |
FlexiformElement:: |
public | function | Submit the form element. | 13 |
FlexiformElement:: |
public | function | Validate the form element. | 13 |
FlexiformElement:: |
public | function | Get an array of ctools context for the flexiform. | |
FlexiformElement:: |
public | function | Build a list of possible ctools substitutions. | |
FlexiformElement:: |
public static | function | Get an element object. | |
FlexiformElement:: |
public | function | Get the element namespace for this form element. | |
FlexiformElement:: |
public | function | Get the entity namespace for this form element. | |
FlexiformElement:: |
public | function | Get the entity type for this element. | |
FlexiformElement:: |
public | function | Get the settings. | |
FlexiformElement:: |
public | function | Get the weight of this form element. | |
FlexiformElement:: |
public | function | Get the label for this form element. | 2 |
FlexiformElement:: |
public | function | Get the name for this form element. | |
FlexiformElement:: |
public | function | Build the remove form for the element. | |
FlexiformElement:: |
public | function | Submit the remove form for the element. | |
FlexiformElement:: |
public | function | Validate the remove form for the element. | |
FlexiformElement:: |
public | function | Replace ctools substitutions with their values. | |
FlexiformElement:: |
public | function | Set the label for this form element. | 1 |
FlexiformElement:: |
public | function | Set the weight of this form element. | 1 |
FlexiformElement:: |
public | function | Convert this object into a settings array. | 5 |
FlexiformElement:: |
public | function | Get the type of this form element. | 3 |
FlexiformElement:: |
public | function | Construct the class. | 3 |
FlexiformRepeatableElement:: |
public | function |
Make a namespace for the element. Overrides FlexiformElement:: |