Adapter class to get attributes from a model as an array.
Definition at line 41 of file ModelAttributesImportMappingAdapter.php.
Returns HAS_ONE relation attributes and non-relation attributes in an array mapping attribute names to 'attributeLabel' to the attribute label. Also returns 'isRequired' and 'isAudited' information.
Definition at line 60 of file ModelAttributesImportMappingAdapter.php.
isAttributeAHasOneOwnedRelation |
( |
|
$attributeName | ) |
|
|
protected |
isAttributeAHasOneNotOwnedRelation |
( |
|
$attributeName | ) |
|
|
protected |
isAttributeAnOwnedCustomFieldRelation |
( |
|
$attributeName | ) |
|
|
protected |
isAttributeAnOwnedMultipleValuesCustomFieldRelation |
( |
|
$attributeName | ) |
|
|
protected |
isAttributeAHasOneOwnedRelationThatShouldBehaveAsNotOwnedRelation |
( |
|
$attributeName | ) |
|
|
protected |
static getRelationModelClassNamesToTreatAsNonOwnedRelations |
( |
| ) |
|
|
staticprotected |
CurrencyValue while usually owned and HAS_ONE, should be treated as a non-owned relation. This is because the rateToBase, currency, and value attributes of currencyValue will be handled as mappingRules for this attribute instead of individually selectable attributes to map to the import columns.
- See Also
- self::isAttributeAHasOneOwnedRelationThatShouldBehaveAsNotOwnedRelation();
- Returns
- array
Definition at line 212 of file ModelAttributesImportMappingAdapter.php.
static resolveAttributeImportTypeByAttributeName |
( |
|
$type, |
|
|
|
$attributeName |
|
) |
| |
|
staticprotected |
Resolves against special attributes. Some attributes, even though they have a 'type' that matches an existing generic attribute import rule, require their own attribute import rule. These attributes are not derived and this is why their attribute import type must be adjusted here. If the attribute was derived, then the derived attribute name becomes the type and this wouldn't be required.
- Parameters
-
string | $type | |
string | $attributeName | |
Definition at line 225 of file ModelAttributesImportMappingAdapter.php.
The documentation for this class was generated from the following file: