| 1 | <?php |
||
| 6 | class ImportProcessEvent extends Event |
||
| 7 | { |
||
| 8 | |||
| 9 | const AFTER_PREPARE = 'data-import.prepare'; |
||
| 10 | const AFTER_FINISH = 'data-import.finish'; |
||
| 11 | |||
| 12 | private $context; |
||
| 13 | |||
| 14 | 15 | public function __construct($context=null) |
|
| 15 | { |
||
| 16 | 15 | if ($context) { |
|
| 17 | $this->setContext($context); |
||
| 18 | } |
||
| 19 | 15 | } |
|
| 20 | |||
| 21 | 14 | public function setContext($context) |
|
| 25 | |||
| 26 | 8 | public function getContext() |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @return ImportItemEvent |
||
| 33 | */ |
||
| 34 | 15 | public function newItemEvent($item) |
|
| 41 | |||
| 42 | } |
||
| 43 |