1 | <?php |
||
40 | abstract class AbstractAttributeSubject extends AbstractSubject implements AttributeSubjectInterface, EntitySubjectInterface, CleanUpColumnsSubjectInterface |
||
41 | { |
||
42 | |||
43 | /** |
||
44 | * The array with the available entity types. |
||
45 | * |
||
46 | * @var array |
||
47 | */ |
||
48 | protected $entityTypes = array(); |
||
49 | |||
50 | /** |
||
51 | * The default entity type code. |
||
52 | * |
||
53 | * @var string |
||
54 | */ |
||
55 | protected $defaultEntityTypeCode; |
||
56 | |||
57 | /** |
||
58 | * Intializes the previously loaded global data for exactly one bunch. |
||
59 | * |
||
60 | * @param string $serial The serial of the actual import |
||
61 | * |
||
62 | * @return void |
||
63 | */ |
||
64 | public function setUp($serial) |
||
79 | |||
80 | /** |
||
81 | * Return's the header mappings for the actual entity. |
||
82 | * |
||
83 | * @return array The header mappings |
||
84 | */ |
||
85 | public function getHeaderMappings() |
||
89 | |||
90 | /** |
||
91 | * Returns the default entity type code. |
||
92 | * |
||
93 | * @return string The default entity type code |
||
94 | */ |
||
95 | public function getDefaultEntityTypeCode() |
||
99 | |||
100 | /** |
||
101 | * Return's the entity type for the passed code, of if no entity type code has |
||
102 | * been passed, the default one from the configuration will be used. |
||
103 | * |
||
104 | * @param string|null $entityTypeCode The entity type code |
||
105 | * |
||
106 | * @return array The requested entity type |
||
107 | * @throws \Exception Is thrown, if the entity type with the passed code is not available |
||
108 | */ |
||
109 | public function getEntityType($entityTypeCode = null) |
||
132 | |||
133 | /** |
||
134 | * Returns the entity type ID for the passed code, or if no entity type code has |
||
135 | * been passed, the default one from the configuration will be used. |
||
136 | * |
||
137 | * @param string|null $entityTypeCode The entity type code |
||
138 | * |
||
139 | * @return integer The actual entity type ID |
||
140 | */ |
||
141 | public function getEntityTypeId($entityTypeCode = null) |
||
150 | |||
151 | /** |
||
152 | * Merge the columns from the configuration with all image type columns to define which |
||
153 | * columns should be cleaned-up. |
||
154 | * |
||
155 | * @return array The columns that has to be cleaned-up |
||
156 | */ |
||
157 | public function getCleanUpColumns() |
||
171 | } |
||
172 |