server/src/app/Libraries/Transcript/TranscriptConverterInterface.php
author ymh <ymh.work@gmail.com>
Mon, 17 Oct 2016 19:46:57 +0200
changeset 348 a5e8d037304b
parent 162 a6cf5a06f02d
permissions -rw-r--r--
Solve language display problem in result playlist. problem was in the mirage serializer definition

<?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();


}