@@ -17,7 +17,6 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * The repository for InputOptionLists |
| 19 | 19 | */ |
| 20 | -class InputOptionListRepository extends \TYPO3\CMS\Extbase\Persistence\Repository |
|
| 21 | -{ |
|
| 20 | +class InputOptionListRepository extends \TYPO3\CMS\Extbase\Persistence\Repository { |
|
| 22 | 21 | |
| 23 | 22 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function findAllByPid($pid) |
| 29 | 29 | { |
| 30 | 30 | $query = $this->createQuery(); |
| 31 | - $query->getQuerySettings()->setRespectStoragePage(false); |
|
| 31 | + $query->getQuerySettings()->setRespectStoragePage(FALSE); |
|
| 32 | 32 | $query->matching($query->equals('pid', $pid)); |
| 33 | 33 | return $query->execute(); |
| 34 | 34 | } |
@@ -17,16 +17,14 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * The repository for Clients |
| 19 | 19 | */ |
| 20 | -class ClientRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository |
|
| 21 | -{ |
|
| 20 | +class ClientRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository { |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * findAllByPid |
| 25 | 24 | * |
| 26 | 25 | * @return |
| 27 | 26 | */ |
| 28 | - public function findAllByPid($pid) |
|
| 29 | - { |
|
| 27 | + public function findAllByPid($pid) { |
|
| 30 | 28 | $query = $this->createQuery(); |
| 31 | 29 | $query->getQuerySettings()->setRespectStoragePage(false); |
| 32 | 30 | $query->matching($query->equals('pid', $pid)); |
@@ -33,12 +33,12 @@ discard block |
||
| 33 | 33 | * @var string ownerId |
| 34 | 34 | * @return array The found ProcessNumber Object |
| 35 | 35 | */ |
| 36 | - public function getHighestProcessNumberByOwnerIdAndYear($ownerId,$year) |
|
| 36 | + public function getHighestProcessNumberByOwnerIdAndYear($ownerId, $year) |
|
| 37 | 37 | { |
| 38 | 38 | |
| 39 | 39 | $query = $this->createQuery(); |
| 40 | 40 | |
| 41 | - $constraints = array(); |
|
| 41 | + $constraints = array (); |
|
| 42 | 42 | $constraints[] = $query->equals('owner_id', $ownerId, false); |
| 43 | 43 | |
| 44 | 44 | $constraints[] = $query->equals('year', $year); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $query->matching($query->logicalAnd($constraints)); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - $query->setOrderings(array("counter" => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING)); |
|
| 50 | + $query->setOrderings(array ("counter" => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING)); |
|
| 51 | 51 | |
| 52 | 52 | $result = $query->execute(); |
| 53 | 53 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $query = $this->createQuery(); |
| 40 | 40 | |
| 41 | 41 | $constraints = array(); |
| 42 | - $constraints[] = $query->equals('owner_id', $ownerId, false); |
|
| 42 | + $constraints[] = $query->equals('owner_id', $ownerId, FALSE); |
|
| 43 | 43 | |
| 44 | 44 | $constraints[] = $query->equals('year', $year); |
| 45 | 45 | |
@@ -22,8 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * The repository for ProcessNumbers |
| 24 | 24 | */ |
| 25 | -class ProcessNumberRepository extends \TYPO3\CMS\Extbase\Persistence\Repository |
|
| 26 | -{ |
|
| 25 | +class ProcessNumberRepository extends \TYPO3\CMS\Extbase\Persistence\Repository { |
|
| 27 | 26 | |
| 28 | 27 | public function initializeObject() { |
| 29 | 28 | $querySettings = $this->objectManager->get(Typo3QuerySettings::class); |
@@ -38,8 +37,7 @@ discard block |
||
| 38 | 37 | * @var string ownerId |
| 39 | 38 | * @return array The found ProcessNumber Object |
| 40 | 39 | */ |
| 41 | - public function getHighestProcessNumberByOwnerIdAndYear($ownerId,$year) |
|
| 42 | - { |
|
| 40 | + public function getHighestProcessNumberByOwnerIdAndYear($ownerId,$year) { |
|
| 43 | 41 | |
| 44 | 42 | $query = $this->createQuery(); |
| 45 | 43 | |
@@ -68,8 +66,7 @@ discard block |
||
| 68 | 66 | * |
| 69 | 67 | * @return Connection |
| 70 | 68 | */ |
| 71 | - protected function getConnection() |
|
| 72 | - { |
|
| 69 | + protected function getConnection() { |
|
| 73 | 70 | return GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable( |
| 74 | 71 | "tx_dpf_domain_model_processnumber" |
| 75 | 72 | ); |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | * |
| 88 | 88 | * @var boolean |
| 89 | 89 | */ |
| 90 | - protected $valid = false; |
|
| 90 | + protected $valid = FALSE; |
|
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * |
@@ -219,7 +219,7 @@ |
||
| 219 | 219 | |
| 220 | 220 | public function getFileNames() |
| 221 | 221 | { |
| 222 | - $fileNames = array(); |
|
| 222 | + $fileNames = array (); |
|
| 223 | 223 | foreach ($this->getFiles() as $file) { |
| 224 | 224 | $fileNames[] = $file->getTitle(); |
| 225 | 225 | } |
@@ -19,8 +19,7 @@ discard block |
||
| 19 | 19 | * The TYPO3 project - inspiring people to share! |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -class DocumentForm extends AbstractFormElement |
|
| 23 | -{ |
|
| 22 | +class DocumentForm extends AbstractFormElement { |
|
| 24 | 23 | |
| 25 | 24 | /** |
| 26 | 25 | * @var string CSRF token for this form |
@@ -84,8 +83,7 @@ discard block |
||
| 84 | 83 | * |
| 85 | 84 | * @param string $csrfToken |
| 86 | 85 | */ |
| 87 | - public function generateCsrfToken() |
|
| 88 | - { |
|
| 86 | + public function generateCsrfToken() { |
|
| 89 | 87 | $formProtection = FormProtectionFactory::get(); |
| 90 | 88 | $this->csrfToken = $formProtection->generateToken('DocumentForm', 'construct', 'DocumentForm'); |
| 91 | 89 | $formProtection->persistSessionToken(); |
@@ -100,10 +98,8 @@ discard block |
||
| 100 | 98 | * @throws Exception if the given string is empty. |
| 101 | 99 | * @throws TypeError if the given string is null |
| 102 | 100 | */ |
| 103 | - public function setCsrfToken(string $csrfToken) |
|
| 104 | - { |
|
| 105 | - if ($csrfToken === "") |
|
| 106 | - { |
|
| 101 | + public function setCsrfToken(string $csrfToken) { |
|
| 102 | + if ($csrfToken === "") { |
|
| 107 | 103 | throw new Exception("A forms CSRF token cannot be empty"); |
| 108 | 104 | } |
| 109 | 105 | $this->csrfToken = $csrfToken; |
@@ -115,8 +111,7 @@ discard block |
||
| 115 | 111 | * |
| 116 | 112 | * @return string CSRF token for this form |
| 117 | 113 | */ |
| 118 | - public function getCsrfToken() |
|
| 119 | - { |
|
| 114 | + public function getCsrfToken() { |
|
| 120 | 115 | return $this->csrfToken; |
| 121 | 116 | } |
| 122 | 117 | |
@@ -126,8 +121,7 @@ discard block |
||
| 126 | 121 | * |
| 127 | 122 | * @return bool True, is CSRF token is considered valid. False if the token is invalid or missing. |
| 128 | 123 | */ |
| 129 | - public function hasValidCsrfToken() |
|
| 130 | - { |
|
| 124 | + public function hasValidCsrfToken() { |
|
| 131 | 125 | $formProtection = FormProtectionFactory::get(); |
| 132 | 126 | return $formProtection->validateToken($this->csrfToken, 'DocumentForm', 'construct', 'DocumentForm'); |
| 133 | 127 | } |
@@ -136,8 +130,7 @@ discard block |
||
| 136 | 130 | * |
| 137 | 131 | * @return integer |
| 138 | 132 | */ |
| 139 | - public function getDocumentUid() |
|
| 140 | - { |
|
| 133 | + public function getDocumentUid() { |
|
| 141 | 134 | return $this->documentUid; |
| 142 | 135 | } |
| 143 | 136 | |
@@ -145,8 +138,7 @@ discard block |
||
| 145 | 138 | * |
| 146 | 139 | * @param integer $documentUid |
| 147 | 140 | */ |
| 148 | - public function setDocumentUid($documentUid) |
|
| 149 | - { |
|
| 141 | + public function setDocumentUid($documentUid) { |
|
| 150 | 142 | $this->documentUid = $documentUid; |
| 151 | 143 | } |
| 152 | 144 | |
@@ -154,8 +146,7 @@ discard block |
||
| 154 | 146 | * |
| 155 | 147 | * @return boolean |
| 156 | 148 | */ |
| 157 | - public function getPrimaryFileMandatory() |
|
| 158 | - { |
|
| 149 | + public function getPrimaryFileMandatory() { |
|
| 159 | 150 | return $this->primaryFileMandatory; |
| 160 | 151 | } |
| 161 | 152 | |
@@ -163,8 +154,7 @@ discard block |
||
| 163 | 154 | * |
| 164 | 155 | * @param boolean $primaryFileMandatory |
| 165 | 156 | */ |
| 166 | - public function setPrimaryFileMandatory($primaryFileMandatory) |
|
| 167 | - { |
|
| 157 | + public function setPrimaryFileMandatory($primaryFileMandatory) { |
|
| 168 | 158 | $this->primaryFileMandatory = boolval($primaryFileMandatory); |
| 169 | 159 | } |
| 170 | 160 | |
@@ -172,8 +162,7 @@ discard block |
||
| 172 | 162 | * |
| 173 | 163 | * @return string |
| 174 | 164 | */ |
| 175 | - public function getFedoraPid() |
|
| 176 | - { |
|
| 165 | + public function getFedoraPid() { |
|
| 177 | 166 | return $this->fedoraPid; |
| 178 | 167 | } |
| 179 | 168 | |
@@ -181,52 +170,44 @@ discard block |
||
| 181 | 170 | * |
| 182 | 171 | * @param string $fedoraPid |
| 183 | 172 | */ |
| 184 | - public function setFedoraPid($fedoraPid) |
|
| 185 | - { |
|
| 173 | + public function setFedoraPid($fedoraPid) { |
|
| 186 | 174 | $this->fedoraPid = $fedoraPid; |
| 187 | 175 | } |
| 188 | 176 | |
| 189 | - public function getFiles() |
|
| 190 | - { |
|
| 177 | + public function getFiles() { |
|
| 191 | 178 | return $this->files; |
| 192 | 179 | } |
| 193 | 180 | |
| 194 | 181 | /** |
| 195 | 182 | * @return bool |
| 196 | 183 | */ |
| 197 | - public function hasFiles() |
|
| 198 | - { |
|
| 184 | + public function hasFiles() { |
|
| 199 | 185 | return is_array($this->files) && !empty($this->files); |
| 200 | 186 | } |
| 201 | 187 | |
| 202 | - public function setFiles($files) |
|
| 203 | - { |
|
| 188 | + public function setFiles($files) { |
|
| 204 | 189 | $this->files = $files; |
| 205 | 190 | } |
| 206 | 191 | |
| 207 | - public function addFile($file) |
|
| 208 | - { |
|
| 192 | + public function addFile($file) { |
|
| 209 | 193 | $this->files[] = $file; |
| 210 | 194 | } |
| 211 | 195 | |
| 212 | 196 | /** |
| 213 | 197 | * @return bool |
| 214 | 198 | */ |
| 215 | - public function getValid() |
|
| 216 | - { |
|
| 199 | + public function getValid() { |
|
| 217 | 200 | return $this->valid; |
| 218 | 201 | } |
| 219 | 202 | |
| 220 | 203 | /** |
| 221 | 204 | * @param bool $valid |
| 222 | 205 | */ |
| 223 | - public function setValid($valid) |
|
| 224 | - { |
|
| 206 | + public function setValid($valid) { |
|
| 225 | 207 | $this->valid = boolval($valid); |
| 226 | 208 | } |
| 227 | 209 | |
| 228 | - public function getFileNames() |
|
| 229 | - { |
|
| 210 | + public function getFileNames() { |
|
| 230 | 211 | $fileNames = array(); |
| 231 | 212 | foreach ($this->getFiles() as $file) { |
| 232 | 213 | $fileNames[] = $file->getTitle(); |
@@ -239,8 +220,7 @@ discard block |
||
| 239 | 220 | * |
| 240 | 221 | * @return string |
| 241 | 222 | */ |
| 242 | - public function getProcessNumber() |
|
| 243 | - { |
|
| 223 | + public function getProcessNumber() { |
|
| 244 | 224 | return $this->processNumber; |
| 245 | 225 | } |
| 246 | 226 | |
@@ -249,8 +229,7 @@ discard block |
||
| 249 | 229 | * |
| 250 | 230 | * @param string $processNumber |
| 251 | 231 | */ |
| 252 | - public function setProcessNumber($processNumber) |
|
| 253 | - { |
|
| 232 | + public function setProcessNumber($processNumber) { |
|
| 254 | 233 | $this->processNumber = $processNumber; |
| 255 | 234 | } |
| 256 | 235 | |
@@ -259,8 +238,7 @@ discard block |
||
| 259 | 238 | * |
| 260 | 239 | * @return bool |
| 261 | 240 | */ |
| 262 | - public function isTemporary() |
|
| 263 | - { |
|
| 241 | + public function isTemporary() { |
|
| 264 | 242 | return $this->temporary; |
| 265 | 243 | } |
| 266 | 244 | |
@@ -268,24 +246,21 @@ discard block |
||
| 268 | 246 | * Sets if a document is a temporary document or not. |
| 269 | 247 | * @param bool $temporary |
| 270 | 248 | */ |
| 271 | - public function setTemporary($temporary) |
|
| 272 | - { |
|
| 249 | + public function setTemporary($temporary) { |
|
| 273 | 250 | $this->temporary = boolval($temporary); |
| 274 | 251 | } |
| 275 | 252 | |
| 276 | 253 | /** |
| 277 | 254 | * @return string |
| 278 | 255 | */ |
| 279 | - public function getComment() |
|
| 280 | - { |
|
| 256 | + public function getComment() { |
|
| 281 | 257 | return $this->comment; |
| 282 | 258 | } |
| 283 | 259 | |
| 284 | 260 | /** |
| 285 | 261 | * @param string $comment |
| 286 | 262 | */ |
| 287 | - public function setComment($comment) |
|
| 288 | - { |
|
| 263 | + public function setComment($comment) { |
|
| 289 | 264 | $this->comment = $comment; |
| 290 | 265 | } |
| 291 | 266 | } |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class DocumentFormPage extends AbstractFormElement |
|
| 18 | -{ |
|
| 17 | +class DocumentFormPage extends AbstractFormElement { |
|
| 19 | 18 | |
| 20 | 19 | } |
@@ -14,8 +14,7 @@ discard block |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class SysLanguage extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
|
| 18 | -{ |
|
| 17 | +class SysLanguage extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity { |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * uid |
@@ -57,8 +56,7 @@ discard block |
||
| 57 | 56 | * |
| 58 | 57 | * @return string $uid |
| 59 | 58 | */ |
| 60 | - public function getUid() |
|
| 61 | - { |
|
| 59 | + public function getUid() { |
|
| 62 | 60 | return $this->uid; |
| 63 | 61 | } |
| 64 | 62 | |
@@ -67,8 +65,7 @@ discard block |
||
| 67 | 65 | * |
| 68 | 66 | * @param string $uid |
| 69 | 67 | */ |
| 70 | - public function setUid($uid) |
|
| 71 | - { |
|
| 68 | + public function setUid($uid) { |
|
| 72 | 69 | $this->uid = $uid; |
| 73 | 70 | } |
| 74 | 71 | |
@@ -77,8 +74,7 @@ discard block |
||
| 77 | 74 | * |
| 78 | 75 | * @return string $pid |
| 79 | 76 | */ |
| 80 | - public function getPid() |
|
| 81 | - { |
|
| 77 | + public function getPid() { |
|
| 82 | 78 | return $this->pid; |
| 83 | 79 | } |
| 84 | 80 | |
@@ -87,8 +83,7 @@ discard block |
||
| 87 | 83 | * |
| 88 | 84 | * @param string $pid |
| 89 | 85 | */ |
| 90 | - public function setPid($pid) |
|
| 91 | - { |
|
| 86 | + public function setPid($pid) { |
|
| 92 | 87 | $this->pid = $pid; |
| 93 | 88 | } |
| 94 | 89 | |
@@ -97,8 +92,7 @@ discard block |
||
| 97 | 92 | * |
| 98 | 93 | * @return string $title |
| 99 | 94 | */ |
| 100 | - public function getTitle() |
|
| 101 | - { |
|
| 95 | + public function getTitle() { |
|
| 102 | 96 | return $this->title; |
| 103 | 97 | } |
| 104 | 98 | |
@@ -107,8 +101,7 @@ discard block |
||
| 107 | 101 | * |
| 108 | 102 | * @param string $title |
| 109 | 103 | */ |
| 110 | - public function setTitle($title) |
|
| 111 | - { |
|
| 104 | + public function setTitle($title) { |
|
| 112 | 105 | $this->title = $title; |
| 113 | 106 | } |
| 114 | 107 | |
@@ -117,8 +110,7 @@ discard block |
||
| 117 | 110 | * |
| 118 | 111 | * @return string $flag |
| 119 | 112 | */ |
| 120 | - public function getFlag() |
|
| 121 | - { |
|
| 113 | + public function getFlag() { |
|
| 122 | 114 | return $this->flag; |
| 123 | 115 | } |
| 124 | 116 | |
@@ -127,8 +119,7 @@ discard block |
||
| 127 | 119 | * |
| 128 | 120 | * @param string $flag |
| 129 | 121 | */ |
| 130 | - public function setFlag($flag) |
|
| 131 | - { |
|
| 122 | + public function setFlag($flag) { |
|
| 132 | 123 | $this->flag = $flag; |
| 133 | 124 | } |
| 134 | 125 | |
@@ -137,8 +128,7 @@ discard block |
||
| 137 | 128 | * |
| 138 | 129 | * @return string $langIsocode |
| 139 | 130 | */ |
| 140 | - public function getLangIsocode() |
|
| 141 | - { |
|
| 131 | + public function getLangIsocode() { |
|
| 142 | 132 | return $this->langIsocode; |
| 143 | 133 | } |
| 144 | 134 | |
@@ -147,8 +137,7 @@ discard block |
||
| 147 | 137 | * |
| 148 | 138 | * @param string $langIsocode |
| 149 | 139 | */ |
| 150 | - public function setLangIsocode($langIsocode) |
|
| 151 | - { |
|
| 140 | + public function setLangIsocode($langIsocode) { |
|
| 152 | 141 | $this->langIsocode = $langIsocode; |
| 153 | 142 | } |
| 154 | 143 | } |
@@ -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 | } |