1 | <?php |
||
36 | class EeLinkSubject extends EeBunchSubject |
||
37 | { |
||
38 | |||
39 | /** |
||
40 | * The temporary persisted last link ID. |
||
41 | * |
||
42 | * @var integer |
||
43 | */ |
||
44 | protected $lastLinkId; |
||
45 | |||
46 | /** |
||
47 | * Intializes the previously loaded global data for exactly one variants. |
||
48 | * |
||
49 | * @param string $serial The serial of the actual import |
||
50 | * |
||
51 | * @return void |
||
52 | */ |
||
53 | public function setUp($serial) |
||
54 | { |
||
55 | |||
56 | // invoke the parent method |
||
57 | parent::setUp($serial); |
||
58 | |||
59 | // load the entity manager and the registry processor |
||
60 | $registryProcessor = $this->getRegistryProcessor(); |
||
61 | |||
62 | // load the status of the actual import process |
||
63 | $status = $registryProcessor->getAttribute(RegistryKeys::STATUS); |
||
64 | |||
65 | // load the SKU => row/entity ID mapping |
||
66 | $this->skuRowIdMapping = $status[RegistryKeys::SKU_ROW_ID_MAPPING]; |
||
67 | $this->skuEntityIdMapping = $status[RegistryKeys::SKU_ENTITY_ID_MAPPING]; |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * Temporary persist the last link ID. |
||
72 | * |
||
73 | * @param integer $lastLinkId The last link ID |
||
74 | * |
||
75 | * @return void |
||
76 | */ |
||
77 | public function setLastLinkId($lastLinkId) |
||
81 | |||
82 | /** |
||
83 | * Load the temporary persisted the last link ID. |
||
84 | * |
||
85 | * @return integer The last link ID |
||
86 | */ |
||
87 | public function getLastLinkId() |
||
91 | } |
||
92 |