server/src/app/Models/TranscriptResource.php
author ymh <ymh.work@gmail.com>
Tue, 22 Nov 2016 18:51:10 +0100
changeset 436 0db46de3f70d
parent 168 17f10b56c079
child 521 b3c738a20af8
permissions -rw-r--r--
Added tag 0.0.12 for changeset c53b87b00ea3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
168
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?php
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
namespace CorpusParole\Models;
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
use CorpusParole\Libraries\RdfModel\RdfModelResource;
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
use CorpusParole\Libraries\Utils;
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
use JsonSerializable;
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
use Log;
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
/**
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
 */
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
class TranscriptResource extends WebResource  {
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
    private $conformsTo = -1;
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
    protected function doClearMemoizationCache() {
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
        $this->conformsTo = -1;
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
    }
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
    public function getConformsTo() {
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
        if($this->conformsTo === -1) {
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
            $conformsTo = $this->getResource("<http://purl.org/dc/terms/conformsTo>");
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
            $this->conformsTo = is_null($conformsTo)?null:$conformsTo->getUri();
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
        }
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
        return $this->conformsTo;
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
    }
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
    protected function jsonSerializeExtra() {
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
        return [
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
            'conforms-to' => $this->getConformsTo()
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
        ];
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
    }
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
17f10b56c079 improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
}
PKA msite_iri-9b7d841b551a/web/wp-admin/edit-link-category-form.phpUTEgKPKA<4BCN5 site_iri-9b7d841b551a/web/wp-admin/edit-link-form.phpUTEgKPKA<NU5 dsite_iri-9b7d841b551a/web/wp-admin/edit-page-form.phpUTEgKPKA<2| ,1 isite_iri-9b7d841b551a/web/wp-admin/edit-pages.phpUTEgKPKA<H~5 Msite_iri-9b7d841b551a/web/wp-admin/edit-post-rows.phpUTEgKPKA<5MLv 4 site_iri-9b7d841b551a/web/wp-admin/edit-tag-form.phpUTEgKPKAR: #site_iri-9b7d841b551a/web/wp-admin/images/fav-arrow-vs.gifUTEgKPKA<@M N7 $site_iri-9b7d841b551a/web/wp-admin/images/fav-arrow.gifUTEgKPKA<'Xe8 ?&site_iri-9b7d841b551a/web/wp-admin/images/fav-top-vs.gifUTEgKPKA<6ם5 'site_iri-9b7d841b551a/web/wp-admin/images/fav-top.pngUTEgKPKA<m4 (site_iri-9b7d841b551a/web/wp-admin/images/fav-vs.pngUTEgKPKA<Ϲr1 )site_iri-9b7d841b551a/web/wp-admin/images/fav.pngUTEgKPKA site_iri-9b7d841b551a/web/wp-admin/images/menu-bits-rtl-vs.gifUTEgKPKA6 rsite_iri-9b7d841b551a/web/wp-admin/images/required.gifUTEgKPKA< 7&FG4 hssite_iri-9b7d841b551a/web/wp-admin/images/resize.gifUTEgKPKA {site_iri-9b7d841b551a/web/wp-admin/images/toggle-arrow-rtl.gifUTEgKPKA<~AHG: |site_iri-9b7d841b551a/web/wp-admin/images/toggle-arrow.gifUTEgKPKA<̒EG h}site_iri-9b7d841b551a/web/wp-admin/images/visit-site-button-grad-vs.gifUTEgKPKA<tD ~~site_iri-9b7d841b551a/web/wp-admin/images/visit-site-button-grad.gifUTEgKPKA<~--3 site_iri-9b7d841b551a/web/wp-admin/images/wheel.pngUTEgKPKA site_iri-9b7d841b551a/web/wp-admin/includes/class-ftp-pure.phpUTEgKPKA ܶsite_iri-9b7d841b551a/web/wp-admin/includes/plugin-install.phpUTEgKPKA<1!6 site_iri-9b7d841b551a/web/wp-admin/includes/plugin.phpUTEgKPKA %; site_iri-9b7d841b551a/web/wp-admin/includes/update-core.phpUTEgKPKAsite_iri-9b7d841b551a/web/wp-admin/js/gallery.jsUTEgKPKA<(a(9 E!= usite_iri-9b7d841b551a/web/wp-admin/js/inline-edit-post.dev.jsUTEgKPKA9 #site_iri-9b7d841b551a/web/wp-admin/js/media-upload.dev.jsUTEgKPKA<<Ń5 site_iri-9b7d841b551a/web/wp-admin/js/media-upload.jsUTEgKPKA<9{-:2 site_iri-9b7d841b551a/web/wp-admin/js/media.dev.jsUTEgKPKA<^~ٙ. site_iri-9b7d841b551a/web/wp-admin/js/media.jsUTEgKPKA 6 b site_iri-9b7d841b551a/web/wp-admin/js/revisions-js.phpUTEgKPKA<1oI1 site_iri-9b7d841b551a/web/wp-admin/js/slug.dev.jsUTEgKPKA<"7- &# site_iri-9b7d841b551a/web/wp-admin/js/slug.jsUTEgKPKA<}ǭ21 % site_iri-9b7d841b551a/web/wp-admin/js/tags.dev.jsUTEgKPKA<- ( site_iri-9b7d841b551a/web/wp-admin/js/tags.jsUTEgKPKA- site_iri-9b7d841b551a/web/wp-admin/upload.phpUTEgKPKA<~8}30 m site_iri-9b7d841b551a/web/wp-admin/user-edit.phpUTEgKPKAG !site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/Thumbs.dbUTEgKPKA~FK `site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/blogmarks.pngUTEgKPKA`H |site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/hubdog.pngUTEgKPKA<8F Nsite_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/hugg.pngUTEgKPKA<'PG ͂site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/hyves.pngUTEgKPKA< (J rsite_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/identica.pngUTEgKPKAcޣF site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/mixx.pngUTEgKPKA<#^H site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/mobile.pngUTEgKPKA<K site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/mozillaca.pngUTEgKPKA<K$F Esite_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/msdn.pngUTEgKPKA<J site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/multiply.pngUTEgKPKA<H !site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/my_msn.pngUTEgKPKA<.&M site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/mylinkvault.pngUTEgKPKA<"I site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/myspace.pngUTEgKPKAL site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/yahoomyweb.pngUTEgKPKA<i|IH site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/yample.pngUTEgKPKA<ֵF site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/yigg.pngUTEgKPKA<"E site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/icons/yim.pngUTEgKPKA MU site_iri-9b7d841b551a/web/wp-content/plugins/add-to-any/languages/add-to-any-da_DK.moUTEgKPKA)J site_iri-9b7d841b551a/web/wp-content/plugins/ajax-calendar/js/microajax.jsUTEgKPKA<ь 0F site_iri-9b7d841b551a/web/wp-content/plugins/ajax-calendar/license.txtUTEgKPKA<, %N jsite_iri-9b7d841b551a/web/wp-content/plugins/ajax-calendar/models/calendar.phpUTEgKPKAvE&tR "Lsite_iri-9b7d841b551a/web/wp-content/plugins/all-in-one-seo-pack/aioseop.class.phpUTEgKPKA$D Psite_iri-9b7d841b551a/web/wp-content/plugins/event-calendar/TODO.txtUTEgKPKA<5uG ɉsite_iri-9b7d841b551a/web/wp-content/plugins/event-calendar/addEvent.jsUTEgKPKAD Msite_iri-9b7d841b551a/web/wp-content/plugins/event-calendar/date.phpUTEgKPKA<C site_iri-9b7d841b551a/web/wp-content/plugins/event-calendar/day.phpUTEgKPKA< ?z}B ;site_iri-9b7d841b551a/web/wp-content/plugins/event-calendar/ec.pngUTEgKPKA<ױ9 C .site_iri-9b7d841b551a/web/wp-content/plugins/event-calendar/ec3.cssUTEgKPKA P site_iri-9b7d841b551a/web/wp-content/plugins/event-calendar/gettext/ec3-cs_CZ.poUTEgKPKA<}ŤbP Bsite_iri-9b7d841b551a/web/wp-content/plugins/event-calendar/gettext/ec3-de_DE.moUTEgKPKA<k P +"site_iri-9b7d841b551a/web/wp-content/plugins/event-calendar/gettext/ec3-de_DE.poUTEgKPKA<_;g%P +site_iri-9b7d841b551a/web/wp-content/plugins/event-calendar/gettext/ec3-dk_DK.moUTEgKPKAsite_iri-9b7d841b551a/web/wp-content/plugins/event-calendar/gettext/ec3-es_ES.moUTEgKPKA< P Gsite_iri-9b7d841b551a/web/wp-content/plugins/event-calendar/gettext/ec3-es_ES.poUTEgKPKA<{P Rsite_iri-9b7d841b551a/web/wp-content/plugins/event-calendar/gettext/ec3-fi_FI.moUTEgKPKAV site_iri-9b7d841b551a/web/wp-content/plugins/event-calendar/template-functions.php.oldUTEgKPKA