server/src/app/Libraries/CocoonUtils.php
changeset 20 a9b98b16b053
parent 19 eadaf0b8f02e
child 108 be2d3b30b2e0
equal deleted inserted replaced
19:eadaf0b8f02e 20:a9b98b16b053
     1 <?php
     1 <?php
     2 namespace CorpusParole\Libraries;
     2 namespace CorpusParole\Libraries;
     3 
     3 
     4 class CocoonUtils {
     4 class CocoonUtils {
       
     5 
       
     6     const OLAC_ROLES = [
       
     7         'http://www.language-archives.org/OLAC/1.1/annotator',
       
     8         'http://www.language-archives.org/OLAC/1.1/author',
       
     9         'http://www.language-archives.org/OLAC/1.1/compiler',
       
    10         'http://www.language-archives.org/OLAC/1.1/consultant',
       
    11         'http://www.language-archives.org/OLAC/1.1/data_inputter',
       
    12         'http://www.language-archives.org/OLAC/1.1/depositor',
       
    13         'http://www.language-archives.org/OLAC/1.1/developer',
       
    14         'http://www.language-archives.org/OLAC/1.1/editor',
       
    15         'http://www.language-archives.org/OLAC/1.1/illustrator',
       
    16         'http://www.language-archives.org/OLAC/1.1/interpreter',
       
    17         'http://www.language-archives.org/OLAC/1.1/interviewer',
       
    18         'http://www.language-archives.org/OLAC/1.1/participant',
       
    19         'http://www.language-archives.org/OLAC/1.1/performer',
       
    20         'http://www.language-archives.org/OLAC/1.1/photographer',
       
    21         'http://www.language-archives.org/OLAC/1.1/recorder',
       
    22         'http://www.language-archives.org/OLAC/1.1/researcher',
       
    23         'http://www.language-archives.org/OLAC/1.1/research_participant',
       
    24         'http://www.language-archives.org/OLAC/1.1/responder',
       
    25         'http://www.language-archives.org/OLAC/1.1/signer',
       
    26         'http://www.language-archives.org/OLAC/1.1/singer',
       
    27         'http://www.language-archives.org/OLAC/1.1/speaker',
       
    28         'http://www.language-archives.org/OLAC/1.1/sponsor',
       
    29         'http://www.language-archives.org/OLAC/1.1/transcriber',
       
    30         'http://www.language-archives.org/OLAC/1.1/translator',
       
    31     ];
     5 
    32 
     6     /**
    33     /**
     7      * Extract id form cocoon url.
    34      * Extract id form cocoon url.
     8      *
    35      *
     9      * @return string
    36      * @return string