@@ -17,8 +17,7 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * DocumentTransferLog |
| 19 | 19 | */ |
| 20 | -class DocumentTransferLog extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
|
| 21 | -{ |
|
| 20 | +class DocumentTransferLog extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity { |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * date |
@@ -67,8 +66,7 @@ discard block |
||
| 67 | 66 | * |
| 68 | 67 | * @return \DateTime $date |
| 69 | 68 | */ |
| 70 | - public function getDate() |
|
| 71 | - { |
|
| 69 | + public function getDate() { |
|
| 72 | 70 | return $this->date; |
| 73 | 71 | } |
| 74 | 72 | |
@@ -78,8 +76,7 @@ discard block |
||
| 78 | 76 | * @param \DateTime $date |
| 79 | 77 | * @return void |
| 80 | 78 | */ |
| 81 | - public function setDate(\DateTime $date) |
|
| 82 | - { |
|
| 79 | + public function setDate(\DateTime $date) { |
|
| 83 | 80 | $this->date = $date; |
| 84 | 81 | } |
| 85 | 82 | |
@@ -88,8 +85,7 @@ discard block |
||
| 88 | 85 | * |
| 89 | 86 | * @return string $response |
| 90 | 87 | */ |
| 91 | - public function getResponse() |
|
| 92 | - { |
|
| 88 | + public function getResponse() { |
|
| 93 | 89 | return $this->response; |
| 94 | 90 | } |
| 95 | 91 | |
@@ -99,8 +95,7 @@ discard block |
||
| 99 | 95 | * @param string $response |
| 100 | 96 | * @return void |
| 101 | 97 | */ |
| 102 | - public function setResponse($response) |
|
| 103 | - { |
|
| 98 | + public function setResponse($response) { |
|
| 104 | 99 | $this->response = $response; |
| 105 | 100 | } |
| 106 | 101 | |
@@ -109,8 +104,7 @@ discard block |
||
| 109 | 104 | * |
| 110 | 105 | * @return string $curlError |
| 111 | 106 | */ |
| 112 | - public function getCurlError() |
|
| 113 | - { |
|
| 107 | + public function getCurlError() { |
|
| 114 | 108 | return $this->curlError; |
| 115 | 109 | } |
| 116 | 110 | |
@@ -120,8 +114,7 @@ discard block |
||
| 120 | 114 | * @param string $curlError |
| 121 | 115 | * @return void |
| 122 | 116 | */ |
| 123 | - public function setCurlError($curlError) |
|
| 124 | - { |
|
| 117 | + public function setCurlError($curlError) { |
|
| 125 | 118 | $this->curlError = $curlError; |
| 126 | 119 | } |
| 127 | 120 | |
@@ -130,8 +123,7 @@ discard block |
||
| 130 | 123 | * |
| 131 | 124 | * @return integer $documentUid |
| 132 | 125 | */ |
| 133 | - public function getDocumentUid() |
|
| 134 | - { |
|
| 126 | + public function getDocumentUid() { |
|
| 135 | 127 | return $this->documentUid; |
| 136 | 128 | } |
| 137 | 129 | |
@@ -141,8 +133,7 @@ discard block |
||
| 141 | 133 | * @param integer $documentUid |
| 142 | 134 | * @return void |
| 143 | 135 | */ |
| 144 | - public function setDocumentUid($documentUid) |
|
| 145 | - { |
|
| 136 | + public function setDocumentUid($documentUid) { |
|
| 146 | 137 | $this->documentUid = $documentUid; |
| 147 | 138 | } |
| 148 | 139 | |
@@ -151,8 +142,7 @@ discard block |
||
| 151 | 142 | * |
| 152 | 143 | * @return string $objectIdentifier |
| 153 | 144 | */ |
| 154 | - public function getObjectIdentifier() |
|
| 155 | - { |
|
| 145 | + public function getObjectIdentifier() { |
|
| 156 | 146 | return $this->objectIdentifier; |
| 157 | 147 | } |
| 158 | 148 | |
@@ -162,8 +152,7 @@ discard block |
||
| 162 | 152 | * @param string $objectIdentifier |
| 163 | 153 | * @return void |
| 164 | 154 | */ |
| 165 | - public function setObjectIdentifier($objectIdentifier) |
|
| 166 | - { |
|
| 155 | + public function setObjectIdentifier($objectIdentifier) { |
|
| 167 | 156 | $this->objectIdentifier = $objectIdentifier; |
| 168 | 157 | } |
| 169 | 158 | |
@@ -172,8 +161,7 @@ discard block |
||
| 172 | 161 | * |
| 173 | 162 | * @return string $action |
| 174 | 163 | */ |
| 175 | - public function getAction() |
|
| 176 | - { |
|
| 164 | + public function getAction() { |
|
| 177 | 165 | return $this->action; |
| 178 | 166 | } |
| 179 | 167 | |
@@ -183,8 +171,7 @@ discard block |
||
| 183 | 171 | * @param string $action |
| 184 | 172 | * @return void |
| 185 | 173 | */ |
| 186 | - public function setAction($action) |
|
| 187 | - { |
|
| 174 | + public function setAction($action) { |
|
| 188 | 175 | $this->action = $action; |
| 189 | 176 | } |
| 190 | 177 | |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @var \DateTime |
| 27 | 27 | */ |
| 28 | - protected $date = null; |
|
| 28 | + protected $date = NULL; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * response |
@@ -24,198 +24,198 @@ discard block |
||
| 24 | 24 | * |
| 25 | 25 | * @var array |
| 26 | 26 | */ |
| 27 | - protected static $languageCodes = array( |
|
| 28 | - array('ab', 'abk', 'abk', 'abk', 'Abkhaz', 'аҧсуа бызшәа, аҧсшәа'), |
|
| 29 | - array('aa', 'aar', 'aar', 'aar', 'Afar', 'Afaraf'), |
|
| 30 | - array('af', 'afr', 'afr', 'afr', 'Afrikaans', 'Afrikaans'), |
|
| 31 | - array('ak', 'aka', 'aka', 'aka', 'Akan', 'Akan'), |
|
| 32 | - array('sq', 'sqi', 'alb', 'sqi', 'Albanian', 'Shqip'), |
|
| 33 | - array('am', 'amh', 'amh', 'amh', 'Amharic', 'አማርኛ'), |
|
| 34 | - array('ar', 'ara', 'ara', 'ara', 'Arabic', 'العربية'), |
|
| 35 | - array('an', 'arg', 'arg', 'arg', 'Aragonese', 'aragonés'), |
|
| 36 | - array('hy', 'hye', 'arm', 'hye', 'Armenian', 'Հայերեն'), |
|
| 37 | - array('as', 'asm', 'asm', 'asm', 'Assamese', 'অসমীয়া'), |
|
| 38 | - array('av', 'ava', 'ava', 'ava', 'Avaric', 'авар мацӀ, магӀарул мацӀ'), |
|
| 39 | - array('ae', 'ave', 'ave', 'ave', 'Avestan', 'avesta'), |
|
| 40 | - array('ay', 'aym', 'aym', 'aym', 'Aymara', 'aymar aru'), |
|
| 41 | - array('az', 'aze', 'aze', 'aze', 'Azerbaijani', 'azərbaycan dili'), |
|
| 42 | - array('bm', 'bam', 'bam', 'bam', 'Bambara', 'bamanankan'), |
|
| 43 | - array('ba', 'bak', 'bak', 'bak', 'Bashkir', 'башҡорт теле'), |
|
| 44 | - array('eu', 'eus', 'baq', 'eus', 'Basque', 'euskara, euskera'), |
|
| 45 | - array('be', 'bel', 'bel', 'bel', 'Belarusian', 'беларуская мова'), |
|
| 46 | - array('bn', 'ben', 'ben', 'ben', 'Bengali, Bangla', 'বাংলা'), |
|
| 47 | - array('bh', 'bih', 'bih', '', 'Bihari', 'भोजपुरी'), |
|
| 48 | - array('bi', 'bis', 'bis', 'bis', 'Bislama', 'Bislama'), |
|
| 49 | - array('bs', 'bos', 'bos', 'bos', 'Bosnian', 'bosanski jezik'), |
|
| 50 | - array('br', 'bre', 'bre', 'bre', 'Breton', 'brezhoneg'), |
|
| 51 | - array('bg', 'bul', 'bul', 'bul', 'Bulgarian', 'български език'), |
|
| 52 | - array('my', 'mya', 'bur', 'mya', 'Burmese', 'ဗမာစာ'), |
|
| 53 | - array('ca', 'cat', 'cat', 'cat', 'Catalan', 'català'), |
|
| 54 | - array('ch', 'cha', 'cha', 'cha', 'Chamorro', 'Chamoru'), |
|
| 55 | - array('ce', 'che', 'che', 'che', 'Chechen', 'нохчийн мотт'), |
|
| 56 | - array('ny', 'nya', 'nya', 'nya', 'Chichewa, Chewa, Nyanja', 'chiCheŵa, chinyanja'), |
|
| 57 | - array('zh', 'zho', 'chi', 'zho', 'Chinese', '中文 (Zhōngwén), 汉语, 漢語'), |
|
| 58 | - array('cv', 'chv', 'chv', 'chv', 'Chuvash', 'чӑваш чӗлхи'), |
|
| 59 | - array('kw', 'cor', 'cor', 'cor', 'Cornish', 'Kernewek'), |
|
| 60 | - array('co', 'cos', 'cos', 'cos', 'Corsican', 'corsu, lingua corsa'), |
|
| 61 | - array('cr', 'cre', 'cre', 'cre', 'Cree', 'ᓀᐦᐃᔭᐍᐏᐣ'), |
|
| 62 | - array('hr', 'hrv', 'hrv', 'hrv', 'Croatian', 'hrvatski jezik'), |
|
| 63 | - array('cs', 'ces', 'cze', 'ces', 'Czech', 'čeština, český jazyk'), |
|
| 64 | - array('da', 'dan', 'dan', 'dan', 'Danish', 'dansk'), |
|
| 65 | - array('dv', 'div', 'div', 'div', 'Divehi, Dhivehi, Maldivian', 'ދިވެހި'), |
|
| 66 | - array('nl', 'nld', 'dut', 'nld', 'Dutch', 'Nederlands, Vlaams'), |
|
| 67 | - array('dz', 'dzo', 'dzo', 'dzo', 'Dzongkha', 'རྫོང་ཁ'), |
|
| 68 | - array('en', 'eng', 'eng', 'eng', 'English', 'English'), |
|
| 69 | - array('eo', 'epo', 'epo', 'epo', 'Esperanto', 'Esperanto'), |
|
| 70 | - array('et', 'est', 'est', 'est', 'Estonian', 'eesti, eesti keel'), |
|
| 71 | - array('ee', 'ewe', 'ewe', 'ewe', 'Ewe', 'Eʋegbe'), |
|
| 72 | - array('fo', 'fao', 'fao', 'fao', 'Faroese', 'føroyskt'), |
|
| 73 | - array('fj', 'fij', 'fij', 'fij', 'Fijian', 'vosa Vakaviti'), |
|
| 74 | - array('fi', 'fin', 'fin', 'fin', 'Finnish', 'suomi, suomen kieli'), |
|
| 75 | - array('fr', 'fra', 'fre', 'fra', 'French', 'français, langue française'), |
|
| 76 | - array('ff', 'ful', 'ful', 'ful', 'Fula, Fulah, Pulaar, Pular', 'Fulfulde, Pulaar, Pular'), |
|
| 77 | - array('gl', 'glg', 'glg', 'glg', 'Galician', 'galego'), |
|
| 78 | - array('ka', 'kat', 'geo', 'kat', 'Georgian', 'ქართული'), |
|
| 79 | - array('de', 'deu', 'ger', 'deu', 'German', 'Deutsch'), |
|
| 80 | - array('el', 'ell', 'gre', 'ell', 'Greek (modern)', 'ελληνικά'), |
|
| 81 | - array('gn', 'grn', 'grn', 'grn', 'Guaraní', 'Avañe\'ẽ'), |
|
| 82 | - array('gu', 'guj', 'guj', 'guj', 'Gujarati', 'ગુજરાતી'), |
|
| 83 | - array('ht', 'hat', 'hat', 'hat', 'Haitian, Haitian Creole', 'Kreyòl ayisyen'), |
|
| 84 | - array('ha', 'hau', 'hau', 'hau', 'Hausa', '(Hausa) هَوُسَ'), |
|
| 85 | - array('he', 'heb', 'heb', 'heb', 'Hebrew (modern)', 'עברית'), |
|
| 86 | - array('hz', 'her', 'her', 'her', 'Herero', 'Otjiherero'), |
|
| 87 | - array('hi', 'hin', 'hin', 'hin', 'Hindi', 'हिन्दी, हिंदी'), |
|
| 88 | - array('ho', 'hmo', 'hmo', 'hmo', 'Hiri Motu', 'Hiri Motu'), |
|
| 89 | - array('hu', 'hun', 'hun', 'hun', 'Hungarian', 'magyar'), |
|
| 90 | - array('ia', 'ina', 'ina', 'ina', 'Interlingua', 'Interlingua'), |
|
| 91 | - array('id', 'ind', 'ind', 'ind', 'Indonesian', 'Bahasa Indonesia'), |
|
| 92 | - array('ie', 'ile', 'ile', 'ile', 'Interlingue', 'Originally called Occidental; then Interlingue after WWII'), |
|
| 93 | - array('ga', 'gle', 'gle', 'gle', 'Irish', 'Gaeilge'), |
|
| 94 | - array('ig', 'ibo', 'ibo', 'ibo', 'Igbo', 'Asụsụ Igbo'), |
|
| 95 | - array('ik', 'ipk', 'ipk', 'ipk', 'Inupiaq', 'Iñupiaq, Iñupiatun'), |
|
| 96 | - array('io', 'ido', 'ido', 'ido', 'Ido', 'Ido'), |
|
| 97 | - array('is', 'isl', 'ice', 'isl', 'Icelandic', 'Íslenska'), |
|
| 98 | - array('it', 'ita', 'ita', 'ita', 'Italian', 'italiano'), |
|
| 99 | - array('iu', 'iku', 'iku', 'iku', 'Inuktitut', 'ᐃᓄᒃᑎᑐᑦ'), |
|
| 100 | - array('ja', 'jpn', 'jpn', 'jpn', 'Japanese', '日本語 (にほんご)'), |
|
| 101 | - array('jv', 'jav', 'jav', 'jav', 'Javanese', 'basa Jawa'), |
|
| 102 | - array('kl', 'kal', 'kal', 'kal', 'Kalaallisut, Greenlandic', 'kalaallisut, kalaallit oqaasii'), |
|
| 103 | - array('kn', 'kan', 'kan', 'kan', 'Kannada', 'ಕನ್ನಡ'), |
|
| 104 | - array('kr', 'kau', 'kau', 'kau', 'Kanuri', 'Kanuri'), |
|
| 105 | - array('ks', 'kas', 'kas', 'kas', 'Kashmiri', 'कश्मीरी, كشميري'), |
|
| 106 | - array('kk', 'kaz', 'kaz', 'kaz', 'Kazakh', 'қазақ тілі'), |
|
| 107 | - array('km', 'khm', 'khm', 'khm', 'Khmer', 'ខ្មែរ, ខេមរភាសា, ភាសាខ្មែរ'), |
|
| 108 | - array('ki', 'kik', 'kik', 'kik', 'Kikuyu, Gikuyu', 'Gĩkũyũ'), |
|
| 109 | - array('rw', 'kin', 'kin', 'kin', 'Kinyarwanda', 'Ikinyarwanda'), |
|
| 110 | - array('ky', 'kir', 'kir', 'kir', 'Kyrgyz', 'Кыргызча, Кыргыз тили'), |
|
| 111 | - array('kv', 'kom', 'kom', 'kom', 'Komi', 'коми кыв'), |
|
| 112 | - array('kg', 'kon', 'kon', 'kon', 'Kongo', 'Kikongo'), |
|
| 113 | - array('ko', 'kor', 'kor', 'kor', 'Korean', '한국어, 조선어'), |
|
| 114 | - array('ku', 'kur', 'kur', 'kur', 'Kurdish', 'Kurdî, كوردی'), |
|
| 115 | - array('kj', 'kua', 'kua', 'kua', 'Kwanyama, Kuanyama', 'Kuanyama'), |
|
| 116 | - array('la', 'lat', 'lat', 'lat', 'Latin', 'latine, lingua latina'), |
|
| 117 | - array('', '', '', 'lld', 'Ladin', 'ladin, lingua ladina'), |
|
| 118 | - array('lb', 'ltz', 'ltz', 'ltz', 'Luxembourgish, Letzeburgesch', 'Lëtzebuergesch'), |
|
| 119 | - array('lg', 'lug', 'lug', 'lug', 'Ganda', 'Luganda'), |
|
| 120 | - array('li', 'lim', 'lim', 'lim', 'Limburgish, Limburgan, Limburger', 'Limburgs'), |
|
| 121 | - array('ln', 'lin', 'lin', 'lin', 'Lingala', 'Lingála'), |
|
| 122 | - array('lo', 'lao', 'lao', 'lao', 'Lao', 'ພາສາລາວ'), |
|
| 123 | - array('lt', 'lit', 'lit', 'lit', 'Lithuanian', 'lietuvių kalba'), |
|
| 124 | - array('lu', 'lub', 'lub', 'lub', 'Luba-Katanga', 'Tshiluba'), |
|
| 125 | - array('lv', 'lav', 'lav', 'lav', 'Latvian', 'latviešu valoda'), |
|
| 126 | - array('gv', 'glv', 'glv', 'glv', 'Manx', 'Gaelg, Gailck'), |
|
| 127 | - array('mk', 'mkd', 'mac', 'mkd', 'Macedonian', 'македонски јазик'), |
|
| 128 | - array('mg', 'mlg', 'mlg', 'mlg', 'Malagasy', 'fiteny malagasy'), |
|
| 129 | - array('ms', 'msa', 'may', 'msa', 'Malay', 'bahasa Melayu, بهاس ملايو'), |
|
| 130 | - array('ml', 'mal', 'mal', 'mal', 'Malayalam', 'മലയാളം'), |
|
| 131 | - array('mt', 'mlt', 'mlt', 'mlt', 'Maltese', 'Malti'), |
|
| 132 | - array('mi', 'mri', 'mao', 'mri', 'Māori', 'te reo Māori'), |
|
| 133 | - array('mr', 'mar', 'mar', 'mar', 'Marathi (Marāṭhī)', 'मराठी'), |
|
| 134 | - array('mh', 'mah', 'mah', 'mah', 'Marshallese', 'Kajin M̧ajeļ'), |
|
| 135 | - array('mn', 'mon', 'mon', 'mon', 'Mongolian', 'монгол'), |
|
| 136 | - array('na', 'nau', 'nau', 'nau', 'Nauru', 'Ekakairũ Naoero'), |
|
| 137 | - array('nv', 'nav', 'nav', 'nav', 'Navajo, Navaho', 'Diné bizaad'), |
|
| 138 | - array('nd', 'nde', 'nde', 'nde', 'Northern Ndebele', 'isiNdebele'), |
|
| 139 | - array('ne', 'nep', 'nep', 'nep', 'Nepali', 'नेपाली'), |
|
| 140 | - array('ng', 'ndo', 'ndo', 'ndo', 'Ndonga', 'Owambo'), |
|
| 141 | - array('nb', 'nob', 'nob', 'nob', 'Norwegian Bokmål', 'Norsk bokmål'), |
|
| 142 | - array('nn', 'nno', 'nno', 'nno', 'Norwegian Nynorsk', 'Norsk nynorsk'), |
|
| 143 | - array('no', 'nor', 'nor', 'nor', 'Norwegian', 'Norsk'), |
|
| 144 | - array('ii', 'iii', 'iii', 'iii', 'Nuosu', 'ꆈꌠ꒿ Nuosuhxop'), |
|
| 145 | - array('nr', 'nbl', 'nbl', 'nbl', 'Southern Ndebele', 'isiNdebele'), |
|
| 146 | - array('oc', 'oci', 'oci', 'oci', 'Occitan', 'occitan, lenga d\'òc'), |
|
| 147 | - array('oj', 'oji', 'oji', 'oji', 'Ojibwe, Ojibwa', 'ᐊᓂᔑᓈᐯᒧᐎᓐ'), |
|
| 148 | - array('cu', 'chu', 'chu', 'chu', 'Old Church Slavonic, Church Slavonic, Old Bulgarian', 'ѩзыкъ словѣньскъ'), |
|
| 149 | - array('om', 'orm', 'orm', 'orm', 'Oromo', 'Afaan Oromoo'), |
|
| 150 | - array('or', 'ori', 'ori', 'ori', 'Oriya', 'ଓଡ଼ିଆ'), |
|
| 151 | - array('os', 'oss', 'oss', 'oss', 'Ossetian, Ossetic', 'ирон æвзаг'), |
|
| 152 | - array('pa', 'pan', 'pan', 'pan', 'Panjabi, Punjabi', 'ਪੰਜਾਬੀ, پنجابی'), |
|
| 153 | - array('pi', 'pli', 'pli', 'pli', 'Pāli', 'पाऴि'), |
|
| 154 | - array('fa', 'fas', 'per', 'fas', 'Persian (Farsi)', 'فارسی'), |
|
| 155 | - array('pl', 'pol', 'pol', 'pol', 'Polish', 'język polski, polszczyzna'), |
|
| 156 | - array('ps', 'pus', 'pus', 'pus', 'Pashto, Pushto', 'پښتو'), |
|
| 157 | - array('pt', 'por', 'por', 'por', 'Portuguese', 'português'), |
|
| 158 | - array('qu', 'que', 'que', 'que', 'Quechua', 'Runa Simi, Kichwa'), |
|
| 159 | - array('rm', 'roh', 'roh', 'roh', 'Romansh', 'rumantsch grischun'), |
|
| 160 | - array('rn', 'run', 'run', 'run', 'Kirundi', 'Ikirundi'), |
|
| 161 | - array('ro', 'ron', 'rum', 'ron', 'Romanian', 'limba română'), |
|
| 162 | - array('ru', 'rus', 'rus', 'rus', 'Russian', 'Русский'), |
|
| 163 | - array('sa', 'san', 'san', 'san', 'Sanskrit (Saṁskṛta)', 'संस्कृतम्'), |
|
| 164 | - array('sc', 'srd', 'srd', 'srd', 'Sardinian', 'sardu'), |
|
| 165 | - array('sd', 'snd', 'snd', 'snd', 'Sindhi', 'सिन्धी, سنڌي، سندھی'), |
|
| 166 | - array('se', 'sme', 'sme', 'sme', 'Northern Sami', 'Davvisámegiella'), |
|
| 167 | - array('sm', 'smo', 'smo', 'smo', 'Samoan', 'gagana fa\'a Samoa'), |
|
| 168 | - array('sg', 'sag', 'sag', 'sag', 'Sango', 'yângâ tî sängö'), |
|
| 169 | - array('sr', 'srp', 'srp', 'srp', 'Serbian', 'српски језик'), |
|
| 170 | - array('gd', 'gla', 'gla', 'gla', 'Scottish Gaelic, Gaelic', 'Gàidhlig'), |
|
| 171 | - array('sn', 'sna', 'sna', 'sna', 'Shona', 'chiShona'), |
|
| 172 | - array('si', 'sin', 'sin', 'sin', 'Sinhala, Sinhalese', 'සිංහල'), |
|
| 173 | - array('sk', 'slk', 'slo', 'slk', 'Slovak', 'slovenčina, slovenský jazyk'), |
|
| 174 | - array('sl', 'slv', 'slv', 'slv', 'Slovene', 'slovenski jezik, slovenščina'), |
|
| 175 | - array('so', 'som', 'som', 'som', 'Somali', 'Soomaaliga, af Soomaali'), |
|
| 176 | - array('st', 'sot', 'sot', 'sot', 'Southern Sotho', 'Sesotho'), |
|
| 177 | - array('es', 'spa', 'spa', 'spa', 'Spanish', 'español'), |
|
| 178 | - array('su', 'sun', 'sun', 'sun', 'Sundanese', 'Basa Sunda'), |
|
| 179 | - array('sw', 'swa', 'swa', 'swa', 'Swahili', 'Kiswahili'), |
|
| 180 | - array('ss', 'ssw', 'ssw', 'ssw', 'Swati', 'SiSwati'), |
|
| 181 | - array('sv', 'swe', 'swe', 'swe', 'Swedish', 'svenska'), |
|
| 182 | - array('ta', 'tam', 'tam', 'tam', 'Tamil', 'தமிழ்'), |
|
| 183 | - array('te', 'tel', 'tel', 'tel', 'Telugu', 'తెలుగు'), |
|
| 184 | - array('tg', 'tgk', 'tgk', 'tgk', 'Tajik', 'тоҷикӣ, toçikī, تاجیکی'), |
|
| 185 | - array('th', 'tha', 'tha', 'tha', 'Thai', 'ไทย'), |
|
| 186 | - array('ti', 'tir', 'tir', 'tir', 'Tigrinya', 'ትግርኛ'), |
|
| 187 | - array('bo', 'bod', 'tib', 'bod', 'Tibetan Standard, Tibetan, Central', 'བོད་ཡིག'), |
|
| 188 | - array('tk', 'tuk', 'tuk', 'tuk', 'Turkmen', 'Türkmen, Түркмен'), |
|
| 189 | - array('tl', 'tgl', 'tgl', 'tgl', 'Tagalog', 'Wikang Tagalog, ᜏᜒᜃᜅ᜔ ᜆᜄᜎᜓᜄ᜔'), |
|
| 190 | - array('tn', 'tsn', 'tsn', 'tsn', 'Tswana', 'Setswana'), |
|
| 191 | - array('to', 'ton', 'ton', 'ton', 'Tonga (Tonga Islands)', 'faka Tonga'), |
|
| 192 | - array('tr', 'tur', 'tur', 'tur', 'Turkish', 'Türkçe'), |
|
| 193 | - array('ts', 'tso', 'tso', 'tso', 'Tsonga', 'Xitsonga'), |
|
| 194 | - array('tt', 'tat', 'tat', 'tat', 'Tatar', 'татар теле, tatar tele'), |
|
| 195 | - array('tw', 'twi', 'twi', 'twi', 'Twi', 'Twi'), |
|
| 196 | - array('ty', 'tah', 'tah', 'tah', 'Tahitian', 'Reo Tahiti'), |
|
| 197 | - array('ug', 'uig', 'uig', 'uig', 'Uyghur', 'ئۇيغۇرچە, Uyghurche'), |
|
| 198 | - array('uk', 'ukr', 'ukr', 'ukr', 'Ukrainian', 'українська мова'), |
|
| 199 | - array('ur', 'urd', 'urd', 'urd', 'Urdu', 'اردو'), |
|
| 200 | - array('uz', 'uzb', 'uzb', 'uzb', 'Uzbek', 'Oʻzbek, Ўзбек, أۇزبېك'), |
|
| 201 | - array('ve', 'ven', 'ven', 'ven', 'Venda', 'Tshivenḓa'), |
|
| 202 | - array('vi', 'vie', 'vie', 'vie', 'Vietnamese', 'Việt Nam'), |
|
| 203 | - array('vo', 'vol', 'vol', 'vol', 'Volapük', 'Volapük'), |
|
| 204 | - array('wa', 'wln', 'wln', 'wln', 'Walloon', 'walon'), |
|
| 205 | - array('cy', 'cym', 'wel', 'cym', 'Welsh', 'Cymraeg'), |
|
| 206 | - array('wo', 'wol', 'wol', 'wol', 'Wolof', 'Wollof'), |
|
| 207 | - array('fy', 'fry', 'fry', 'fry', 'Western Frisian', 'Frysk'), |
|
| 208 | - array('xh', 'xho', 'xho', 'xho', 'Xhosa', 'isiXhosa'), |
|
| 209 | - array('yi', 'yid', 'yid', 'yid', 'Yiddish', 'ייִדיש'), |
|
| 210 | - array('yo', 'yor', 'yor', 'yor', 'Yoruba', 'Yorùbá'), |
|
| 211 | - array('za', 'zha', 'zha', 'zha', 'Zhuang, Chuang', 'Saɯ cueŋƅ, Saw cuengh'), |
|
| 212 | - array('zu', 'zul', 'zul', 'zul', 'Zulu', 'isiZulu'), |
|
| 27 | + protected static $languageCodes = array ( |
|
| 28 | + array ('ab', 'abk', 'abk', 'abk', 'Abkhaz', 'аҧсуа бызшәа, аҧсшәа'), |
|
| 29 | + array ('aa', 'aar', 'aar', 'aar', 'Afar', 'Afaraf'), |
|
| 30 | + array ('af', 'afr', 'afr', 'afr', 'Afrikaans', 'Afrikaans'), |
|
| 31 | + array ('ak', 'aka', 'aka', 'aka', 'Akan', 'Akan'), |
|
| 32 | + array ('sq', 'sqi', 'alb', 'sqi', 'Albanian', 'Shqip'), |
|
| 33 | + array ('am', 'amh', 'amh', 'amh', 'Amharic', 'አማርኛ'), |
|
| 34 | + array ('ar', 'ara', 'ara', 'ara', 'Arabic', 'العربية'), |
|
| 35 | + array ('an', 'arg', 'arg', 'arg', 'Aragonese', 'aragonés'), |
|
| 36 | + array ('hy', 'hye', 'arm', 'hye', 'Armenian', 'Հայերեն'), |
|
| 37 | + array ('as', 'asm', 'asm', 'asm', 'Assamese', 'অসমীয়া'), |
|
| 38 | + array ('av', 'ava', 'ava', 'ava', 'Avaric', 'авар мацӀ, магӀарул мацӀ'), |
|
| 39 | + array ('ae', 'ave', 'ave', 'ave', 'Avestan', 'avesta'), |
|
| 40 | + array ('ay', 'aym', 'aym', 'aym', 'Aymara', 'aymar aru'), |
|
| 41 | + array ('az', 'aze', 'aze', 'aze', 'Azerbaijani', 'azərbaycan dili'), |
|
| 42 | + array ('bm', 'bam', 'bam', 'bam', 'Bambara', 'bamanankan'), |
|
| 43 | + array ('ba', 'bak', 'bak', 'bak', 'Bashkir', 'башҡорт теле'), |
|
| 44 | + array ('eu', 'eus', 'baq', 'eus', 'Basque', 'euskara, euskera'), |
|
| 45 | + array ('be', 'bel', 'bel', 'bel', 'Belarusian', 'беларуская мова'), |
|
| 46 | + array ('bn', 'ben', 'ben', 'ben', 'Bengali, Bangla', 'বাংলা'), |
|
| 47 | + array ('bh', 'bih', 'bih', '', 'Bihari', 'भोजपुरी'), |
|
| 48 | + array ('bi', 'bis', 'bis', 'bis', 'Bislama', 'Bislama'), |
|
| 49 | + array ('bs', 'bos', 'bos', 'bos', 'Bosnian', 'bosanski jezik'), |
|
| 50 | + array ('br', 'bre', 'bre', 'bre', 'Breton', 'brezhoneg'), |
|
| 51 | + array ('bg', 'bul', 'bul', 'bul', 'Bulgarian', 'български език'), |
|
| 52 | + array ('my', 'mya', 'bur', 'mya', 'Burmese', 'ဗမာစာ'), |
|
| 53 | + array ('ca', 'cat', 'cat', 'cat', 'Catalan', 'català'), |
|
| 54 | + array ('ch', 'cha', 'cha', 'cha', 'Chamorro', 'Chamoru'), |
|
| 55 | + array ('ce', 'che', 'che', 'che', 'Chechen', 'нохчийн мотт'), |
|
| 56 | + array ('ny', 'nya', 'nya', 'nya', 'Chichewa, Chewa, Nyanja', 'chiCheŵa, chinyanja'), |
|
| 57 | + array ('zh', 'zho', 'chi', 'zho', 'Chinese', '中文 (Zhōngwén), 汉语, 漢語'), |
|
| 58 | + array ('cv', 'chv', 'chv', 'chv', 'Chuvash', 'чӑваш чӗлхи'), |
|
| 59 | + array ('kw', 'cor', 'cor', 'cor', 'Cornish', 'Kernewek'), |
|
| 60 | + array ('co', 'cos', 'cos', 'cos', 'Corsican', 'corsu, lingua corsa'), |
|
| 61 | + array ('cr', 'cre', 'cre', 'cre', 'Cree', 'ᓀᐦᐃᔭᐍᐏᐣ'), |
|
| 62 | + array ('hr', 'hrv', 'hrv', 'hrv', 'Croatian', 'hrvatski jezik'), |
|
| 63 | + array ('cs', 'ces', 'cze', 'ces', 'Czech', 'čeština, český jazyk'), |
|
| 64 | + array ('da', 'dan', 'dan', 'dan', 'Danish', 'dansk'), |
|
| 65 | + array ('dv', 'div', 'div', 'div', 'Divehi, Dhivehi, Maldivian', 'ދިވެހި'), |
|
| 66 | + array ('nl', 'nld', 'dut', 'nld', 'Dutch', 'Nederlands, Vlaams'), |
|
| 67 | + array ('dz', 'dzo', 'dzo', 'dzo', 'Dzongkha', 'རྫོང་ཁ'), |
|
| 68 | + array ('en', 'eng', 'eng', 'eng', 'English', 'English'), |
|
| 69 | + array ('eo', 'epo', 'epo', 'epo', 'Esperanto', 'Esperanto'), |
|
| 70 | + array ('et', 'est', 'est', 'est', 'Estonian', 'eesti, eesti keel'), |
|
| 71 | + array ('ee', 'ewe', 'ewe', 'ewe', 'Ewe', 'Eʋegbe'), |
|
| 72 | + array ('fo', 'fao', 'fao', 'fao', 'Faroese', 'føroyskt'), |
|
| 73 | + array ('fj', 'fij', 'fij', 'fij', 'Fijian', 'vosa Vakaviti'), |
|
| 74 | + array ('fi', 'fin', 'fin', 'fin', 'Finnish', 'suomi, suomen kieli'), |
|
| 75 | + array ('fr', 'fra', 'fre', 'fra', 'French', 'français, langue française'), |
|
| 76 | + array ('ff', 'ful', 'ful', 'ful', 'Fula, Fulah, Pulaar, Pular', 'Fulfulde, Pulaar, Pular'), |
|
| 77 | + array ('gl', 'glg', 'glg', 'glg', 'Galician', 'galego'), |
|
| 78 | + array ('ka', 'kat', 'geo', 'kat', 'Georgian', 'ქართული'), |
|
| 79 | + array ('de', 'deu', 'ger', 'deu', 'German', 'Deutsch'), |
|
| 80 | + array ('el', 'ell', 'gre', 'ell', 'Greek (modern)', 'ελληνικά'), |
|
| 81 | + array ('gn', 'grn', 'grn', 'grn', 'Guaraní', 'Avañe\'ẽ'), |
|
| 82 | + array ('gu', 'guj', 'guj', 'guj', 'Gujarati', 'ગુજરાતી'), |
|
| 83 | + array ('ht', 'hat', 'hat', 'hat', 'Haitian, Haitian Creole', 'Kreyòl ayisyen'), |
|
| 84 | + array ('ha', 'hau', 'hau', 'hau', 'Hausa', '(Hausa) هَوُسَ'), |
|
| 85 | + array ('he', 'heb', 'heb', 'heb', 'Hebrew (modern)', 'עברית'), |
|
| 86 | + array ('hz', 'her', 'her', 'her', 'Herero', 'Otjiherero'), |
|
| 87 | + array ('hi', 'hin', 'hin', 'hin', 'Hindi', 'हिन्दी, हिंदी'), |
|
| 88 | + array ('ho', 'hmo', 'hmo', 'hmo', 'Hiri Motu', 'Hiri Motu'), |
|
| 89 | + array ('hu', 'hun', 'hun', 'hun', 'Hungarian', 'magyar'), |
|
| 90 | + array ('ia', 'ina', 'ina', 'ina', 'Interlingua', 'Interlingua'), |
|
| 91 | + array ('id', 'ind', 'ind', 'ind', 'Indonesian', 'Bahasa Indonesia'), |
|
| 92 | + array ('ie', 'ile', 'ile', 'ile', 'Interlingue', 'Originally called Occidental; then Interlingue after WWII'), |
|
| 93 | + array ('ga', 'gle', 'gle', 'gle', 'Irish', 'Gaeilge'), |
|
| 94 | + array ('ig', 'ibo', 'ibo', 'ibo', 'Igbo', 'Asụsụ Igbo'), |
|
| 95 | + array ('ik', 'ipk', 'ipk', 'ipk', 'Inupiaq', 'Iñupiaq, Iñupiatun'), |
|
| 96 | + array ('io', 'ido', 'ido', 'ido', 'Ido', 'Ido'), |
|
| 97 | + array ('is', 'isl', 'ice', 'isl', 'Icelandic', 'Íslenska'), |
|
| 98 | + array ('it', 'ita', 'ita', 'ita', 'Italian', 'italiano'), |
|
| 99 | + array ('iu', 'iku', 'iku', 'iku', 'Inuktitut', 'ᐃᓄᒃᑎᑐᑦ'), |
|
| 100 | + array ('ja', 'jpn', 'jpn', 'jpn', 'Japanese', '日本語 (にほんご)'), |
|
| 101 | + array ('jv', 'jav', 'jav', 'jav', 'Javanese', 'basa Jawa'), |
|
| 102 | + array ('kl', 'kal', 'kal', 'kal', 'Kalaallisut, Greenlandic', 'kalaallisut, kalaallit oqaasii'), |
|
| 103 | + array ('kn', 'kan', 'kan', 'kan', 'Kannada', 'ಕನ್ನಡ'), |
|
| 104 | + array ('kr', 'kau', 'kau', 'kau', 'Kanuri', 'Kanuri'), |
|
| 105 | + array ('ks', 'kas', 'kas', 'kas', 'Kashmiri', 'कश्मीरी, كشميري'), |
|
| 106 | + array ('kk', 'kaz', 'kaz', 'kaz', 'Kazakh', 'қазақ тілі'), |
|
| 107 | + array ('km', 'khm', 'khm', 'khm', 'Khmer', 'ខ្មែរ, ខេមរភាសា, ភាសាខ្មែរ'), |
|
| 108 | + array ('ki', 'kik', 'kik', 'kik', 'Kikuyu, Gikuyu', 'Gĩkũyũ'), |
|
| 109 | + array ('rw', 'kin', 'kin', 'kin', 'Kinyarwanda', 'Ikinyarwanda'), |
|
| 110 | + array ('ky', 'kir', 'kir', 'kir', 'Kyrgyz', 'Кыргызча, Кыргыз тили'), |
|
| 111 | + array ('kv', 'kom', 'kom', 'kom', 'Komi', 'коми кыв'), |
|
| 112 | + array ('kg', 'kon', 'kon', 'kon', 'Kongo', 'Kikongo'), |
|
| 113 | + array ('ko', 'kor', 'kor', 'kor', 'Korean', '한국어, 조선어'), |
|
| 114 | + array ('ku', 'kur', 'kur', 'kur', 'Kurdish', 'Kurdî, كوردی'), |
|
| 115 | + array ('kj', 'kua', 'kua', 'kua', 'Kwanyama, Kuanyama', 'Kuanyama'), |
|
| 116 | + array ('la', 'lat', 'lat', 'lat', 'Latin', 'latine, lingua latina'), |
|
| 117 | + array ('', '', '', 'lld', 'Ladin', 'ladin, lingua ladina'), |
|
| 118 | + array ('lb', 'ltz', 'ltz', 'ltz', 'Luxembourgish, Letzeburgesch', 'Lëtzebuergesch'), |
|
| 119 | + array ('lg', 'lug', 'lug', 'lug', 'Ganda', 'Luganda'), |
|
| 120 | + array ('li', 'lim', 'lim', 'lim', 'Limburgish, Limburgan, Limburger', 'Limburgs'), |
|
| 121 | + array ('ln', 'lin', 'lin', 'lin', 'Lingala', 'Lingála'), |
|
| 122 | + array ('lo', 'lao', 'lao', 'lao', 'Lao', 'ພາສາລາວ'), |
|
| 123 | + array ('lt', 'lit', 'lit', 'lit', 'Lithuanian', 'lietuvių kalba'), |
|
| 124 | + array ('lu', 'lub', 'lub', 'lub', 'Luba-Katanga', 'Tshiluba'), |
|
| 125 | + array ('lv', 'lav', 'lav', 'lav', 'Latvian', 'latviešu valoda'), |
|
| 126 | + array ('gv', 'glv', 'glv', 'glv', 'Manx', 'Gaelg, Gailck'), |
|
| 127 | + array ('mk', 'mkd', 'mac', 'mkd', 'Macedonian', 'македонски јазик'), |
|
| 128 | + array ('mg', 'mlg', 'mlg', 'mlg', 'Malagasy', 'fiteny malagasy'), |
|
| 129 | + array ('ms', 'msa', 'may', 'msa', 'Malay', 'bahasa Melayu, بهاس ملايو'), |
|
| 130 | + array ('ml', 'mal', 'mal', 'mal', 'Malayalam', 'മലയാളം'), |
|
| 131 | + array ('mt', 'mlt', 'mlt', 'mlt', 'Maltese', 'Malti'), |
|
| 132 | + array ('mi', 'mri', 'mao', 'mri', 'Māori', 'te reo Māori'), |
|
| 133 | + array ('mr', 'mar', 'mar', 'mar', 'Marathi (Marāṭhī)', 'मराठी'), |
|
| 134 | + array ('mh', 'mah', 'mah', 'mah', 'Marshallese', 'Kajin M̧ajeļ'), |
|
| 135 | + array ('mn', 'mon', 'mon', 'mon', 'Mongolian', 'монгол'), |
|
| 136 | + array ('na', 'nau', 'nau', 'nau', 'Nauru', 'Ekakairũ Naoero'), |
|
| 137 | + array ('nv', 'nav', 'nav', 'nav', 'Navajo, Navaho', 'Diné bizaad'), |
|
| 138 | + array ('nd', 'nde', 'nde', 'nde', 'Northern Ndebele', 'isiNdebele'), |
|
| 139 | + array ('ne', 'nep', 'nep', 'nep', 'Nepali', 'नेपाली'), |
|
| 140 | + array ('ng', 'ndo', 'ndo', 'ndo', 'Ndonga', 'Owambo'), |
|
| 141 | + array ('nb', 'nob', 'nob', 'nob', 'Norwegian Bokmål', 'Norsk bokmål'), |
|
| 142 | + array ('nn', 'nno', 'nno', 'nno', 'Norwegian Nynorsk', 'Norsk nynorsk'), |
|
| 143 | + array ('no', 'nor', 'nor', 'nor', 'Norwegian', 'Norsk'), |
|
| 144 | + array ('ii', 'iii', 'iii', 'iii', 'Nuosu', 'ꆈꌠ꒿ Nuosuhxop'), |
|
| 145 | + array ('nr', 'nbl', 'nbl', 'nbl', 'Southern Ndebele', 'isiNdebele'), |
|
| 146 | + array ('oc', 'oci', 'oci', 'oci', 'Occitan', 'occitan, lenga d\'òc'), |
|
| 147 | + array ('oj', 'oji', 'oji', 'oji', 'Ojibwe, Ojibwa', 'ᐊᓂᔑᓈᐯᒧᐎᓐ'), |
|
| 148 | + array ('cu', 'chu', 'chu', 'chu', 'Old Church Slavonic, Church Slavonic, Old Bulgarian', 'ѩзыкъ словѣньскъ'), |
|
| 149 | + array ('om', 'orm', 'orm', 'orm', 'Oromo', 'Afaan Oromoo'), |
|
| 150 | + array ('or', 'ori', 'ori', 'ori', 'Oriya', 'ଓଡ଼ିଆ'), |
|
| 151 | + array ('os', 'oss', 'oss', 'oss', 'Ossetian, Ossetic', 'ирон æвзаг'), |
|
| 152 | + array ('pa', 'pan', 'pan', 'pan', 'Panjabi, Punjabi', 'ਪੰਜਾਬੀ, پنجابی'), |
|
| 153 | + array ('pi', 'pli', 'pli', 'pli', 'Pāli', 'पाऴि'), |
|
| 154 | + array ('fa', 'fas', 'per', 'fas', 'Persian (Farsi)', 'فارسی'), |
|
| 155 | + array ('pl', 'pol', 'pol', 'pol', 'Polish', 'język polski, polszczyzna'), |
|
| 156 | + array ('ps', 'pus', 'pus', 'pus', 'Pashto, Pushto', 'پښتو'), |
|
| 157 | + array ('pt', 'por', 'por', 'por', 'Portuguese', 'português'), |
|
| 158 | + array ('qu', 'que', 'que', 'que', 'Quechua', 'Runa Simi, Kichwa'), |
|
| 159 | + array ('rm', 'roh', 'roh', 'roh', 'Romansh', 'rumantsch grischun'), |
|
| 160 | + array ('rn', 'run', 'run', 'run', 'Kirundi', 'Ikirundi'), |
|
| 161 | + array ('ro', 'ron', 'rum', 'ron', 'Romanian', 'limba română'), |
|
| 162 | + array ('ru', 'rus', 'rus', 'rus', 'Russian', 'Русский'), |
|
| 163 | + array ('sa', 'san', 'san', 'san', 'Sanskrit (Saṁskṛta)', 'संस्कृतम्'), |
|
| 164 | + array ('sc', 'srd', 'srd', 'srd', 'Sardinian', 'sardu'), |
|
| 165 | + array ('sd', 'snd', 'snd', 'snd', 'Sindhi', 'सिन्धी, سنڌي، سندھی'), |
|
| 166 | + array ('se', 'sme', 'sme', 'sme', 'Northern Sami', 'Davvisámegiella'), |
|
| 167 | + array ('sm', 'smo', 'smo', 'smo', 'Samoan', 'gagana fa\'a Samoa'), |
|
| 168 | + array ('sg', 'sag', 'sag', 'sag', 'Sango', 'yângâ tî sängö'), |
|
| 169 | + array ('sr', 'srp', 'srp', 'srp', 'Serbian', 'српски језик'), |
|
| 170 | + array ('gd', 'gla', 'gla', 'gla', 'Scottish Gaelic, Gaelic', 'Gàidhlig'), |
|
| 171 | + array ('sn', 'sna', 'sna', 'sna', 'Shona', 'chiShona'), |
|
| 172 | + array ('si', 'sin', 'sin', 'sin', 'Sinhala, Sinhalese', 'සිංහල'), |
|
| 173 | + array ('sk', 'slk', 'slo', 'slk', 'Slovak', 'slovenčina, slovenský jazyk'), |
|
| 174 | + array ('sl', 'slv', 'slv', 'slv', 'Slovene', 'slovenski jezik, slovenščina'), |
|
| 175 | + array ('so', 'som', 'som', 'som', 'Somali', 'Soomaaliga, af Soomaali'), |
|
| 176 | + array ('st', 'sot', 'sot', 'sot', 'Southern Sotho', 'Sesotho'), |
|
| 177 | + array ('es', 'spa', 'spa', 'spa', 'Spanish', 'español'), |
|
| 178 | + array ('su', 'sun', 'sun', 'sun', 'Sundanese', 'Basa Sunda'), |
|
| 179 | + array ('sw', 'swa', 'swa', 'swa', 'Swahili', 'Kiswahili'), |
|
| 180 | + array ('ss', 'ssw', 'ssw', 'ssw', 'Swati', 'SiSwati'), |
|
| 181 | + array ('sv', 'swe', 'swe', 'swe', 'Swedish', 'svenska'), |
|
| 182 | + array ('ta', 'tam', 'tam', 'tam', 'Tamil', 'தமிழ்'), |
|
| 183 | + array ('te', 'tel', 'tel', 'tel', 'Telugu', 'తెలుగు'), |
|
| 184 | + array ('tg', 'tgk', 'tgk', 'tgk', 'Tajik', 'тоҷикӣ, toçikī, تاجیکی'), |
|
| 185 | + array ('th', 'tha', 'tha', 'tha', 'Thai', 'ไทย'), |
|
| 186 | + array ('ti', 'tir', 'tir', 'tir', 'Tigrinya', 'ትግርኛ'), |
|
| 187 | + array ('bo', 'bod', 'tib', 'bod', 'Tibetan Standard, Tibetan, Central', 'བོད་ཡིག'), |
|
| 188 | + array ('tk', 'tuk', 'tuk', 'tuk', 'Turkmen', 'Türkmen, Түркмен'), |
|
| 189 | + array ('tl', 'tgl', 'tgl', 'tgl', 'Tagalog', 'Wikang Tagalog, ᜏᜒᜃᜅ᜔ ᜆᜄᜎᜓᜄ᜔'), |
|
| 190 | + array ('tn', 'tsn', 'tsn', 'tsn', 'Tswana', 'Setswana'), |
|
| 191 | + array ('to', 'ton', 'ton', 'ton', 'Tonga (Tonga Islands)', 'faka Tonga'), |
|
| 192 | + array ('tr', 'tur', 'tur', 'tur', 'Turkish', 'Türkçe'), |
|
| 193 | + array ('ts', 'tso', 'tso', 'tso', 'Tsonga', 'Xitsonga'), |
|
| 194 | + array ('tt', 'tat', 'tat', 'tat', 'Tatar', 'татар теле, tatar tele'), |
|
| 195 | + array ('tw', 'twi', 'twi', 'twi', 'Twi', 'Twi'), |
|
| 196 | + array ('ty', 'tah', 'tah', 'tah', 'Tahitian', 'Reo Tahiti'), |
|
| 197 | + array ('ug', 'uig', 'uig', 'uig', 'Uyghur', 'ئۇيغۇرچە, Uyghurche'), |
|
| 198 | + array ('uk', 'ukr', 'ukr', 'ukr', 'Ukrainian', 'українська мова'), |
|
| 199 | + array ('ur', 'urd', 'urd', 'urd', 'Urdu', 'اردو'), |
|
| 200 | + array ('uz', 'uzb', 'uzb', 'uzb', 'Uzbek', 'Oʻzbek, Ўзбек, أۇزبېك'), |
|
| 201 | + array ('ve', 'ven', 'ven', 'ven', 'Venda', 'Tshivenḓa'), |
|
| 202 | + array ('vi', 'vie', 'vie', 'vie', 'Vietnamese', 'Việt Nam'), |
|
| 203 | + array ('vo', 'vol', 'vol', 'vol', 'Volapük', 'Volapük'), |
|
| 204 | + array ('wa', 'wln', 'wln', 'wln', 'Walloon', 'walon'), |
|
| 205 | + array ('cy', 'cym', 'wel', 'cym', 'Welsh', 'Cymraeg'), |
|
| 206 | + array ('wo', 'wol', 'wol', 'wol', 'Wolof', 'Wollof'), |
|
| 207 | + array ('fy', 'fry', 'fry', 'fry', 'Western Frisian', 'Frysk'), |
|
| 208 | + array ('xh', 'xho', 'xho', 'xho', 'Xhosa', 'isiXhosa'), |
|
| 209 | + array ('yi', 'yid', 'yid', 'yid', 'Yiddish', 'ייִדיש'), |
|
| 210 | + array ('yo', 'yor', 'yor', 'yor', 'Yoruba', 'Yorùbá'), |
|
| 211 | + array ('za', 'zha', 'zha', 'zha', 'Zhuang, Chuang', 'Saɯ cueŋƅ, Saw cuengh'), |
|
| 212 | + array ('zu', 'zul', 'zul', 'zul', 'Zulu', 'isiZulu'), |
|
| 213 | 213 | ); |
| 214 | 214 | |
| 215 | 215 | public static function convertFrom6391to6392T($code) |
| 216 | 216 | { |
| 217 | - foreach(self::$languageCodes as $languageCode) { |
|
| 218 | - if($languageCode[0] == $code) { |
|
| 217 | + foreach (self::$languageCodes as $languageCode) { |
|
| 218 | + if ($languageCode[0] == $code) { |
|
| 219 | 219 | return $languageCode[1]; |
| 220 | 220 | } |
| 221 | 221 | } |
@@ -223,8 +223,8 @@ discard block |
||
| 223 | 223 | |
| 224 | 224 | public static function convertFrom6391to6392B($code) |
| 225 | 225 | { |
| 226 | - foreach(self::$languageCodes as $languageCode) { |
|
| 227 | - if($languageCode[0] == $code) { |
|
| 226 | + foreach (self::$languageCodes as $languageCode) { |
|
| 227 | + if ($languageCode[0] == $code) { |
|
| 228 | 228 | return $languageCode[2]; |
| 229 | 229 | } |
| 230 | 230 | } |
@@ -232,8 +232,8 @@ discard block |
||
| 232 | 232 | |
| 233 | 233 | public static function convertFrom6391to6393($code) |
| 234 | 234 | { |
| 235 | - foreach(self::$languageCodes as $languageCode) { |
|
| 236 | - if($languageCode[0] == $code) { |
|
| 235 | + foreach (self::$languageCodes as $languageCode) { |
|
| 236 | + if ($languageCode[0] == $code) { |
|
| 237 | 237 | return $languageCode[3]; |
| 238 | 238 | } |
| 239 | 239 | } |
@@ -241,8 +241,8 @@ discard block |
||
| 241 | 241 | |
| 242 | 242 | public static function convertFrom6392Tto6391($code) |
| 243 | 243 | { |
| 244 | - foreach(self::$languageCodes as $languageCode) { |
|
| 245 | - if($languageCode[1] == $code) { |
|
| 244 | + foreach (self::$languageCodes as $languageCode) { |
|
| 245 | + if ($languageCode[1] == $code) { |
|
| 246 | 246 | return $languageCode[0]; |
| 247 | 247 | } |
| 248 | 248 | } |
@@ -250,8 +250,8 @@ discard block |
||
| 250 | 250 | |
| 251 | 251 | public static function convertFrom6392Tto6392B($code) |
| 252 | 252 | { |
| 253 | - foreach(self::$languageCodes as $languageCode) { |
|
| 254 | - if($languageCode[1] == $code) { |
|
| 253 | + foreach (self::$languageCodes as $languageCode) { |
|
| 254 | + if ($languageCode[1] == $code) { |
|
| 255 | 255 | return $languageCode[2]; |
| 256 | 256 | } |
| 257 | 257 | } |
@@ -259,8 +259,8 @@ discard block |
||
| 259 | 259 | |
| 260 | 260 | public static function convertFrom6392Tto6393($code) |
| 261 | 261 | { |
| 262 | - foreach(self::$languageCodes as $languageCode) { |
|
| 263 | - if($languageCode[1] == $code) { |
|
| 262 | + foreach (self::$languageCodes as $languageCode) { |
|
| 263 | + if ($languageCode[1] == $code) { |
|
| 264 | 264 | return $languageCode[3]; |
| 265 | 265 | } |
| 266 | 266 | } |
@@ -268,8 +268,8 @@ discard block |
||
| 268 | 268 | |
| 269 | 269 | public static function convertFrom6392Bto6391($code) |
| 270 | 270 | { |
| 271 | - foreach(self::$languageCodes as $languageCode) { |
|
| 272 | - if($languageCode[2] == $code) { |
|
| 271 | + foreach (self::$languageCodes as $languageCode) { |
|
| 272 | + if ($languageCode[2] == $code) { |
|
| 273 | 273 | return $languageCode[0]; |
| 274 | 274 | } |
| 275 | 275 | } |
@@ -277,8 +277,8 @@ discard block |
||
| 277 | 277 | |
| 278 | 278 | public static function convertFrom6392Bto6392T($code) |
| 279 | 279 | { |
| 280 | - foreach(self::$languageCodes as $languageCode) { |
|
| 281 | - if($languageCode[2] == $code) { |
|
| 280 | + foreach (self::$languageCodes as $languageCode) { |
|
| 281 | + if ($languageCode[2] == $code) { |
|
| 282 | 282 | return $languageCode[1]; |
| 283 | 283 | } |
| 284 | 284 | } |
@@ -286,8 +286,8 @@ discard block |
||
| 286 | 286 | |
| 287 | 287 | public static function convertFrom6392Bto6393($code) |
| 288 | 288 | { |
| 289 | - foreach(self::$languageCodes as $languageCode) { |
|
| 290 | - if($languageCode[2] == $code) { |
|
| 289 | + foreach (self::$languageCodes as $languageCode) { |
|
| 290 | + if ($languageCode[2] == $code) { |
|
| 291 | 291 | return $languageCode[3]; |
| 292 | 292 | } |
| 293 | 293 | } |
@@ -14,8 +14,7 @@ discard block |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class LanguageCode |
|
| 18 | -{ |
|
| 17 | +class LanguageCode { |
|
| 19 | 18 | |
| 20 | 19 | /* |
| 21 | 20 | * Language database, based on Wikipedia |
@@ -212,8 +211,7 @@ discard block |
||
| 212 | 211 | array('zu', 'zul', 'zul', 'zul', 'Zulu', 'isiZulu'), |
| 213 | 212 | ); |
| 214 | 213 | |
| 215 | - public static function convertFrom6391to6392T($code) |
|
| 216 | - { |
|
| 214 | + public static function convertFrom6391to6392T($code) { |
|
| 217 | 215 | foreach(self::$languageCodes as $languageCode) { |
| 218 | 216 | if($languageCode[0] == $code) { |
| 219 | 217 | return $languageCode[1]; |
@@ -221,8 +219,7 @@ discard block |
||
| 221 | 219 | } |
| 222 | 220 | } |
| 223 | 221 | |
| 224 | - public static function convertFrom6391to6392B($code) |
|
| 225 | - { |
|
| 222 | + public static function convertFrom6391to6392B($code) { |
|
| 226 | 223 | foreach(self::$languageCodes as $languageCode) { |
| 227 | 224 | if($languageCode[0] == $code) { |
| 228 | 225 | return $languageCode[2]; |
@@ -230,8 +227,7 @@ discard block |
||
| 230 | 227 | } |
| 231 | 228 | } |
| 232 | 229 | |
| 233 | - public static function convertFrom6391to6393($code) |
|
| 234 | - { |
|
| 230 | + public static function convertFrom6391to6393($code) { |
|
| 235 | 231 | foreach(self::$languageCodes as $languageCode) { |
| 236 | 232 | if($languageCode[0] == $code) { |
| 237 | 233 | return $languageCode[3]; |
@@ -239,8 +235,7 @@ discard block |
||
| 239 | 235 | } |
| 240 | 236 | } |
| 241 | 237 | |
| 242 | - public static function convertFrom6392Tto6391($code) |
|
| 243 | - { |
|
| 238 | + public static function convertFrom6392Tto6391($code) { |
|
| 244 | 239 | foreach(self::$languageCodes as $languageCode) { |
| 245 | 240 | if($languageCode[1] == $code) { |
| 246 | 241 | return $languageCode[0]; |
@@ -248,8 +243,7 @@ discard block |
||
| 248 | 243 | } |
| 249 | 244 | } |
| 250 | 245 | |
| 251 | - public static function convertFrom6392Tto6392B($code) |
|
| 252 | - { |
|
| 246 | + public static function convertFrom6392Tto6392B($code) { |
|
| 253 | 247 | foreach(self::$languageCodes as $languageCode) { |
| 254 | 248 | if($languageCode[1] == $code) { |
| 255 | 249 | return $languageCode[2]; |
@@ -257,8 +251,7 @@ discard block |
||
| 257 | 251 | } |
| 258 | 252 | } |
| 259 | 253 | |
| 260 | - public static function convertFrom6392Tto6393($code) |
|
| 261 | - { |
|
| 254 | + public static function convertFrom6392Tto6393($code) { |
|
| 262 | 255 | foreach(self::$languageCodes as $languageCode) { |
| 263 | 256 | if($languageCode[1] == $code) { |
| 264 | 257 | return $languageCode[3]; |
@@ -266,8 +259,7 @@ discard block |
||
| 266 | 259 | } |
| 267 | 260 | } |
| 268 | 261 | |
| 269 | - public static function convertFrom6392Bto6391($code) |
|
| 270 | - { |
|
| 262 | + public static function convertFrom6392Bto6391($code) { |
|
| 271 | 263 | foreach(self::$languageCodes as $languageCode) { |
| 272 | 264 | if($languageCode[2] == $code) { |
| 273 | 265 | return $languageCode[0]; |
@@ -275,8 +267,7 @@ discard block |
||
| 275 | 267 | } |
| 276 | 268 | } |
| 277 | 269 | |
| 278 | - public static function convertFrom6392Bto6392T($code) |
|
| 279 | - { |
|
| 270 | + public static function convertFrom6392Bto6392T($code) { |
|
| 280 | 271 | foreach(self::$languageCodes as $languageCode) { |
| 281 | 272 | if($languageCode[2] == $code) { |
| 282 | 273 | return $languageCode[1]; |
@@ -284,8 +275,7 @@ discard block |
||
| 284 | 275 | } |
| 285 | 276 | } |
| 286 | 277 | |
| 287 | - public static function convertFrom6392Bto6393($code) |
|
| 288 | - { |
|
| 278 | + public static function convertFrom6392Bto6393($code) { |
|
| 289 | 279 | foreach(self::$languageCodes as $languageCode) { |
| 290 | 280 | if($languageCode[2] == $code) { |
| 291 | 281 | return $languageCode[3]; |
@@ -14,8 +14,7 @@ discard block |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class FormField |
|
| 18 | -{ |
|
| 17 | +class FormField { |
|
| 19 | 18 | |
| 20 | 19 | protected $pageUid; |
| 21 | 20 | protected $groupUid; |
@@ -25,8 +24,7 @@ discard block |
||
| 25 | 24 | |
| 26 | 25 | protected $value; |
| 27 | 26 | |
| 28 | - public function __construct($id, $value) |
|
| 29 | - { |
|
| 27 | + public function __construct($id, $value) { |
|
| 30 | 28 | |
| 31 | 29 | $id = explode('-', $id); |
| 32 | 30 | $this->pageUid = array_shift($id); |
@@ -38,33 +36,27 @@ discard block |
||
| 38 | 36 | $this->value = $value; |
| 39 | 37 | } |
| 40 | 38 | |
| 41 | - public function getPageUid() |
|
| 42 | - { |
|
| 39 | + public function getPageUid() { |
|
| 43 | 40 | return $this->pageUid; |
| 44 | 41 | } |
| 45 | 42 | |
| 46 | - public function getGroupUid() |
|
| 47 | - { |
|
| 43 | + public function getGroupUid() { |
|
| 48 | 44 | return $this->groupUid; |
| 49 | 45 | } |
| 50 | 46 | |
| 51 | - public function getGroupIndex() |
|
| 52 | - { |
|
| 47 | + public function getGroupIndex() { |
|
| 53 | 48 | return $this->groupIndex; |
| 54 | 49 | } |
| 55 | 50 | |
| 56 | - public function getFieldUid() |
|
| 57 | - { |
|
| 51 | + public function getFieldUid() { |
|
| 58 | 52 | return $this->fieldUid; |
| 59 | 53 | } |
| 60 | 54 | |
| 61 | - public function getFieldIndex() |
|
| 62 | - { |
|
| 55 | + public function getFieldIndex() { |
|
| 63 | 56 | return $this->fieldIndex; |
| 64 | 57 | } |
| 65 | 58 | |
| 66 | - public function getValue() |
|
| 67 | - { |
|
| 59 | + public function getValue() { |
|
| 68 | 60 | return $this->value; |
| 69 | 61 | } |
| 70 | 62 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $baseUrl = trim($uploadDomain, "/ "); |
| 40 | 40 | |
| 41 | 41 | if (empty($baseUrl)) { |
| 42 | - $protocol = stripos($_SERVER['SERVER_PROTOCOL'], 'https') === false ? 'http://' : 'https://'; |
|
| 42 | + $protocol = stripos($_SERVER['SERVER_PROTOCOL'], 'https') === FALSE ? 'http://' : 'https://'; |
|
| 43 | 43 | $baseUrl = $protocol . $_SERVER['HTTP_HOST']; |
| 44 | 44 | } |
| 45 | 45 | |
@@ -17,8 +17,7 @@ discard block |
||
| 17 | 17 | use EWW\Dpf\Configuration\ClientConfigurationManager; |
| 18 | 18 | use TYPO3\CMS\Extbase\Object\ObjectManager; |
| 19 | 19 | |
| 20 | -class UploadFileUrl |
|
| 21 | -{ |
|
| 20 | +class UploadFileUrl { |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * clientConfigurationManager |
@@ -33,8 +32,7 @@ discard block |
||
| 33 | 32 | } |
| 34 | 33 | |
| 35 | 34 | |
| 36 | - public function getBaseUrl() |
|
| 37 | - { |
|
| 35 | + public function getBaseUrl() { |
|
| 38 | 36 | $uploadDomain = $this->clientConfigurationManager->getUploadDomain(); |
| 39 | 37 | |
| 40 | 38 | $baseUrl = trim($uploadDomain, "/ "); |
@@ -47,8 +45,7 @@ discard block |
||
| 47 | 45 | return $baseUrl; |
| 48 | 46 | } |
| 49 | 47 | |
| 50 | - public function getDirectory() |
|
| 51 | - { |
|
| 48 | + public function getDirectory() { |
|
| 52 | 49 | $uploadDirectory = $this->clientConfigurationManager->getUploadDirectory(); |
| 53 | 50 | |
| 54 | 51 | $uploadDirectory = trim($uploadDirectory, "/ "); |
@@ -58,8 +55,7 @@ discard block |
||
| 58 | 55 | return $uploadDir; |
| 59 | 56 | } |
| 60 | 57 | |
| 61 | - public function getUploadUrl() |
|
| 62 | - { |
|
| 58 | + public function getUploadUrl() { |
|
| 63 | 59 | return $this->getBaseUrl() . "/" . $this->getDirectory(); |
| 64 | 60 | } |
| 65 | 61 | |
@@ -125,12 +125,12 @@ |
||
| 125 | 125 | <language>{$dataCiteLanguage}</language> |
| 126 | 126 | <resourceType resourceTypeGeneral="Text">{$dataCiteResourceType}</resourceType> |
| 127 | 127 | </resource> |
| 128 | -XML |
|
| 128 | +xml |
|
| 129 | 129 | ); |
| 130 | 130 | |
| 131 | 131 | $dataCiteXml = new \DOMDocument('1.0', 'UTF-8'); |
| 132 | - $dataCiteXml->preserveWhiteSpace = false; |
|
| 133 | - $dataCiteXml->formatOutput = true; |
|
| 132 | + $dataCiteXml->preserveWhiteSpace = FALSE; |
|
| 133 | + $dataCiteXml->formatOutput = TRUE; |
|
| 134 | 134 | $dataCiteXml->loadXML($xml->asXML()); |
| 135 | 135 | |
| 136 | 136 | return($dataCiteXml->saveXML()); |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | // doi |
| 36 | 36 | $metsDoi = $metsXml->xpath("//mods:identifier[@type='doi']"); |
| 37 | - if(!empty($metsDoi)) { |
|
| 37 | + if (!empty($metsDoi)) { |
|
| 38 | 38 | $dataCiteDoi = $metsDoi[0]; |
| 39 | 39 | } else { |
| 40 | 40 | $dataCiteDoi = '10.1000/1'; // http://www.doi.org/index.html as default |
@@ -42,20 +42,20 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | // creators |
| 44 | 44 | $metsCreator = $metsXml->xpath("//mods:name[@type='personal']"); |
| 45 | - $dataCiteCreator = array(); |
|
| 46 | - foreach($metsCreator as $creator) |
|
| 45 | + $dataCiteCreator = array (); |
|
| 46 | + foreach ($metsCreator as $creator) |
|
| 47 | 47 | { |
| 48 | 48 | $creator->registerXPathNamespace('mods', 'http://www.loc.gov/mods/v3'); |
| 49 | 49 | $role = $creator->xpath(".//mods:roleTerm[@type='code']"); |
| 50 | - if($role[0] != 'aut' && $role[0] != 'cmp') { |
|
| 50 | + if ($role[0] != 'aut' && $role[0] != 'cmp') { |
|
| 51 | 51 | continue; |
| 52 | 52 | } |
| 53 | - $names = array(); |
|
| 53 | + $names = array (); |
|
| 54 | 54 | $givenName = $creator->xpath(".//mods:namePart[@type='given']"); |
| 55 | 55 | $familyName = $creator->xpath(".//mods:namePart[@type='family']"); |
| 56 | 56 | $creatorName = $creator->xpath(".//mods:namePart[@type='displayForm']"); |
| 57 | - if(empty($creatorName)) { |
|
| 58 | - if(!empty($givenName) && !empty($familyName)) { |
|
| 57 | + if (empty($creatorName)) { |
|
| 58 | + if (!empty($givenName) && !empty($familyName)) { |
|
| 59 | 59 | $creatorName = "<creatorName>{$familyName[0]}, {$givenName[0]}</creatorName>"; |
| 60 | 60 | } else { |
| 61 | 61 | $creatorName = ""; |
@@ -77,36 +77,36 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | // subtitles |
| 79 | 79 | $metsSubTitles = $metsXml->xpath("//mods:titleInfo[@usage='primary']/mods:subTitle"); |
| 80 | - foreach($metsSubTitles as $title) { |
|
| 80 | + foreach ($metsSubTitles as $title) { |
|
| 81 | 81 | $dataCiteTitle .= (!empty($title)) ? "<title titleType=\"Subtitle\">{$title}</title>" : ""; |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | // publisher |
| 85 | 85 | $metsPublisher = $metsXml->xpath("//mods:name[@type='corporate']"); |
| 86 | 86 | $dataCitePublisher = ''; |
| 87 | - foreach($metsPublisher as $corporation) { |
|
| 87 | + foreach ($metsPublisher as $corporation) { |
|
| 88 | 88 | $corporation->registerXPathNamespace('mods', 'http://www.loc.gov/mods/v3'); |
| 89 | 89 | $role = $corporation->xpath(".//mods:roleTerm[@type='code']"); |
| 90 | 90 | $role = (string) $role[0]; |
| 91 | 91 | $name = $corporation->xpath(".//mods:namePart"); |
| 92 | 92 | $name = (string) $name[0]; |
| 93 | - if($role == 'pbl') { |
|
| 93 | + if ($role == 'pbl') { |
|
| 94 | 94 | $dataCitePublisher = $name; |
| 95 | 95 | break; |
| 96 | - } elseif($role == 'dgg' || ($role == 'edt' && $dataCitePublisher == '')) { |
|
| 96 | + } elseif ($role == 'dgg' || ($role == 'edt' && $dataCitePublisher == '')) { |
|
| 97 | 97 | $dataCitePublisher = $name; |
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | // publication year |
| 102 | 102 | $metsPublicationYear = $metsXml->xpath("//mods:originInfo[@eventType='publication']/mods:dateIssued"); |
| 103 | - if(!empty($metsPublicationYear)) { |
|
| 103 | + if (!empty($metsPublicationYear)) { |
|
| 104 | 104 | $dataCitePublicationYear = $metsPublicationYear[0]; |
| 105 | 105 | } else { |
| 106 | 106 | $metsPublicationYear = $metsXml->xpath("//mods:originInfo/mods:dateIssued"); |
| 107 | 107 | $dataCitePublicationYear = (!empty($metsPublicationYear)) ? $metsPublicationYear[0] : ""; |
| 108 | 108 | } |
| 109 | - if(strlen($dataCitePublicationYear) != 4) { |
|
| 109 | + if (strlen($dataCitePublicationYear) != 4) { |
|
| 110 | 110 | $dataCitePublicationYear = substr($dataCitePublicationYear, 0, 4); |
| 111 | 111 | } |
| 112 | 112 | $dataCitePublicationYear = (preg_match('/(19|20)\d{2}/', $dataCitePublicationYear)) ? $dataCitePublicationYear : ""; |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | // subjects |
| 115 | 115 | $metsSubjects = $metsXml->xpath("//mods:classification[@authority='z']"); |
| 116 | 116 | $dataCiteSubjects = ''; |
| 117 | - foreach(GeneralUtility::trimExplode(',', $metsSubjects[0]) as $subject) { |
|
| 117 | + foreach (GeneralUtility::trimExplode(',', $metsSubjects[0]) as $subject) { |
|
| 118 | 118 | $dataCiteSubjects .= "<subject>{$subject}</subject>"; |
| 119 | 119 | } |
| 120 | 120 | |
@@ -16,8 +16,7 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | use TYPO3\CMS\Core\Utility\GeneralUtility; |
| 18 | 18 | |
| 19 | -class DataCiteXml |
|
| 20 | -{ |
|
| 19 | +class DataCiteXml { |
|
| 21 | 20 | |
| 22 | 21 | /** |
| 23 | 22 | * Generates DataCite.xml from a given METS.xml |
@@ -25,8 +24,7 @@ discard block |
||
| 25 | 24 | * @param string $metsXml |
| 26 | 25 | * @return string $dataCiteXml |
| 27 | 26 | */ |
| 28 | - public static function convertFromMetsXml($metsXml) |
|
| 29 | - { |
|
| 27 | + public static function convertFromMetsXml($metsXml) { |
|
| 30 | 28 | |
| 31 | 29 | $metsXml = simplexml_load_string($metsXml, NULL, NULL, "http://www.w3.org/2001/XMLSchema-instance"); |
| 32 | 30 | $metsXml->registerXPathNamespace('mods', 'http://www.loc.gov/mods/v3'); |
@@ -43,8 +41,7 @@ discard block |
||
| 43 | 41 | // creators |
| 44 | 42 | $metsCreator = $metsXml->xpath("//mods:name[@type='personal']"); |
| 45 | 43 | $dataCiteCreator = array(); |
| 46 | - foreach($metsCreator as $creator) |
|
| 47 | - { |
|
| 44 | + foreach($metsCreator as $creator) { |
|
| 48 | 45 | $creator->registerXPathNamespace('mods', 'http://www.loc.gov/mods/v3'); |
| 49 | 46 | $role = $creator->xpath(".//mods:roleTerm[@type='code']"); |
| 50 | 47 | if($role[0] != 'aut' && $role[0] != 'cmp') { |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | public function setInputOptions(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList = null) |
| 106 | 106 | { |
| 107 | 107 | |
| 108 | - $this->inputOptions = array(); |
|
| 108 | + $this->inputOptions = array (); |
|
| 109 | 109 | |
| 110 | 110 | if ($inputOptionList) { |
| 111 | 111 | $this->inputOptions[''] = ''; |
@@ -14,8 +14,7 @@ discard block |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class DocumentFormField extends AbstractFormElement |
|
| 18 | -{ |
|
| 17 | +class DocumentFormField extends AbstractFormElement { |
|
| 19 | 18 | |
| 20 | 19 | protected $value; |
| 21 | 20 | |
@@ -62,13 +61,11 @@ discard block |
||
| 62 | 61 | */ |
| 63 | 62 | protected $objectType = ''; |
| 64 | 63 | |
| 65 | - public function getValue() |
|
| 66 | - { |
|
| 64 | + public function getValue() { |
|
| 67 | 65 | return $this->value; |
| 68 | 66 | } |
| 69 | 67 | |
| 70 | - public function setValue($value, $defaultValue = '') |
|
| 71 | - { |
|
| 68 | + public function setValue($value, $defaultValue = '') { |
|
| 72 | 69 | |
| 73 | 70 | $this->hasDefaultValue = !empty($defaultValue); |
| 74 | 71 | |
@@ -99,13 +96,11 @@ discard block |
||
| 99 | 96 | } |
| 100 | 97 | } |
| 101 | 98 | |
| 102 | - public function getInputField() |
|
| 103 | - { |
|
| 99 | + public function getInputField() { |
|
| 104 | 100 | return $this->inputField; |
| 105 | 101 | } |
| 106 | 102 | |
| 107 | - public function setInputField($inputField) |
|
| 108 | - { |
|
| 103 | + public function setInputField($inputField) { |
|
| 109 | 104 | $this->inputField = $inputField; |
| 110 | 105 | } |
| 111 | 106 | |
@@ -113,8 +108,7 @@ discard block |
||
| 113 | 108 | * |
| 114 | 109 | * @return array |
| 115 | 110 | */ |
| 116 | - public function getInputOptions() |
|
| 117 | - { |
|
| 111 | + public function getInputOptions() { |
|
| 118 | 112 | return $this->inputOptions; |
| 119 | 113 | } |
| 120 | 114 | |
@@ -122,8 +116,7 @@ discard block |
||
| 122 | 116 | * |
| 123 | 117 | * @param \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList |
| 124 | 118 | */ |
| 125 | - public function setInputOptions(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList = null) |
|
| 126 | - { |
|
| 119 | + public function setInputOptions(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList = null) { |
|
| 127 | 120 | |
| 128 | 121 | $this->inputOptions = array(); |
| 129 | 122 | |
@@ -143,8 +136,7 @@ discard block |
||
| 143 | 136 | * |
| 144 | 137 | * @return string $fillOutService |
| 145 | 138 | */ |
| 146 | - public function getFillOutService() |
|
| 147 | - { |
|
| 139 | + public function getFillOutService() { |
|
| 148 | 140 | return $this->fillOutService; |
| 149 | 141 | } |
| 150 | 142 | |
@@ -154,8 +146,7 @@ discard block |
||
| 154 | 146 | * @param string $fillOutService |
| 155 | 147 | * @return void |
| 156 | 148 | */ |
| 157 | - public function setFillOutService($fillOutService) |
|
| 158 | - { |
|
| 149 | + public function setFillOutService($fillOutService) { |
|
| 159 | 150 | $this->fillOutService = $fillOutService; |
| 160 | 151 | } |
| 161 | 152 | |
@@ -164,8 +155,7 @@ discard block |
||
| 164 | 155 | * |
| 165 | 156 | * @return boolean $consent |
| 166 | 157 | */ |
| 167 | - public function getConsent() |
|
| 168 | - { |
|
| 158 | + public function getConsent() { |
|
| 169 | 159 | return $this->consent; |
| 170 | 160 | } |
| 171 | 161 | |
@@ -175,23 +165,19 @@ discard block |
||
| 175 | 165 | * @param boolean $consent |
| 176 | 166 | * @return void |
| 177 | 167 | */ |
| 178 | - public function setConsent($consent) |
|
| 179 | - { |
|
| 168 | + public function setConsent($consent) { |
|
| 180 | 169 | $this->consent = boolval($consent); |
| 181 | 170 | } |
| 182 | 171 | |
| 183 | - public function getHasDefaultValue() |
|
| 184 | - { |
|
| 172 | + public function getHasDefaultValue() { |
|
| 185 | 173 | return $this->hasDefaultValue; |
| 186 | 174 | } |
| 187 | 175 | |
| 188 | - public function getValidation() |
|
| 189 | - { |
|
| 176 | + public function getValidation() { |
|
| 190 | 177 | return $this->validation; |
| 191 | 178 | } |
| 192 | 179 | |
| 193 | - public function setValidation($validation) |
|
| 194 | - { |
|
| 180 | + public function setValidation($validation) { |
|
| 195 | 181 | $this->validation = $validation; |
| 196 | 182 | } |
| 197 | 183 | |
@@ -200,8 +186,7 @@ discard block |
||
| 200 | 186 | * |
| 201 | 187 | * @return string |
| 202 | 188 | */ |
| 203 | - public function getDataType() |
|
| 204 | - { |
|
| 189 | + public function getDataType() { |
|
| 205 | 190 | return $this->dataType; |
| 206 | 191 | } |
| 207 | 192 | |
@@ -211,8 +196,7 @@ discard block |
||
| 211 | 196 | * @param string $dataType |
| 212 | 197 | * @return void |
| 213 | 198 | */ |
| 214 | - public function setDataType($dataType) |
|
| 215 | - { |
|
| 199 | + public function setDataType($dataType) { |
|
| 216 | 200 | $this->dataType = $dataType; |
| 217 | 201 | } |
| 218 | 202 | |
@@ -274,8 +258,7 @@ discard block |
||
| 274 | 258 | /** |
| 275 | 259 | * @return mixed |
| 276 | 260 | */ |
| 277 | - public function getDepositLicense() |
|
| 278 | - { |
|
| 261 | + public function getDepositLicense() { |
|
| 279 | 262 | return $this->depositLicense; |
| 280 | 263 | } |
| 281 | 264 | |
@@ -29,11 +29,11 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | protected $defaultInputOption; |
| 31 | 31 | |
| 32 | - protected $hasDefaultValue = false; |
|
| 32 | + protected $hasDefaultValue = FALSE; |
|
| 33 | 33 | |
| 34 | 34 | protected $validation; |
| 35 | 35 | |
| 36 | - protected $depositLicense = null; |
|
| 36 | + protected $depositLicense = NULL; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @var string |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | * |
| 123 | 123 | * @param \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList |
| 124 | 124 | */ |
| 125 | - public function setInputOptions(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList = null) |
|
| 125 | + public function setInputOptions(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList = NULL) |
|
| 126 | 126 | { |
| 127 | 127 | |
| 128 | 128 | $this->inputOptions = array(); |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | - * @return string |
|
| 21 | + * @return string |
|
| 22 | 22 | */ |
| 23 | 23 | public function render() |
| 24 | 24 | { |
@@ -14,14 +14,12 @@ |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class GetTypo3ModeViewHelper extends \TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper |
|
| 18 | -{ |
|
| 17 | +class GetTypo3ModeViewHelper extends \TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper { |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * @return string |
| 22 | 21 | */ |
| 23 | - public function render() |
|
| 24 | - { |
|
| 22 | + public function render() { |
|
| 25 | 23 | return TYPO3_MODE; |
| 26 | 24 | } |
| 27 | 25 | |
@@ -18,8 +18,7 @@ discard block |
||
| 18 | 18 | use EWW\Dpf\Domain\Repository\DocumentTransferLogRepository; |
| 19 | 19 | use EWW\Dpf\Domain\Model\DocumentTransferLog; |
| 20 | 20 | |
| 21 | -class TransferLogger |
|
| 22 | -{ |
|
| 21 | +class TransferLogger { |
|
| 23 | 22 | |
| 24 | 23 | /** |
| 25 | 24 | * Logs the response of a document repository transfer |
@@ -27,8 +26,7 @@ discard block |
||
| 27 | 26 | * @param |
| 28 | 27 | * @return void |
| 29 | 28 | */ |
| 30 | - public static function log($action, $documentUid, $objectIdentifier, $response) |
|
| 31 | - { |
|
| 29 | + public static function log($action, $documentUid, $objectIdentifier, $response) { |
|
| 32 | 30 | |
| 33 | 31 | $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class); |
| 34 | 32 | $documentTransferLogRepository = $objectManager->get(DocumentTransferLogRepository::class); |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $documentTransferLogRepository = $objectManager->get(DocumentTransferLogRepository::class); |
| 35 | 35 | |
| 36 | 36 | $documentTransferLog = $objectManager->get(DocumentTransferLog::class); |
| 37 | - $documentTransferLog->setResponse(print_r($response, true)); |
|
| 37 | + $documentTransferLog->setResponse(print_r($response, TRUE)); |
|
| 38 | 38 | $documentTransferLog->setAction($action); |
| 39 | 39 | $documentTransferLog->setDocumentUid($documentUid); |
| 40 | 40 | $documentTransferLog->setObjectIdentifier($objectIdentifier); |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $json = json_decode($content); |
| 39 | 39 | |
| 40 | 40 | |
| 41 | - $listArray = array(); |
|
| 41 | + $listArray = array (); |
|
| 42 | 42 | $i = 0; |
| 43 | 43 | foreach ($json as $value) { |
| 44 | 44 | $listArray[$i]['value'] = $value->label; |
@@ -20,8 +20,7 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * GndController |
| 22 | 22 | */ |
| 23 | -class GndController extends \EWW\Dpf\Controller\AbstractController |
|
| 24 | -{ |
|
| 23 | +class GndController extends \EWW\Dpf\Controller\AbstractController { |
|
| 25 | 24 | protected $gndHost = 'http://lobid.org/gnd/'; |
| 26 | 25 | |
| 27 | 26 | protected $searchUrl = 'search?format=json:suggest&filter=type:SubjectHeading&size=100&q='; |