1 | <?php |
||
37 | abstract class AbstractAttributeSubject extends AbstractSubject implements AttributeSubjectInterface, EntitySubjectInterface |
||
38 | { |
||
39 | |||
40 | /** |
||
41 | * The array with the available entity types. |
||
42 | * |
||
43 | * @var array |
||
44 | */ |
||
45 | protected $entityTypes = array(); |
||
46 | |||
47 | /** |
||
48 | * Mappings for attribute code => CSV column header. |
||
49 | * |
||
50 | * @var array |
||
51 | */ |
||
52 | protected $headerMappings = array(); |
||
53 | |||
54 | /** |
||
55 | * Intializes the previously loaded global data for exactly one bunch. |
||
56 | * |
||
57 | * @param string $serial The serial of the actual import |
||
58 | * |
||
59 | * @return void |
||
60 | */ |
||
61 | public function setUp($serial) |
||
73 | |||
74 | /** |
||
75 | * Return's the header mappings for the actual entity. |
||
76 | * |
||
77 | * @return array The header mappings |
||
78 | */ |
||
79 | public function getHeaderMappings() |
||
83 | |||
84 | /** |
||
85 | * Return's the entity type for the passed code. |
||
86 | * |
||
87 | * @param string $entityTypeCode The entity type code |
||
88 | * |
||
89 | * @return array The requested entity type |
||
90 | * @throws \Exception Is thrown, if the entity type with the passed code is not available |
||
91 | */ |
||
92 | public function getEntityType($entityTypeCode) |
||
110 | } |
||
111 |