Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

editor_Models_Import_TermListParser_Tbx → import TBX data from the import package for termtagging and associate a new term collection to the task (if TBX provided in ZIP)

trigger event beforeDirectoryParsing

...

trigger event importCleanup

TODO


Plugins

...

VisualReview

...

alter Ablauf durchschauen:

...

  • invokes on

...

  • editor_Models_Import

...

  • [afterUploadPreparation]: prepares HTML via URL based visual review
  • invokes on
  • editor_Models_Import_

...

  • Worker_FileTree[beforeDirectoryParsing]: prepares visual source files
  • invokes on editor_Models_

...

  • Import_Worker_FileTree[afterDirectoryParsing]: prepares and checks optional meta data for visual review (XLST etc).
  • invokes on
  • editor_Models_

...

importMetaData → creates and uses editor_Models_Import_MetaData

imports the task template (FIXME should be in own editor_Models_Import_IMetaDataImporter extending class)

fires importMetaData to enable other code to addImporters

imports each configured Importer (added with addImporter)

editor_Models_Import_QmSubsegments is hardcoded (imports MQM XML file)

editor_Models_Import_TermListParser_Tbx is called when TermTagger Plugin is active (imports TBX)

fires beforeDirectoryParsing currently used by transit plugin to create the needed import files

importFiles

...

 uses editor_Models_Import_DirectoryParser_WorkingFiles

uses editor_Models_Foldertree

uses editor_Models_Foldertree_SyncToFiles

fires afterDirectoryParsing

loops over the found files

creates a file type dependent FileParser Instance for each file

creates the segment processors and link them to the fileparsers

editor_Models_Import_SegmentProcessor_MqmParser → stores MQM data

editor_Models_Import_SegmentProcessor_ProofRead → save the segment data

calls FileParser::parseFile

...

does the file based word counting

syncFileOrder → syncs the order number of the files to the newly created segments

removeMetaDataTmpFiles → triggers meta data tmp clean up methods of each meta data importer

importRelaisFiles

...

updateSegmentFieldViews → creates the materialized view for the task

saves the task entity

fires importCleanup

used to trigger internal clean up stuff after import

triggers Transit Plugin Clean Up call

triggers $dataProvider->postImportHandler();

bound in __wakeup call of the dataProvider

weired here, since dataprovider instance is filled for import preparation outside of the worker,
but is needed for clean up after the worker is finished

fires afterImport

...

  • Import[afterImport]: queues the workers doing the visual review parts of the import:
    • editor_Plugins_VisualReview_PdfToHtmlWorker
    • editor_Plugins_VisualReview_WgetHtmlWorker
    • editor_Plugins_VisualReview_HtmlImportWorker
    • editor_Plugins_VisualReview_XmlXsltToHtmlWorker
    • editor_Plugins_VisualReview_SegmentationWorker

TermTagger

  • invokes on editor_Models_Import[afterImport]: starts the termtagging by queuing the editor_Plugins_TermTagger_Worker_TermTaggerImport workers
  • invokes on editor_Models_Import_SegmentProcessor_Review[process]: sets each non editable segment to be ignored from termtagging (contrable via config)
  • invokes on editor_Models_Import_MetaData[importMetaData]: adds the editor_Models_Import_TermListParser_Tbx importer to the MetaData importer list
  • invokes on editor_TaskController[afterPostAction]: prepares HTML via URL based visual review

Okapi

MatchAnalysis

LockSegmentsBasedOnConfig

  • invokes on editor_Models_Import[afterImport]: does segment locking based on a flexible config