class FlexiformFormEntityPartyDataSet in Flexiform 7
Form entity for attached entities.
Hierarchy
- class \FlexiformFormEntityBase implements FlexiformFormEntityInterface
Expanded class hierarchy of FlexiformFormEntityPartyDataSet
1 string reference to 'FlexiformFormEntityPartyDataSet'
File
- includes/
form_entity/ party_data_set.form_entity.inc, line 10 - Contains class for a basic entity getter.
View source
class FlexiformFormEntityPartyDataSet extends FlexiformFormEntityBase {
/**
* {@inheritdoc}
*/
public function getEntity() {
parent::getEntity();
$settings = $this->settings;
// Get the party entity.
if ($party = $this
->getParam('party')) {
$data_set_name = $this->getter['data_set_name'];
return $party
->getDataSetController($data_set_name)
->getEntity(0, TRUE);
}
return FALSE;
}
/**
* {@inheritdoc}
*/
public function saveEntity($entity) {
$settings = $this->settings;
// Get the party entity. We like to party. We like to, we like to party.
$party = $this
->getParam('party');
if ($party && $entity) {
$party
->getDataSetController($this->getter['data_set_name'])
->attachEntity($entity)
->save(TRUE);
}
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FlexiformFormEntityBase:: |
public | property | The namespace of this entity. | |
FlexiformFormEntityBase:: |
public | property | The type of this entity. | |
FlexiformFormEntityBase:: |
public | property | Details of the getter. | |
FlexiformFormEntityBase:: |
public | property | The Flexiform Entity Manager | |
FlexiformFormEntityBase:: |
public | property | The settings for this entity on the flexiform. | |
FlexiformFormEntityBase:: |
public | function | Check bundle. | |
FlexiformFormEntityBase:: |
public | function |
Get the Configuration Form. Overrides FlexiformFormEntityInterface:: |
3 |
FlexiformFormEntityBase:: |
public | function |
Submit the Configuration Form. Overrides FlexiformFormEntityInterface:: |
|
FlexiformFormEntityBase:: |
public | function |
Validate the configuration form. Overrides FlexiformFormEntityInterface:: |
|
FlexiformFormEntityBase:: |
public | function | Get a Parameter From the Entity Manager. | |
FlexiformFormEntityBase:: |
public | function | Get a Parameter's entity settings from the Entity Manager. | |
FlexiformFormEntityBase:: |
public | function | Get the entity type of a parameter. | |
FlexiformFormEntityBase:: |
public | function | Construct a Flexiform Form Entity class. | |
FlexiformFormEntityPartyDataSet:: |
public | function |
Get the entity for the form. Overrides FlexiformFormEntityBase:: |
|
FlexiformFormEntityPartyDataSet:: |
public | function |
Save the entity upon submission of the form. Overrides FlexiformFormEntityBase:: |