server/src/app/Libraries/Transcript/TranscriptConverterInterface.php
author ymh <ymh.work@gmail.com>
Wed, 21 Dec 2016 15:23:08 +0100
changeset 484 4dab0495f922
parent 162 a6cf5a06f02d
permissions -rw-r--r--
Added tag 0.0.14 for changeset b47da9606c10

<?php
namespace CorpusParole\Libraries\Transcript;

interface TranscriptConverterInterface {

    /**
     * parse the source document.
     */
    function parseSource();

    /**
     * Return the id of the media used as reference.
     */
    function getMediaRefId();

    /**
     * return the source title, can return null.
     */
    function getSourceTitle();

    /**
     * build the various document parts
     */
    function buildMedias();
    function buildResources();
    function buildLists();
    function buildAnnotationTypes();
    function buildAnnotations();

    /**
     * Convert xml to json.
     * return an PHP array ready for serialization
     */
    function convertToJson();


}