exchangeArray($data); $object->setModel($this); return $object; } public function getRegistry() { /** @var PortableElementRegistry $registry */ $registry = PicRegistry::getRegistry(); $registry->setServiceLocator(ServiceManager::getServiceManager()); $registry->setModel($this); return $registry; } public function getValidator() { return new PicValidator(); } public function getDirectoryParser() { $directoryParser = new PicDirectoryParser(); $directoryParser->setModel($this); return $directoryParser; } public function getPackageParser() { $packageParser = new PicPackagerParser(); $packageParser->setModel($this); return $packageParser; } public function getExporter(PortableElementObject $dataObject, AbstractQTIItemExporter $qtiItemExporter) { return new OatPicExporter($dataObject, $qtiItemExporter); } public function getQtiElementClassName() { return 'oat\taoQtiItem\model\qti\PortableInfoControl'; } }