| Total Complexity | 190 |
| Total Lines | 2177 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
Complex classes like ConfigData often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use ConfigData, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 34 | final class ConfigData implements JsonSerializable |
||
| 35 | { |
||
| 36 | /** |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | private $upgradeKey; |
||
| 40 | /** |
||
| 41 | * @var bool |
||
| 42 | */ |
||
| 43 | private $dokuwikiEnabled = false; |
||
| 44 | /** |
||
| 45 | * @var string |
||
| 46 | */ |
||
| 47 | private $dokuwikiUrl; |
||
| 48 | /** |
||
| 49 | * @var string |
||
| 50 | */ |
||
| 51 | private $dokuwikiUrlBase; |
||
| 52 | /** |
||
| 53 | * @var string |
||
| 54 | */ |
||
| 55 | private $dokuwikiUser; |
||
| 56 | /** |
||
| 57 | * @var string |
||
| 58 | */ |
||
| 59 | private $dokuwikiPass; |
||
| 60 | /** |
||
| 61 | * @var string |
||
| 62 | */ |
||
| 63 | private $dokuwikiNamespace; |
||
| 64 | /** |
||
| 65 | * @var int |
||
| 66 | */ |
||
| 67 | private $ldapDefaultGroup; |
||
| 68 | /** |
||
| 69 | * @var int |
||
| 70 | */ |
||
| 71 | private $ldapDefaultProfile; |
||
| 72 | /** |
||
| 73 | * @var bool |
||
| 74 | */ |
||
| 75 | private $proxyEnabled = false; |
||
| 76 | /** |
||
| 77 | * @var string |
||
| 78 | */ |
||
| 79 | private $proxyServer; |
||
| 80 | /** |
||
| 81 | * @var int |
||
| 82 | */ |
||
| 83 | private $proxyPort = 8080; |
||
| 84 | /** |
||
| 85 | * @var string |
||
| 86 | */ |
||
| 87 | private $proxyUser; |
||
| 88 | /** |
||
| 89 | * @var string |
||
| 90 | */ |
||
| 91 | private $proxyPass; |
||
| 92 | /** |
||
| 93 | * @var int |
||
| 94 | */ |
||
| 95 | private $publinksMaxViews = 3; |
||
| 96 | /** |
||
| 97 | * @var int |
||
| 98 | */ |
||
| 99 | private $publinksMaxTime = 600; |
||
| 100 | /** |
||
| 101 | * @var bool |
||
| 102 | */ |
||
| 103 | private $publinksEnabled = false; |
||
| 104 | /** |
||
| 105 | * @var int |
||
| 106 | */ |
||
| 107 | private $accountCount = 12; |
||
| 108 | /** |
||
| 109 | * @var bool |
||
| 110 | */ |
||
| 111 | private $accountLink = true; |
||
| 112 | /** |
||
| 113 | * @var bool |
||
| 114 | */ |
||
| 115 | private $checkUpdates = false; |
||
| 116 | /** |
||
| 117 | * @var bool |
||
| 118 | */ |
||
| 119 | private $checknotices = false; |
||
| 120 | /** |
||
| 121 | * @var string |
||
| 122 | */ |
||
| 123 | private $configHash; |
||
| 124 | /** |
||
| 125 | * @var string |
||
| 126 | */ |
||
| 127 | private $dbHost; |
||
| 128 | /** |
||
| 129 | * @var string |
||
| 130 | */ |
||
| 131 | private $dbSocket; |
||
| 132 | /** |
||
| 133 | * @var string |
||
| 134 | */ |
||
| 135 | private $dbName; |
||
| 136 | /** |
||
| 137 | * @var string |
||
| 138 | */ |
||
| 139 | private $dbPass; |
||
| 140 | /** |
||
| 141 | * @var string |
||
| 142 | */ |
||
| 143 | private $dbUser; |
||
| 144 | /** |
||
| 145 | * @var int |
||
| 146 | */ |
||
| 147 | private $dbPort = 3306; |
||
| 148 | /** |
||
| 149 | * @var bool |
||
| 150 | */ |
||
| 151 | private $debug = false; |
||
| 152 | /** |
||
| 153 | * @var bool |
||
| 154 | */ |
||
| 155 | private $demoEnabled = false; |
||
| 156 | /** |
||
| 157 | * @var array |
||
| 158 | */ |
||
| 159 | private $filesAllowedExts = []; |
||
| 160 | /** |
||
| 161 | * @var array |
||
| 162 | */ |
||
| 163 | private $filesAllowedMime = []; |
||
| 164 | /** |
||
| 165 | * @var int |
||
| 166 | */ |
||
| 167 | private $filesAllowedSize = 1024; |
||
| 168 | /** |
||
| 169 | * @var bool |
||
| 170 | */ |
||
| 171 | private $filesEnabled = true; |
||
| 172 | /** |
||
| 173 | * @var bool |
||
| 174 | */ |
||
| 175 | private $globalSearch = true; |
||
| 176 | /** |
||
| 177 | * @var bool |
||
| 178 | */ |
||
| 179 | private $installed = false; |
||
| 180 | /** |
||
| 181 | * @var string |
||
| 182 | */ |
||
| 183 | private $ldapBase; |
||
| 184 | /** |
||
| 185 | * @var string |
||
| 186 | */ |
||
| 187 | private $ldapBindUser; |
||
| 188 | /** |
||
| 189 | * @var string |
||
| 190 | */ |
||
| 191 | private $ldapBindPass; |
||
| 192 | /** |
||
| 193 | * @var string |
||
| 194 | */ |
||
| 195 | private $ldapProxyUser; |
||
| 196 | /** |
||
| 197 | * @var bool |
||
| 198 | */ |
||
| 199 | private $ldapEnabled = false; |
||
| 200 | /** |
||
| 201 | * @var bool |
||
| 202 | */ |
||
| 203 | private $ldapAds = false; |
||
| 204 | /** |
||
| 205 | * @var int |
||
| 206 | */ |
||
| 207 | private $ldapType; |
||
| 208 | /** |
||
| 209 | * @var string |
||
| 210 | */ |
||
| 211 | private $ldapGroup; |
||
| 212 | /** |
||
| 213 | * @var string |
||
| 214 | */ |
||
| 215 | private $ldapServer; |
||
| 216 | /** |
||
| 217 | * @var bool |
||
| 218 | */ |
||
| 219 | private $logEnabled = true; |
||
| 220 | /** |
||
| 221 | * @var array |
||
| 222 | */ |
||
| 223 | private $logEvents = []; |
||
| 224 | /** |
||
| 225 | * @var bool |
||
| 226 | */ |
||
| 227 | private $mailAuthenabled = false; |
||
| 228 | /** |
||
| 229 | * @var bool |
||
| 230 | */ |
||
| 231 | private $mailEnabled = false; |
||
| 232 | /** |
||
| 233 | * @var string |
||
| 234 | */ |
||
| 235 | private $mailFrom; |
||
| 236 | /** |
||
| 237 | * @var string |
||
| 238 | */ |
||
| 239 | private $mailPass; |
||
| 240 | /** |
||
| 241 | * @var int |
||
| 242 | */ |
||
| 243 | private $mailPort = 25; |
||
| 244 | /** |
||
| 245 | * @var bool |
||
| 246 | */ |
||
| 247 | private $mailRequestsEnabled = false; |
||
| 248 | /** |
||
| 249 | * @var string |
||
| 250 | */ |
||
| 251 | private $mailSecurity; |
||
| 252 | /** |
||
| 253 | * @var string |
||
| 254 | */ |
||
| 255 | private $mailServer; |
||
| 256 | /** |
||
| 257 | * @var string |
||
| 258 | */ |
||
| 259 | private $mailUser; |
||
| 260 | /** |
||
| 261 | * @var array |
||
| 262 | */ |
||
| 263 | private $mailRecipients = []; |
||
| 264 | /** |
||
| 265 | * @var array |
||
| 266 | */ |
||
| 267 | private $mailEvents = []; |
||
| 268 | /** |
||
| 269 | * @var bool |
||
| 270 | */ |
||
| 271 | private $maintenance = false; |
||
| 272 | /** |
||
| 273 | * @var string |
||
| 274 | */ |
||
| 275 | private $passwordSalt; |
||
| 276 | /** |
||
| 277 | * @var bool |
||
| 278 | */ |
||
| 279 | private $resultsAsCards = false; |
||
| 280 | /** |
||
| 281 | * @var int |
||
| 282 | */ |
||
| 283 | private $sessionTimeout = 300; |
||
| 284 | /** |
||
| 285 | * @var string |
||
| 286 | */ |
||
| 287 | private $siteLang; |
||
| 288 | /** |
||
| 289 | * @var string |
||
| 290 | */ |
||
| 291 | private $siteTheme = 'material-blue'; |
||
| 292 | /** |
||
| 293 | * @var string |
||
| 294 | */ |
||
| 295 | private $configVersion; |
||
| 296 | /** |
||
| 297 | * @var string |
||
| 298 | */ |
||
| 299 | private $appVersion; |
||
| 300 | /** |
||
| 301 | * @var string |
||
| 302 | */ |
||
| 303 | private $databaseVersion; |
||
| 304 | /** |
||
| 305 | * @var bool |
||
| 306 | */ |
||
| 307 | private $wikiEnabled = false; |
||
| 308 | /** |
||
| 309 | * @var array |
||
| 310 | */ |
||
| 311 | private $wikiFilter = []; |
||
| 312 | /** |
||
| 313 | * @var string |
||
| 314 | */ |
||
| 315 | private $wikiPageurl; |
||
| 316 | /** |
||
| 317 | * @var string |
||
| 318 | */ |
||
| 319 | private $wikiSearchurl; |
||
| 320 | /** |
||
| 321 | * @var int |
||
| 322 | */ |
||
| 323 | private $configDate = 0; |
||
| 324 | /** |
||
| 325 | * @var bool |
||
| 326 | */ |
||
| 327 | private $publinksImageEnabled = false; |
||
| 328 | /** |
||
| 329 | * @var string |
||
| 330 | */ |
||
| 331 | private $backup_hash; |
||
| 332 | /** |
||
| 333 | * @var string |
||
| 334 | */ |
||
| 335 | private $export_hash; |
||
| 336 | /** |
||
| 337 | * @var bool |
||
| 338 | */ |
||
| 339 | private $httpsEnabled = false; |
||
| 340 | /** |
||
| 341 | * @var bool |
||
| 342 | */ |
||
| 343 | private $syslogEnabled = false; |
||
| 344 | /** |
||
| 345 | * @var bool |
||
| 346 | */ |
||
| 347 | private $syslogRemoteEnabled = false; |
||
| 348 | /** |
||
| 349 | * @var string |
||
| 350 | */ |
||
| 351 | private $syslogServer; |
||
| 352 | /** |
||
| 353 | * @var int |
||
| 354 | */ |
||
| 355 | private $syslogPort = 514; |
||
| 356 | /** |
||
| 357 | * @var bool |
||
| 358 | */ |
||
| 359 | private $accountPassToImage = false; |
||
| 360 | /** |
||
| 361 | * @var string |
||
| 362 | */ |
||
| 363 | private $configSaver; |
||
| 364 | /** |
||
| 365 | * @var bool |
||
| 366 | */ |
||
| 367 | private $encryptSession = false; |
||
| 368 | /** |
||
| 369 | * @var bool |
||
| 370 | */ |
||
| 371 | private $accountFullGroupAccess = false; |
||
| 372 | /** |
||
| 373 | * @var bool |
||
| 374 | */ |
||
| 375 | private $authBasicEnabled = true; |
||
| 376 | /** |
||
| 377 | * @var bool |
||
| 378 | */ |
||
| 379 | private $authBasicAutoLoginEnabled = true; |
||
| 380 | /** |
||
| 381 | * @var string |
||
| 382 | */ |
||
| 383 | private $authBasicDomain; |
||
| 384 | /** |
||
| 385 | * @var int |
||
| 386 | */ |
||
| 387 | private $ssoDefaultGroup; |
||
| 388 | /** |
||
| 389 | * @var int |
||
| 390 | */ |
||
| 391 | private $ssoDefaultProfile; |
||
| 392 | /** |
||
| 393 | * @var bool |
||
| 394 | */ |
||
| 395 | private $accountExpireEnabled = false; |
||
| 396 | /** |
||
| 397 | * @var int |
||
| 398 | */ |
||
| 399 | private $accountExpireTime = 10368000; |
||
| 400 | /** |
||
| 401 | * @var bool |
||
| 402 | */ |
||
| 403 | private $ldapTlsEnabled = false; |
||
| 404 | /** |
||
| 405 | * @var string |
||
| 406 | */ |
||
| 407 | private $applicationUrl; |
||
| 408 | |||
| 409 | /** |
||
| 410 | * @return array |
||
| 411 | */ |
||
| 412 | public function getLogEvents() |
||
| 413 | { |
||
| 414 | return is_array($this->logEvents) ? $this->logEvents : []; |
||
|
|
|||
| 415 | } |
||
| 416 | |||
| 417 | /** |
||
| 418 | * @param array $logEvents |
||
| 419 | */ |
||
| 420 | public function setLogEvents(array $logEvents) |
||
| 421 | { |
||
| 422 | $this->logEvents = $logEvents; |
||
| 423 | } |
||
| 424 | |||
| 425 | /** |
||
| 426 | * @return boolean |
||
| 427 | */ |
||
| 428 | public function isDokuwikiEnabled() |
||
| 429 | { |
||
| 430 | return $this->dokuwikiEnabled; |
||
| 431 | } |
||
| 432 | |||
| 433 | /** |
||
| 434 | * @param boolean $dokuwikiEnabled |
||
| 435 | * |
||
| 436 | * @return $this |
||
| 437 | */ |
||
| 438 | public function setDokuwikiEnabled($dokuwikiEnabled) |
||
| 439 | { |
||
| 440 | $this->dokuwikiEnabled = (bool)$dokuwikiEnabled; |
||
| 441 | |||
| 442 | return $this; |
||
| 443 | } |
||
| 444 | |||
| 445 | /** |
||
| 446 | * @return string |
||
| 447 | */ |
||
| 448 | public function getDokuwikiUrl() |
||
| 449 | { |
||
| 450 | return $this->dokuwikiUrl; |
||
| 451 | } |
||
| 452 | |||
| 453 | /** |
||
| 454 | * @param string $dokuwikiUrl |
||
| 455 | * |
||
| 456 | * @return $this |
||
| 457 | */ |
||
| 458 | public function setDokuwikiUrl($dokuwikiUrl) |
||
| 459 | { |
||
| 460 | $this->dokuwikiUrl = $dokuwikiUrl; |
||
| 461 | |||
| 462 | return $this; |
||
| 463 | } |
||
| 464 | |||
| 465 | /** |
||
| 466 | * @return string |
||
| 467 | */ |
||
| 468 | public function getDokuwikiUrlBase() |
||
| 469 | { |
||
| 470 | return $this->dokuwikiUrlBase; |
||
| 471 | } |
||
| 472 | |||
| 473 | /** |
||
| 474 | * @param string $dokuwikiUrlBase |
||
| 475 | * |
||
| 476 | * @return $this |
||
| 477 | */ |
||
| 478 | public function setDokuwikiUrlBase($dokuwikiUrlBase) |
||
| 479 | { |
||
| 480 | $this->dokuwikiUrlBase = $dokuwikiUrlBase; |
||
| 481 | |||
| 482 | return $this; |
||
| 483 | } |
||
| 484 | |||
| 485 | /** |
||
| 486 | * @return string |
||
| 487 | */ |
||
| 488 | public function getDokuwikiUser() |
||
| 489 | { |
||
| 490 | return $this->dokuwikiUser; |
||
| 491 | } |
||
| 492 | |||
| 493 | /** |
||
| 494 | * @param string $dokuwikiUser |
||
| 495 | * |
||
| 496 | * @return $this |
||
| 497 | */ |
||
| 498 | public function setDokuwikiUser($dokuwikiUser) |
||
| 499 | { |
||
| 500 | $this->dokuwikiUser = $dokuwikiUser; |
||
| 501 | |||
| 502 | return $this; |
||
| 503 | } |
||
| 504 | |||
| 505 | /** |
||
| 506 | * @return string |
||
| 507 | */ |
||
| 508 | public function getDokuwikiPass() |
||
| 509 | { |
||
| 510 | return $this->dokuwikiPass; |
||
| 511 | } |
||
| 512 | |||
| 513 | /** |
||
| 514 | * @param string $dokuwikiPass |
||
| 515 | * |
||
| 516 | * @return $this |
||
| 517 | */ |
||
| 518 | public function setDokuwikiPass($dokuwikiPass) |
||
| 519 | { |
||
| 520 | $this->dokuwikiPass = $dokuwikiPass; |
||
| 521 | |||
| 522 | return $this; |
||
| 523 | } |
||
| 524 | |||
| 525 | /** |
||
| 526 | * @return string |
||
| 527 | */ |
||
| 528 | public function getDokuwikiNamespace() |
||
| 529 | { |
||
| 530 | return $this->dokuwikiNamespace; |
||
| 531 | } |
||
| 532 | |||
| 533 | /** |
||
| 534 | * @param string $dokuwikiNamespace |
||
| 535 | * |
||
| 536 | * @return $this |
||
| 537 | */ |
||
| 538 | public function setDokuwikiNamespace($dokuwikiNamespace) |
||
| 539 | { |
||
| 540 | $this->dokuwikiNamespace = $dokuwikiNamespace; |
||
| 541 | |||
| 542 | return $this; |
||
| 543 | } |
||
| 544 | |||
| 545 | /** |
||
| 546 | * @return int |
||
| 547 | */ |
||
| 548 | public function getLdapDefaultGroup() |
||
| 549 | { |
||
| 550 | return (int)$this->ldapDefaultGroup; |
||
| 551 | } |
||
| 552 | |||
| 553 | /** |
||
| 554 | * @param int $ldapDefaultGroup |
||
| 555 | * |
||
| 556 | * @return $this |
||
| 557 | */ |
||
| 558 | public function setLdapDefaultGroup($ldapDefaultGroup) |
||
| 559 | { |
||
| 560 | $this->ldapDefaultGroup = (int)$ldapDefaultGroup; |
||
| 561 | |||
| 562 | return $this; |
||
| 563 | } |
||
| 564 | |||
| 565 | /** |
||
| 566 | * @return int |
||
| 567 | */ |
||
| 568 | public function getLdapDefaultProfile() |
||
| 569 | { |
||
| 570 | return (int)$this->ldapDefaultProfile; |
||
| 571 | } |
||
| 572 | |||
| 573 | /** |
||
| 574 | * @param int $ldapDefaultProfile |
||
| 575 | * |
||
| 576 | * @return $this |
||
| 577 | */ |
||
| 578 | public function setLdapDefaultProfile($ldapDefaultProfile) |
||
| 579 | { |
||
| 580 | $this->ldapDefaultProfile = (int)$ldapDefaultProfile; |
||
| 581 | |||
| 582 | return $this; |
||
| 583 | } |
||
| 584 | |||
| 585 | /** |
||
| 586 | * @return boolean |
||
| 587 | */ |
||
| 588 | public function isProxyEnabled() |
||
| 589 | { |
||
| 590 | return $this->proxyEnabled; |
||
| 591 | } |
||
| 592 | |||
| 593 | /** |
||
| 594 | * @param boolean $proxyEnabled |
||
| 595 | * |
||
| 596 | * @return $this |
||
| 597 | */ |
||
| 598 | public function setProxyEnabled($proxyEnabled) |
||
| 599 | { |
||
| 600 | $this->proxyEnabled = (bool)$proxyEnabled; |
||
| 601 | |||
| 602 | return $this; |
||
| 603 | } |
||
| 604 | |||
| 605 | /** |
||
| 606 | * @return string |
||
| 607 | */ |
||
| 608 | public function getProxyServer() |
||
| 609 | { |
||
| 610 | return $this->proxyServer; |
||
| 611 | } |
||
| 612 | |||
| 613 | /** |
||
| 614 | * @param string $proxyServer |
||
| 615 | * |
||
| 616 | * @return $this |
||
| 617 | */ |
||
| 618 | public function setProxyServer($proxyServer) |
||
| 619 | { |
||
| 620 | $this->proxyServer = $proxyServer; |
||
| 621 | |||
| 622 | return $this; |
||
| 623 | } |
||
| 624 | |||
| 625 | /** |
||
| 626 | * @return int |
||
| 627 | */ |
||
| 628 | public function getProxyPort() |
||
| 629 | { |
||
| 630 | return $this->proxyPort; |
||
| 631 | } |
||
| 632 | |||
| 633 | /** |
||
| 634 | * @param int $proxyPort |
||
| 635 | * |
||
| 636 | * @return $this |
||
| 637 | */ |
||
| 638 | public function setProxyPort($proxyPort) |
||
| 639 | { |
||
| 640 | $this->proxyPort = (int)$proxyPort; |
||
| 641 | |||
| 642 | return $this; |
||
| 643 | } |
||
| 644 | |||
| 645 | /** |
||
| 646 | * @return string |
||
| 647 | */ |
||
| 648 | public function getProxyUser() |
||
| 649 | { |
||
| 650 | return $this->proxyUser; |
||
| 651 | } |
||
| 652 | |||
| 653 | /** |
||
| 654 | * @param string $proxyUser |
||
| 655 | * |
||
| 656 | * @return $this |
||
| 657 | */ |
||
| 658 | public function setProxyUser($proxyUser) |
||
| 659 | { |
||
| 660 | $this->proxyUser = $proxyUser; |
||
| 661 | |||
| 662 | return $this; |
||
| 663 | } |
||
| 664 | |||
| 665 | /** |
||
| 666 | * @return string |
||
| 667 | */ |
||
| 668 | public function getProxyPass() |
||
| 669 | { |
||
| 670 | return $this->proxyPass; |
||
| 671 | } |
||
| 672 | |||
| 673 | /** |
||
| 674 | * @param string $proxyPass |
||
| 675 | * |
||
| 676 | * @return $this |
||
| 677 | */ |
||
| 678 | public function setProxyPass($proxyPass) |
||
| 679 | { |
||
| 680 | $this->proxyPass = $proxyPass; |
||
| 681 | |||
| 682 | return $this; |
||
| 683 | } |
||
| 684 | |||
| 685 | /** |
||
| 686 | * @return int |
||
| 687 | */ |
||
| 688 | public function getPublinksMaxViews() |
||
| 689 | { |
||
| 690 | return $this->publinksMaxViews; |
||
| 691 | } |
||
| 692 | |||
| 693 | |||
| 694 | /** |
||
| 695 | * @param int $publinksMaxViews |
||
| 696 | * |
||
| 697 | * @return $this |
||
| 698 | */ |
||
| 699 | public function setPublinksMaxViews($publinksMaxViews) |
||
| 700 | { |
||
| 701 | $this->publinksMaxViews = (int)$publinksMaxViews; |
||
| 702 | |||
| 703 | return $this; |
||
| 704 | } |
||
| 705 | |||
| 706 | /** |
||
| 707 | * @return int |
||
| 708 | */ |
||
| 709 | public function getPublinksMaxTime() |
||
| 710 | { |
||
| 711 | return $this->publinksMaxTime; |
||
| 712 | } |
||
| 713 | |||
| 714 | /** |
||
| 715 | * @param int $publinksMaxTime |
||
| 716 | * |
||
| 717 | * @return $this |
||
| 718 | */ |
||
| 719 | public function setPublinksMaxTime($publinksMaxTime) |
||
| 720 | { |
||
| 721 | $this->publinksMaxTime = (int)$publinksMaxTime; |
||
| 722 | |||
| 723 | return $this; |
||
| 724 | } |
||
| 725 | |||
| 726 | /** |
||
| 727 | * @return boolean |
||
| 728 | */ |
||
| 729 | public function isSyslogEnabled() |
||
| 730 | { |
||
| 731 | return $this->syslogEnabled; |
||
| 732 | } |
||
| 733 | |||
| 734 | /** |
||
| 735 | * @param boolean $syslogEnabled |
||
| 736 | * |
||
| 737 | * @return $this |
||
| 738 | */ |
||
| 739 | public function setSyslogEnabled($syslogEnabled) |
||
| 740 | { |
||
| 741 | $this->syslogEnabled = (bool)$syslogEnabled; |
||
| 742 | |||
| 743 | return $this; |
||
| 744 | } |
||
| 745 | |||
| 746 | /** |
||
| 747 | * @return boolean |
||
| 748 | */ |
||
| 749 | public function isSyslogRemoteEnabled() |
||
| 750 | { |
||
| 751 | return $this->syslogRemoteEnabled; |
||
| 752 | } |
||
| 753 | |||
| 754 | /** |
||
| 755 | * @param boolean $syslogRemoteEnabled |
||
| 756 | * |
||
| 757 | * @return $this |
||
| 758 | */ |
||
| 759 | public function setSyslogRemoteEnabled($syslogRemoteEnabled) |
||
| 760 | { |
||
| 761 | $this->syslogRemoteEnabled = (bool)$syslogRemoteEnabled; |
||
| 762 | |||
| 763 | return $this; |
||
| 764 | } |
||
| 765 | |||
| 766 | /** |
||
| 767 | * @return string |
||
| 768 | */ |
||
| 769 | public function getSyslogServer() |
||
| 770 | { |
||
| 771 | return $this->syslogServer; |
||
| 772 | } |
||
| 773 | |||
| 774 | /** |
||
| 775 | * @param string $syslogServer |
||
| 776 | * |
||
| 777 | * @return $this |
||
| 778 | */ |
||
| 779 | public function setSyslogServer($syslogServer) |
||
| 780 | { |
||
| 781 | $this->syslogServer = $syslogServer; |
||
| 782 | |||
| 783 | return $this; |
||
| 784 | } |
||
| 785 | |||
| 786 | /** |
||
| 787 | * @return int |
||
| 788 | */ |
||
| 789 | public function getSyslogPort() |
||
| 790 | { |
||
| 791 | return $this->syslogPort; |
||
| 792 | } |
||
| 793 | |||
| 794 | /** |
||
| 795 | * @param int $syslogPort |
||
| 796 | * |
||
| 797 | * @return $this |
||
| 798 | */ |
||
| 799 | public function setSyslogPort($syslogPort) |
||
| 800 | { |
||
| 801 | $this->syslogPort = (int)$syslogPort; |
||
| 802 | |||
| 803 | return $this; |
||
| 804 | } |
||
| 805 | |||
| 806 | /** |
||
| 807 | * @return string |
||
| 808 | */ |
||
| 809 | public function getBackupHash() |
||
| 810 | { |
||
| 811 | return $this->backup_hash; |
||
| 812 | } |
||
| 813 | |||
| 814 | /** |
||
| 815 | * @param string $backup_hash |
||
| 816 | * |
||
| 817 | * @return $this |
||
| 818 | */ |
||
| 819 | public function setBackupHash($backup_hash) |
||
| 820 | { |
||
| 821 | $this->backup_hash = $backup_hash; |
||
| 822 | |||
| 823 | return $this; |
||
| 824 | } |
||
| 825 | |||
| 826 | /** |
||
| 827 | * @return string |
||
| 828 | */ |
||
| 829 | public function getExportHash() |
||
| 830 | { |
||
| 831 | return $this->export_hash; |
||
| 832 | } |
||
| 833 | |||
| 834 | /** |
||
| 835 | * @param string $export_hash |
||
| 836 | * |
||
| 837 | * @return $this |
||
| 838 | */ |
||
| 839 | public function setExportHash($export_hash) |
||
| 840 | { |
||
| 841 | $this->export_hash = $export_hash; |
||
| 842 | |||
| 843 | return $this; |
||
| 844 | } |
||
| 845 | |||
| 846 | /** |
||
| 847 | * @return string |
||
| 848 | */ |
||
| 849 | public function getLdapBindUser() |
||
| 850 | { |
||
| 851 | return $this->ldapBindUser; |
||
| 852 | } |
||
| 853 | |||
| 854 | /** |
||
| 855 | * @param string $ldapBindUser |
||
| 856 | * |
||
| 857 | * @return $this |
||
| 858 | */ |
||
| 859 | public function setLdapBindUser($ldapBindUser) |
||
| 860 | { |
||
| 861 | $this->ldapBindUser = $ldapBindUser; |
||
| 862 | |||
| 863 | return $this; |
||
| 864 | } |
||
| 865 | |||
| 866 | /** |
||
| 867 | * @return string |
||
| 868 | */ |
||
| 869 | public function getLdapProxyUser() |
||
| 870 | { |
||
| 871 | return $this->ldapProxyUser; |
||
| 872 | } |
||
| 873 | |||
| 874 | /** |
||
| 875 | * @param string $ldapProxyUser |
||
| 876 | * |
||
| 877 | * @return $this |
||
| 878 | */ |
||
| 879 | public function setLdapProxyUser($ldapProxyUser) |
||
| 880 | { |
||
| 881 | $this->ldapProxyUser = $ldapProxyUser; |
||
| 882 | |||
| 883 | return $this; |
||
| 884 | } |
||
| 885 | |||
| 886 | /** |
||
| 887 | * @return int |
||
| 888 | */ |
||
| 889 | public function getAccountCount() |
||
| 890 | { |
||
| 891 | return $this->accountCount; |
||
| 892 | } |
||
| 893 | |||
| 894 | /** |
||
| 895 | * @param int $accountCount |
||
| 896 | * |
||
| 897 | * @return $this |
||
| 898 | */ |
||
| 899 | public function setAccountCount($accountCount) |
||
| 900 | { |
||
| 901 | $this->accountCount = (int)$accountCount; |
||
| 902 | |||
| 903 | return $this; |
||
| 904 | } |
||
| 905 | |||
| 906 | /** |
||
| 907 | * @return boolean |
||
| 908 | */ |
||
| 909 | public function isAccountLink() |
||
| 910 | { |
||
| 911 | return $this->accountLink; |
||
| 912 | } |
||
| 913 | |||
| 914 | /** |
||
| 915 | * @param boolean $accountLink |
||
| 916 | * |
||
| 917 | * @return $this |
||
| 918 | */ |
||
| 919 | public function setAccountLink($accountLink) |
||
| 920 | { |
||
| 921 | $this->accountLink = (bool)$accountLink; |
||
| 922 | |||
| 923 | return $this; |
||
| 924 | } |
||
| 925 | |||
| 926 | /** |
||
| 927 | * @return boolean |
||
| 928 | */ |
||
| 929 | public function isCheckUpdates() |
||
| 930 | { |
||
| 931 | return $this->checkUpdates; |
||
| 932 | } |
||
| 933 | |||
| 934 | /** |
||
| 935 | * @param boolean $checkUpdates |
||
| 936 | * |
||
| 937 | * @return $this |
||
| 938 | */ |
||
| 939 | public function setCheckUpdates($checkUpdates) |
||
| 940 | { |
||
| 941 | $this->checkUpdates = (bool)$checkUpdates; |
||
| 942 | |||
| 943 | return $this; |
||
| 944 | } |
||
| 945 | |||
| 946 | /** |
||
| 947 | * @return string |
||
| 948 | */ |
||
| 949 | public function getConfigHash() |
||
| 950 | { |
||
| 951 | return $this->configHash; |
||
| 952 | } |
||
| 953 | |||
| 954 | /** |
||
| 955 | * Generates a hash from current config options |
||
| 956 | */ |
||
| 957 | public function setConfigHash() |
||
| 958 | { |
||
| 959 | $this->configHash = sha1(serialize($this)); |
||
| 960 | |||
| 961 | return $this; |
||
| 962 | } |
||
| 963 | |||
| 964 | /** |
||
| 965 | * @return string |
||
| 966 | */ |
||
| 967 | public function getDbHost() |
||
| 968 | { |
||
| 969 | return $this->dbHost; |
||
| 970 | } |
||
| 971 | |||
| 972 | /** |
||
| 973 | * @param string $dbHost |
||
| 974 | * |
||
| 975 | * @return $this |
||
| 976 | */ |
||
| 977 | public function setDbHost($dbHost) |
||
| 978 | { |
||
| 979 | $this->dbHost = $dbHost; |
||
| 980 | |||
| 981 | return $this; |
||
| 982 | } |
||
| 983 | |||
| 984 | /** |
||
| 985 | * @return string |
||
| 986 | */ |
||
| 987 | public function getDbName() |
||
| 988 | { |
||
| 989 | return $this->dbName; |
||
| 990 | } |
||
| 991 | |||
| 992 | /** |
||
| 993 | * @param string $dbName |
||
| 994 | * |
||
| 995 | * @return $this |
||
| 996 | */ |
||
| 997 | public function setDbName($dbName) |
||
| 998 | { |
||
| 999 | $this->dbName = $dbName; |
||
| 1000 | |||
| 1001 | return $this; |
||
| 1002 | } |
||
| 1003 | |||
| 1004 | /** |
||
| 1005 | * @return string |
||
| 1006 | */ |
||
| 1007 | public function getDbPass() |
||
| 1008 | { |
||
| 1009 | return $this->dbPass; |
||
| 1010 | } |
||
| 1011 | |||
| 1012 | /** |
||
| 1013 | * @param string $dbPass |
||
| 1014 | * |
||
| 1015 | * @return $this |
||
| 1016 | */ |
||
| 1017 | public function setDbPass($dbPass) |
||
| 1018 | { |
||
| 1019 | $this->dbPass = $dbPass; |
||
| 1020 | |||
| 1021 | return $this; |
||
| 1022 | } |
||
| 1023 | |||
| 1024 | /** |
||
| 1025 | * @return string |
||
| 1026 | */ |
||
| 1027 | public function getDbUser() |
||
| 1028 | { |
||
| 1029 | return $this->dbUser; |
||
| 1030 | } |
||
| 1031 | |||
| 1032 | /** |
||
| 1033 | * @param string $dbUser |
||
| 1034 | * |
||
| 1035 | * @return $this |
||
| 1036 | */ |
||
| 1037 | public function setDbUser($dbUser) |
||
| 1038 | { |
||
| 1039 | $this->dbUser = $dbUser; |
||
| 1040 | |||
| 1041 | return $this; |
||
| 1042 | } |
||
| 1043 | |||
| 1044 | /** |
||
| 1045 | * @return boolean |
||
| 1046 | */ |
||
| 1047 | public function isDebug() |
||
| 1048 | { |
||
| 1049 | return $this->debug; |
||
| 1050 | } |
||
| 1051 | |||
| 1052 | /** |
||
| 1053 | * @param boolean $debug |
||
| 1054 | * |
||
| 1055 | * @return $this |
||
| 1056 | */ |
||
| 1057 | public function setDebug($debug) |
||
| 1058 | { |
||
| 1059 | $this->debug = (bool)$debug; |
||
| 1060 | |||
| 1061 | return $this; |
||
| 1062 | } |
||
| 1063 | |||
| 1064 | /** |
||
| 1065 | * @return boolean |
||
| 1066 | */ |
||
| 1067 | public function isDemoEnabled() |
||
| 1068 | { |
||
| 1069 | return $this->demoEnabled; |
||
| 1070 | } |
||
| 1071 | |||
| 1072 | /** |
||
| 1073 | * @param boolean $demoEnabled |
||
| 1074 | * |
||
| 1075 | * @return $this |
||
| 1076 | */ |
||
| 1077 | public function setDemoEnabled($demoEnabled) |
||
| 1078 | { |
||
| 1079 | $this->demoEnabled = (bool)$demoEnabled; |
||
| 1080 | |||
| 1081 | return $this; |
||
| 1082 | } |
||
| 1083 | |||
| 1084 | /** |
||
| 1085 | * @return array |
||
| 1086 | */ |
||
| 1087 | public function getFilesAllowedExts() |
||
| 1088 | { |
||
| 1089 | return (array)$this->filesAllowedExts; |
||
| 1090 | } |
||
| 1091 | |||
| 1092 | /** |
||
| 1093 | * @return int |
||
| 1094 | */ |
||
| 1095 | public function getFilesAllowedSize() |
||
| 1096 | { |
||
| 1097 | return $this->filesAllowedSize; |
||
| 1098 | } |
||
| 1099 | |||
| 1100 | /** |
||
| 1101 | * @param int $filesAllowedSize |
||
| 1102 | * |
||
| 1103 | * @return $this |
||
| 1104 | */ |
||
| 1105 | public function setFilesAllowedSize($filesAllowedSize) |
||
| 1106 | { |
||
| 1107 | $this->filesAllowedSize = (int)$filesAllowedSize; |
||
| 1108 | |||
| 1109 | return $this; |
||
| 1110 | } |
||
| 1111 | |||
| 1112 | /** |
||
| 1113 | * @return boolean |
||
| 1114 | */ |
||
| 1115 | public function isFilesEnabled() |
||
| 1116 | { |
||
| 1117 | return $this->filesEnabled; |
||
| 1118 | } |
||
| 1119 | |||
| 1120 | /** |
||
| 1121 | * @param boolean $filesEnabled |
||
| 1122 | * |
||
| 1123 | * @return $this |
||
| 1124 | */ |
||
| 1125 | public function setFilesEnabled($filesEnabled) |
||
| 1126 | { |
||
| 1127 | $this->filesEnabled = (bool)$filesEnabled; |
||
| 1128 | |||
| 1129 | return $this; |
||
| 1130 | } |
||
| 1131 | |||
| 1132 | /** |
||
| 1133 | * @return boolean |
||
| 1134 | */ |
||
| 1135 | public function isGlobalSearch() |
||
| 1136 | { |
||
| 1137 | return $this->globalSearch; |
||
| 1138 | } |
||
| 1139 | |||
| 1140 | /** |
||
| 1141 | * @param boolean $globalSearch |
||
| 1142 | * |
||
| 1143 | * @return $this |
||
| 1144 | */ |
||
| 1145 | public function setGlobalSearch($globalSearch) |
||
| 1150 | } |
||
| 1151 | |||
| 1152 | /** |
||
| 1153 | * @return boolean |
||
| 1154 | */ |
||
| 1155 | public function isInstalled() |
||
| 1156 | { |
||
| 1157 | return $this->installed; |
||
| 1158 | } |
||
| 1159 | |||
| 1160 | /** |
||
| 1161 | * @param boolean $installed |
||
| 1162 | * |
||
| 1163 | * @return $this |
||
| 1164 | */ |
||
| 1165 | public function setInstalled($installed) |
||
| 1170 | } |
||
| 1171 | |||
| 1172 | /** |
||
| 1173 | * @return string |
||
| 1174 | */ |
||
| 1175 | public function getLdapBase() |
||
| 1176 | { |
||
| 1177 | return $this->ldapBase; |
||
| 1178 | } |
||
| 1179 | |||
| 1180 | /** |
||
| 1181 | * @param string $ldapBase |
||
| 1182 | * |
||
| 1183 | * @return $this |
||
| 1184 | */ |
||
| 1185 | public function setLdapBase($ldapBase) |
||
| 1186 | { |
||
| 1187 | $this->ldapBase = $ldapBase; |
||
| 1188 | |||
| 1189 | return $this; |
||
| 1190 | } |
||
| 1191 | |||
| 1192 | /** |
||
| 1193 | * @return boolean |
||
| 1194 | */ |
||
| 1195 | public function isLdapEnabled() |
||
| 1196 | { |
||
| 1197 | return $this->ldapEnabled; |
||
| 1198 | } |
||
| 1199 | |||
| 1200 | /** |
||
| 1201 | * @param boolean $ldapEnabled |
||
| 1202 | * |
||
| 1203 | * @return $this |
||
| 1204 | */ |
||
| 1205 | public function setLdapEnabled($ldapEnabled) |
||
| 1210 | } |
||
| 1211 | |||
| 1212 | /** |
||
| 1213 | * @return string |
||
| 1214 | */ |
||
| 1215 | public function getLdapGroup() |
||
| 1216 | { |
||
| 1217 | return $this->ldapGroup; |
||
| 1218 | } |
||
| 1219 | |||
| 1220 | /** |
||
| 1221 | * @param string $ldapGroup |
||
| 1222 | * |
||
| 1223 | * @return $this |
||
| 1224 | */ |
||
| 1225 | public function setLdapGroup($ldapGroup) |
||
| 1230 | } |
||
| 1231 | |||
| 1232 | /** |
||
| 1233 | * @return string |
||
| 1234 | */ |
||
| 1235 | public function getLdapServer() |
||
| 1236 | { |
||
| 1237 | return $this->ldapServer; |
||
| 1238 | } |
||
| 1239 | |||
| 1240 | /** |
||
| 1241 | * @param string $ldapServer |
||
| 1242 | * |
||
| 1243 | * @return $this |
||
| 1244 | */ |
||
| 1245 | public function setLdapServer($ldapServer) |
||
| 1250 | } |
||
| 1251 | |||
| 1252 | /** |
||
| 1253 | * @return boolean |
||
| 1254 | */ |
||
| 1255 | public function isLogEnabled() |
||
| 1256 | { |
||
| 1257 | return $this->logEnabled; |
||
| 1258 | } |
||
| 1259 | |||
| 1260 | /** |
||
| 1261 | * @param boolean $logEnabled |
||
| 1262 | * |
||
| 1263 | * @return $this |
||
| 1264 | */ |
||
| 1265 | public function setLogEnabled($logEnabled) |
||
| 1266 | { |
||
| 1267 | $this->logEnabled = (bool)$logEnabled; |
||
| 1268 | |||
| 1269 | return $this; |
||
| 1270 | } |
||
| 1271 | |||
| 1272 | /** |
||
| 1273 | * @return boolean |
||
| 1274 | */ |
||
| 1275 | public function isMailAuthenabled() |
||
| 1276 | { |
||
| 1277 | return $this->mailAuthenabled; |
||
| 1278 | } |
||
| 1279 | |||
| 1280 | /** |
||
| 1281 | * @param boolean $mailAuthenabled |
||
| 1282 | * |
||
| 1283 | * @return $this |
||
| 1284 | */ |
||
| 1285 | public function setMailAuthenabled($mailAuthenabled) |
||
| 1286 | { |
||
| 1287 | $this->mailAuthenabled = (bool)$mailAuthenabled; |
||
| 1288 | |||
| 1289 | return $this; |
||
| 1290 | } |
||
| 1291 | |||
| 1292 | /** |
||
| 1293 | * @return boolean |
||
| 1294 | */ |
||
| 1295 | public function isMailEnabled() |
||
| 1296 | { |
||
| 1297 | return $this->mailEnabled; |
||
| 1298 | } |
||
| 1299 | |||
| 1300 | /** |
||
| 1301 | * @param boolean $mailEnabled |
||
| 1302 | * |
||
| 1303 | * @return $this |
||
| 1304 | */ |
||
| 1305 | public function setMailEnabled($mailEnabled) |
||
| 1306 | { |
||
| 1307 | $this->mailEnabled = (bool)$mailEnabled; |
||
| 1308 | |||
| 1309 | return $this; |
||
| 1310 | } |
||
| 1311 | |||
| 1312 | /** |
||
| 1313 | * @return string |
||
| 1314 | */ |
||
| 1315 | public function getMailFrom() |
||
| 1316 | { |
||
| 1317 | return $this->mailFrom; |
||
| 1318 | } |
||
| 1319 | |||
| 1320 | /** |
||
| 1321 | * @param string $mailFrom |
||
| 1322 | * |
||
| 1323 | * @return $this |
||
| 1324 | */ |
||
| 1325 | public function setMailFrom($mailFrom) |
||
| 1326 | { |
||
| 1327 | $this->mailFrom = $mailFrom; |
||
| 1328 | |||
| 1329 | return $this; |
||
| 1330 | } |
||
| 1331 | |||
| 1332 | /** |
||
| 1333 | * @return string |
||
| 1334 | */ |
||
| 1335 | public function getMailPass() |
||
| 1336 | { |
||
| 1337 | return $this->mailPass; |
||
| 1338 | } |
||
| 1339 | |||
| 1340 | /** |
||
| 1341 | * @param string $mailPass |
||
| 1342 | * |
||
| 1343 | * @return $this |
||
| 1344 | */ |
||
| 1345 | public function setMailPass($mailPass) |
||
| 1346 | { |
||
| 1347 | $this->mailPass = $mailPass; |
||
| 1348 | |||
| 1349 | return $this; |
||
| 1350 | } |
||
| 1351 | |||
| 1352 | /** |
||
| 1353 | * @return int |
||
| 1354 | */ |
||
| 1355 | public function getMailPort() |
||
| 1356 | { |
||
| 1357 | return $this->mailPort; |
||
| 1358 | } |
||
| 1359 | |||
| 1360 | /** |
||
| 1361 | * @param int $mailPort |
||
| 1362 | * |
||
| 1363 | * @return $this |
||
| 1364 | */ |
||
| 1365 | public function setMailPort($mailPort) |
||
| 1366 | { |
||
| 1367 | $this->mailPort = (int)$mailPort; |
||
| 1368 | |||
| 1369 | return $this; |
||
| 1370 | } |
||
| 1371 | |||
| 1372 | /** |
||
| 1373 | * @return boolean |
||
| 1374 | */ |
||
| 1375 | public function isMailRequestsEnabled() |
||
| 1376 | { |
||
| 1377 | return $this->mailRequestsEnabled; |
||
| 1378 | } |
||
| 1379 | |||
| 1380 | /** |
||
| 1381 | * @param boolean $mailRequestsEnabled |
||
| 1382 | * |
||
| 1383 | * @return $this |
||
| 1384 | */ |
||
| 1385 | public function setMailRequestsEnabled($mailRequestsEnabled) |
||
| 1386 | { |
||
| 1387 | $this->mailRequestsEnabled = (bool)$mailRequestsEnabled; |
||
| 1388 | |||
| 1389 | return $this; |
||
| 1390 | } |
||
| 1391 | |||
| 1392 | /** |
||
| 1393 | * @return string |
||
| 1394 | */ |
||
| 1395 | public function getMailSecurity() |
||
| 1396 | { |
||
| 1397 | return $this->mailSecurity; |
||
| 1398 | } |
||
| 1399 | |||
| 1400 | /** |
||
| 1401 | * @param string $mailSecurity |
||
| 1402 | * |
||
| 1403 | * @return $this |
||
| 1404 | */ |
||
| 1405 | public function setMailSecurity($mailSecurity) |
||
| 1406 | { |
||
| 1407 | $this->mailSecurity = $mailSecurity; |
||
| 1408 | |||
| 1409 | return $this; |
||
| 1410 | } |
||
| 1411 | |||
| 1412 | /** |
||
| 1413 | * @return string |
||
| 1414 | */ |
||
| 1415 | public function getMailServer() |
||
| 1416 | { |
||
| 1417 | return $this->mailServer; |
||
| 1418 | } |
||
| 1419 | |||
| 1420 | /** |
||
| 1421 | * @param string $mailServer |
||
| 1422 | * |
||
| 1423 | * @return $this |
||
| 1424 | */ |
||
| 1425 | public function setMailServer($mailServer) |
||
| 1426 | { |
||
| 1427 | $this->mailServer = $mailServer; |
||
| 1428 | |||
| 1429 | return $this; |
||
| 1430 | } |
||
| 1431 | |||
| 1432 | /** |
||
| 1433 | * @return string |
||
| 1434 | */ |
||
| 1435 | public function getMailUser() |
||
| 1436 | { |
||
| 1437 | return $this->mailUser; |
||
| 1438 | } |
||
| 1439 | |||
| 1440 | /** |
||
| 1441 | * @param string $mailUser |
||
| 1442 | * |
||
| 1443 | * @return $this |
||
| 1444 | */ |
||
| 1445 | public function setMailUser($mailUser) |
||
| 1446 | { |
||
| 1447 | $this->mailUser = $mailUser; |
||
| 1448 | |||
| 1449 | return $this; |
||
| 1450 | } |
||
| 1451 | |||
| 1452 | /** |
||
| 1453 | * @return boolean |
||
| 1454 | */ |
||
| 1455 | public function isMaintenance() |
||
| 1456 | { |
||
| 1457 | return (bool)$this->maintenance; |
||
| 1458 | } |
||
| 1459 | |||
| 1460 | /** |
||
| 1461 | * @param boolean $maintenance |
||
| 1462 | * |
||
| 1463 | * @return $this |
||
| 1464 | */ |
||
| 1465 | public function setMaintenance($maintenance) |
||
| 1466 | { |
||
| 1467 | $this->maintenance = (bool)$maintenance; |
||
| 1468 | |||
| 1469 | return $this; |
||
| 1470 | } |
||
| 1471 | |||
| 1472 | /** |
||
| 1473 | * @return string |
||
| 1474 | */ |
||
| 1475 | public function getPasswordSalt() |
||
| 1476 | { |
||
| 1477 | return $this->passwordSalt; |
||
| 1478 | } |
||
| 1479 | |||
| 1480 | /** |
||
| 1481 | * @param string $passwordSalt |
||
| 1482 | * |
||
| 1483 | * @return $this |
||
| 1484 | */ |
||
| 1485 | public function setPasswordSalt($passwordSalt) |
||
| 1486 | { |
||
| 1487 | $this->passwordSalt = $passwordSalt; |
||
| 1488 | |||
| 1489 | return $this; |
||
| 1490 | } |
||
| 1491 | |||
| 1492 | /** |
||
| 1493 | * @return boolean |
||
| 1494 | */ |
||
| 1495 | public function isResultsAsCards() |
||
| 1496 | { |
||
| 1497 | return $this->resultsAsCards; |
||
| 1498 | } |
||
| 1499 | |||
| 1500 | /** |
||
| 1501 | * @param boolean $resultsAsCards |
||
| 1502 | * |
||
| 1503 | * @return $this |
||
| 1504 | */ |
||
| 1505 | public function setResultsAsCards($resultsAsCards) |
||
| 1506 | { |
||
| 1507 | $this->resultsAsCards = (bool)$resultsAsCards; |
||
| 1508 | |||
| 1509 | return $this; |
||
| 1510 | } |
||
| 1511 | |||
| 1512 | /** |
||
| 1513 | * @return int |
||
| 1514 | */ |
||
| 1515 | public function getSessionTimeout() |
||
| 1516 | { |
||
| 1517 | return $this->sessionTimeout; |
||
| 1518 | } |
||
| 1519 | |||
| 1520 | /** |
||
| 1521 | * @param int $sessionTimeout |
||
| 1522 | * |
||
| 1523 | * @return $this |
||
| 1524 | */ |
||
| 1525 | public function setSessionTimeout($sessionTimeout) |
||
| 1526 | { |
||
| 1527 | $this->sessionTimeout = (int)$sessionTimeout; |
||
| 1528 | |||
| 1529 | return $this; |
||
| 1530 | } |
||
| 1531 | |||
| 1532 | /** |
||
| 1533 | * @return string |
||
| 1534 | */ |
||
| 1535 | public function getSiteLang() |
||
| 1536 | { |
||
| 1537 | return $this->siteLang; |
||
| 1538 | } |
||
| 1539 | |||
| 1540 | /** |
||
| 1541 | * @param string $siteLang |
||
| 1542 | * |
||
| 1543 | * @return $this |
||
| 1544 | */ |
||
| 1545 | public function setSiteLang($siteLang) |
||
| 1546 | { |
||
| 1547 | $this->siteLang = $siteLang; |
||
| 1548 | |||
| 1549 | return $this; |
||
| 1550 | } |
||
| 1551 | |||
| 1552 | /** |
||
| 1553 | * @return string |
||
| 1554 | */ |
||
| 1555 | public function getSiteTheme() |
||
| 1556 | { |
||
| 1557 | return $this->siteTheme; |
||
| 1558 | } |
||
| 1559 | |||
| 1560 | /** |
||
| 1561 | * @param string $siteTheme |
||
| 1562 | * |
||
| 1563 | * @return $this |
||
| 1564 | */ |
||
| 1565 | public function setSiteTheme($siteTheme) |
||
| 1566 | { |
||
| 1567 | $this->siteTheme = $siteTheme; |
||
| 1568 | |||
| 1569 | return $this; |
||
| 1570 | } |
||
| 1571 | |||
| 1572 | /** |
||
| 1573 | * @return int |
||
| 1574 | */ |
||
| 1575 | public function getConfigVersion() |
||
| 1576 | { |
||
| 1577 | return (string)$this->configVersion; |
||
| 1578 | } |
||
| 1579 | |||
| 1580 | /** |
||
| 1581 | * @param string $configVersion |
||
| 1582 | * |
||
| 1583 | * @return $this |
||
| 1584 | */ |
||
| 1585 | public function setConfigVersion($configVersion) |
||
| 1586 | { |
||
| 1587 | $this->configVersion = $configVersion; |
||
| 1588 | |||
| 1589 | return $this; |
||
| 1590 | } |
||
| 1591 | |||
| 1592 | /** |
||
| 1593 | * @return boolean |
||
| 1594 | */ |
||
| 1595 | public function isWikiEnabled() |
||
| 1596 | { |
||
| 1597 | return $this->wikiEnabled; |
||
| 1598 | } |
||
| 1599 | |||
| 1600 | /** |
||
| 1601 | * @param boolean $wikiEnabled |
||
| 1602 | * |
||
| 1603 | * @return $this |
||
| 1604 | */ |
||
| 1605 | public function setWikiEnabled($wikiEnabled) |
||
| 1606 | { |
||
| 1607 | $this->wikiEnabled = (bool)$wikiEnabled; |
||
| 1608 | |||
| 1609 | return $this; |
||
| 1610 | } |
||
| 1611 | |||
| 1612 | /** |
||
| 1613 | * @return array |
||
| 1614 | */ |
||
| 1615 | public function getWikiFilter() |
||
| 1616 | { |
||
| 1617 | return is_array($this->wikiFilter) ? $this->wikiFilter : []; |
||
| 1618 | } |
||
| 1619 | |||
| 1620 | /** |
||
| 1621 | * @param array $wikiFilter |
||
| 1622 | * |
||
| 1623 | * @return $this |
||
| 1624 | */ |
||
| 1625 | public function setWikiFilter($wikiFilter) |
||
| 1626 | { |
||
| 1627 | $this->wikiFilter = $wikiFilter; |
||
| 1628 | |||
| 1629 | return $this; |
||
| 1630 | } |
||
| 1631 | |||
| 1632 | /** |
||
| 1633 | * @return string |
||
| 1634 | */ |
||
| 1635 | public function getWikiPageurl() |
||
| 1636 | { |
||
| 1637 | return $this->wikiPageurl; |
||
| 1638 | } |
||
| 1639 | |||
| 1640 | /** |
||
| 1641 | * @param string $wikiPageurl |
||
| 1642 | * |
||
| 1643 | * @return $this |
||
| 1644 | */ |
||
| 1645 | public function setWikiPageurl($wikiPageurl) |
||
| 1646 | { |
||
| 1647 | $this->wikiPageurl = $wikiPageurl; |
||
| 1648 | |||
| 1649 | return $this; |
||
| 1650 | } |
||
| 1651 | |||
| 1652 | /** |
||
| 1653 | * @return string |
||
| 1654 | */ |
||
| 1655 | public function getWikiSearchurl() |
||
| 1656 | { |
||
| 1657 | return $this->wikiSearchurl; |
||
| 1658 | } |
||
| 1659 | |||
| 1660 | /** |
||
| 1661 | * @param string $wikiSearchurl |
||
| 1662 | * |
||
| 1663 | * @return $this |
||
| 1664 | */ |
||
| 1665 | public function setWikiSearchurl($wikiSearchurl) |
||
| 1666 | { |
||
| 1667 | $this->wikiSearchurl = $wikiSearchurl; |
||
| 1668 | |||
| 1669 | return $this; |
||
| 1670 | } |
||
| 1671 | |||
| 1672 | /** |
||
| 1673 | * @return boolean |
||
| 1674 | */ |
||
| 1675 | public function isLdapAds() |
||
| 1676 | { |
||
| 1677 | return $this->ldapAds; |
||
| 1678 | } |
||
| 1679 | |||
| 1680 | /** |
||
| 1681 | * @param boolean $ldapAds |
||
| 1682 | * |
||
| 1683 | * @return $this |
||
| 1684 | */ |
||
| 1685 | public function setLdapAds($ldapAds) |
||
| 1686 | { |
||
| 1687 | $this->ldapAds = (bool)$ldapAds; |
||
| 1688 | |||
| 1689 | return $this; |
||
| 1690 | } |
||
| 1691 | |||
| 1692 | /** |
||
| 1693 | * @return string |
||
| 1694 | */ |
||
| 1695 | public function getLdapBindPass() |
||
| 1696 | { |
||
| 1697 | return $this->ldapBindPass; |
||
| 1698 | } |
||
| 1699 | |||
| 1700 | /** |
||
| 1701 | * @param string $ldapBindPass |
||
| 1702 | * |
||
| 1703 | * @return $this |
||
| 1704 | */ |
||
| 1705 | public function setLdapBindPass($ldapBindPass) |
||
| 1706 | { |
||
| 1707 | $this->ldapBindPass = $ldapBindPass; |
||
| 1708 | |||
| 1709 | return $this; |
||
| 1710 | } |
||
| 1711 | |||
| 1712 | /** |
||
| 1713 | * @return boolean |
||
| 1714 | */ |
||
| 1715 | public function isPublinksImageEnabled() |
||
| 1716 | { |
||
| 1717 | return $this->publinksImageEnabled; |
||
| 1718 | } |
||
| 1719 | |||
| 1720 | /** |
||
| 1721 | * @param boolean $publinksImageEnabled |
||
| 1722 | * |
||
| 1723 | * @return $this |
||
| 1724 | */ |
||
| 1725 | public function setPublinksImageEnabled($publinksImageEnabled) |
||
| 1726 | { |
||
| 1727 | $this->publinksImageEnabled = (bool)$publinksImageEnabled; |
||
| 1728 | |||
| 1729 | return $this; |
||
| 1730 | } |
||
| 1731 | |||
| 1732 | /** |
||
| 1733 | * @return boolean |
||
| 1734 | */ |
||
| 1735 | public function isHttpsEnabled() |
||
| 1736 | { |
||
| 1737 | return $this->httpsEnabled; |
||
| 1738 | } |
||
| 1739 | |||
| 1740 | /** |
||
| 1741 | * @param boolean $httpsEnabled |
||
| 1742 | * |
||
| 1743 | * @return $this |
||
| 1744 | */ |
||
| 1745 | public function setHttpsEnabled($httpsEnabled) |
||
| 1746 | { |
||
| 1747 | $this->httpsEnabled = (bool)$httpsEnabled; |
||
| 1748 | |||
| 1749 | return $this; |
||
| 1750 | } |
||
| 1751 | |||
| 1752 | /** |
||
| 1753 | * @return boolean |
||
| 1754 | */ |
||
| 1755 | public function isChecknotices() |
||
| 1756 | { |
||
| 1757 | return $this->checknotices; |
||
| 1758 | } |
||
| 1759 | |||
| 1760 | /** |
||
| 1761 | * @param boolean $checknotices |
||
| 1762 | * |
||
| 1763 | * @return $this |
||
| 1764 | */ |
||
| 1765 | public function setChecknotices($checknotices) |
||
| 1766 | { |
||
| 1767 | $this->checknotices = $checknotices; |
||
| 1768 | |||
| 1769 | return $this; |
||
| 1770 | } |
||
| 1771 | |||
| 1772 | /** |
||
| 1773 | * @return boolean |
||
| 1774 | */ |
||
| 1775 | public function isAccountPassToImage() |
||
| 1776 | { |
||
| 1777 | return $this->accountPassToImage; |
||
| 1778 | } |
||
| 1779 | |||
| 1780 | /** |
||
| 1781 | * @param boolean $accountPassToImage |
||
| 1782 | * |
||
| 1783 | * @return $this |
||
| 1784 | */ |
||
| 1785 | public function setAccountPassToImage($accountPassToImage) |
||
| 1786 | { |
||
| 1787 | $this->accountPassToImage = (bool)$accountPassToImage; |
||
| 1788 | |||
| 1789 | return $this; |
||
| 1790 | } |
||
| 1791 | |||
| 1792 | /** |
||
| 1793 | * @return string |
||
| 1794 | */ |
||
| 1795 | public function getUpgradeKey() |
||
| 1796 | { |
||
| 1797 | return $this->upgradeKey; |
||
| 1798 | } |
||
| 1799 | |||
| 1800 | /** |
||
| 1801 | * @param string $upgradeKey |
||
| 1802 | * |
||
| 1803 | * @return $this |
||
| 1804 | */ |
||
| 1805 | public function setUpgradeKey($upgradeKey) |
||
| 1806 | { |
||
| 1807 | $this->upgradeKey = $upgradeKey; |
||
| 1808 | |||
| 1809 | return $this; |
||
| 1810 | } |
||
| 1811 | |||
| 1812 | /** |
||
| 1813 | * @return int |
||
| 1814 | */ |
||
| 1815 | public function getDbPort() |
||
| 1816 | { |
||
| 1817 | return $this->dbPort; |
||
| 1818 | } |
||
| 1819 | |||
| 1820 | /** |
||
| 1821 | * @param int $dbPort |
||
| 1822 | * |
||
| 1823 | * @return $this |
||
| 1824 | */ |
||
| 1825 | public function setDbPort($dbPort) |
||
| 1826 | { |
||
| 1827 | $this->dbPort = (int)$dbPort; |
||
| 1828 | |||
| 1829 | return $this; |
||
| 1830 | } |
||
| 1831 | |||
| 1832 | /** |
||
| 1833 | * @return boolean |
||
| 1834 | */ |
||
| 1835 | public function isPublinksEnabled() |
||
| 1836 | { |
||
| 1837 | return $this->publinksEnabled; |
||
| 1838 | } |
||
| 1839 | |||
| 1840 | /** |
||
| 1841 | * @param boolean $publinksEnabled |
||
| 1842 | * |
||
| 1843 | * @return $this |
||
| 1844 | */ |
||
| 1845 | public function setPublinksEnabled($publinksEnabled) |
||
| 1846 | { |
||
| 1847 | $this->publinksEnabled = (bool)$publinksEnabled; |
||
| 1848 | |||
| 1849 | return $this; |
||
| 1850 | } |
||
| 1851 | |||
| 1852 | /** |
||
| 1853 | * Specify data which should be serialized to JSON |
||
| 1854 | * |
||
| 1855 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
||
| 1856 | * @return mixed data which can be serialized by <b>json_encode</b>, |
||
| 1857 | * which is a value of any type other than a resource. |
||
| 1858 | * @since 5.4.0 |
||
| 1859 | */ |
||
| 1860 | public function jsonSerialize() |
||
| 1861 | { |
||
| 1862 | return get_object_vars($this); |
||
| 1863 | } |
||
| 1864 | |||
| 1865 | /** |
||
| 1866 | * @return string |
||
| 1867 | */ |
||
| 1868 | public function getConfigSaver() |
||
| 1869 | { |
||
| 1870 | return $this->configSaver; |
||
| 1871 | } |
||
| 1872 | |||
| 1873 | /** |
||
| 1874 | * @param string $configSaver |
||
| 1875 | * |
||
| 1876 | * @return $this |
||
| 1877 | */ |
||
| 1878 | public function setConfigSaver($configSaver) |
||
| 1879 | { |
||
| 1880 | $this->configSaver = $configSaver; |
||
| 1881 | |||
| 1882 | return $this; |
||
| 1883 | } |
||
| 1884 | |||
| 1885 | /** |
||
| 1886 | * @return string |
||
| 1887 | */ |
||
| 1888 | public function getDbSocket() |
||
| 1889 | { |
||
| 1890 | return $this->dbSocket; |
||
| 1891 | } |
||
| 1892 | |||
| 1893 | /** |
||
| 1894 | * @param string $dbSocket |
||
| 1895 | */ |
||
| 1896 | public function setDbSocket($dbSocket) |
||
| 1897 | { |
||
| 1898 | $this->dbSocket = $dbSocket; |
||
| 1899 | } |
||
| 1900 | |||
| 1901 | /** |
||
| 1902 | * @return bool |
||
| 1903 | */ |
||
| 1904 | public function isEncryptSession() |
||
| 1905 | { |
||
| 1906 | return (bool)$this->encryptSession; |
||
| 1907 | } |
||
| 1908 | |||
| 1909 | /** |
||
| 1910 | * @param bool $encryptSession |
||
| 1911 | * |
||
| 1912 | * @return $this |
||
| 1913 | */ |
||
| 1914 | public function setEncryptSession($encryptSession) |
||
| 1915 | { |
||
| 1916 | $this->encryptSession = (bool)$encryptSession; |
||
| 1917 | |||
| 1918 | return $this; |
||
| 1919 | } |
||
| 1920 | |||
| 1921 | /** |
||
| 1922 | * @return bool |
||
| 1923 | */ |
||
| 1924 | public function isAccountFullGroupAccess() |
||
| 1925 | { |
||
| 1926 | return (bool)$this->accountFullGroupAccess; |
||
| 1927 | } |
||
| 1928 | |||
| 1929 | /** |
||
| 1930 | * @param bool $accountFullGroupAccess |
||
| 1931 | * |
||
| 1932 | * @return $this |
||
| 1933 | */ |
||
| 1934 | public function setAccountFullGroupAccess($accountFullGroupAccess) |
||
| 1935 | { |
||
| 1936 | $this->accountFullGroupAccess = (bool)$accountFullGroupAccess; |
||
| 1937 | |||
| 1938 | return $this; |
||
| 1939 | } |
||
| 1940 | |||
| 1941 | /** |
||
| 1942 | * @return bool |
||
| 1943 | */ |
||
| 1944 | public function isAuthBasicEnabled() |
||
| 1945 | { |
||
| 1946 | return (bool)$this->authBasicEnabled; |
||
| 1947 | } |
||
| 1948 | |||
| 1949 | /** |
||
| 1950 | * @param bool $authBasicEnabled |
||
| 1951 | */ |
||
| 1952 | public function setAuthBasicEnabled($authBasicEnabled) |
||
| 1955 | } |
||
| 1956 | |||
| 1957 | /** |
||
| 1958 | * @return string |
||
| 1959 | */ |
||
| 1960 | public function getAuthBasicDomain() |
||
| 1961 | { |
||
| 1962 | return $this->authBasicDomain; |
||
| 1963 | } |
||
| 1964 | |||
| 1965 | /** |
||
| 1966 | * @param string $authBasicDomain |
||
| 1967 | */ |
||
| 1968 | public function setAuthBasicDomain($authBasicDomain) |
||
| 1969 | { |
||
| 1970 | $this->authBasicDomain = $authBasicDomain; |
||
| 1971 | } |
||
| 1972 | |||
| 1973 | /** |
||
| 1974 | * @return bool |
||
| 1975 | */ |
||
| 1976 | public function isAuthBasicAutoLoginEnabled() |
||
| 1977 | { |
||
| 1978 | return (bool)$this->authBasicAutoLoginEnabled; |
||
| 1979 | } |
||
| 1980 | |||
| 1981 | /** |
||
| 1982 | * @param bool $authBasicAutoLoginEnabled |
||
| 1983 | */ |
||
| 1984 | public function setAuthBasicAutoLoginEnabled($authBasicAutoLoginEnabled) |
||
| 1985 | { |
||
| 1986 | $this->authBasicAutoLoginEnabled = $authBasicAutoLoginEnabled; |
||
| 1987 | } |
||
| 1988 | |||
| 1989 | /** |
||
| 1990 | * @return int |
||
| 1991 | */ |
||
| 1992 | public function getSsoDefaultGroup() |
||
| 1993 | { |
||
| 1994 | return $this->ssoDefaultGroup; |
||
| 1995 | } |
||
| 1996 | |||
| 1997 | /** |
||
| 1998 | * @param int $ssoDefaultGroup |
||
| 1999 | */ |
||
| 2000 | public function setSsoDefaultGroup($ssoDefaultGroup) |
||
| 2001 | { |
||
| 2002 | $this->ssoDefaultGroup = $ssoDefaultGroup; |
||
| 2003 | } |
||
| 2004 | |||
| 2005 | /** |
||
| 2006 | * @return int |
||
| 2007 | */ |
||
| 2008 | public function getSsoDefaultProfile() |
||
| 2009 | { |
||
| 2010 | return $this->ssoDefaultProfile; |
||
| 2011 | } |
||
| 2012 | |||
| 2013 | /** |
||
| 2014 | * @param int $ssoDefaultProfile |
||
| 2015 | */ |
||
| 2016 | public function setSsoDefaultProfile($ssoDefaultProfile) |
||
| 2017 | { |
||
| 2018 | $this->ssoDefaultProfile = $ssoDefaultProfile; |
||
| 2019 | } |
||
| 2020 | |||
| 2021 | /** |
||
| 2022 | * @return array |
||
| 2023 | */ |
||
| 2024 | public function getMailRecipients() |
||
| 2025 | { |
||
| 2026 | return (array)$this->mailRecipients; |
||
| 2027 | } |
||
| 2028 | |||
| 2029 | /** |
||
| 2030 | * @param array $mailRecipients |
||
| 2031 | */ |
||
| 2032 | public function setMailRecipients(array $mailRecipients) |
||
| 2033 | { |
||
| 2034 | $this->mailRecipients = $mailRecipients; |
||
| 2035 | } |
||
| 2036 | |||
| 2037 | /** |
||
| 2038 | * @return array |
||
| 2039 | */ |
||
| 2040 | public function getMailEvents() |
||
| 2041 | { |
||
| 2042 | return is_array($this->mailEvents) ? $this->mailEvents : []; |
||
| 2043 | } |
||
| 2044 | |||
| 2045 | /** |
||
| 2046 | * @param array $mailEvents |
||
| 2047 | */ |
||
| 2048 | public function setMailEvents(array $mailEvents) |
||
| 2049 | { |
||
| 2050 | $this->mailEvents = $mailEvents; |
||
| 2051 | } |
||
| 2052 | |||
| 2053 | /** |
||
| 2054 | * @return string |
||
| 2055 | */ |
||
| 2056 | public function getDatabaseVersion() |
||
| 2057 | { |
||
| 2058 | return (string)$this->databaseVersion; |
||
| 2059 | } |
||
| 2060 | |||
| 2061 | /** |
||
| 2062 | * @param string $databaseVersion |
||
| 2063 | * |
||
| 2064 | * @return ConfigData |
||
| 2065 | */ |
||
| 2066 | public function setDatabaseVersion($databaseVersion) |
||
| 2067 | { |
||
| 2068 | $this->databaseVersion = $databaseVersion; |
||
| 2069 | |||
| 2070 | return $this; |
||
| 2071 | } |
||
| 2072 | |||
| 2073 | /** |
||
| 2074 | * @return int |
||
| 2075 | */ |
||
| 2076 | public function getConfigDate() |
||
| 2077 | { |
||
| 2078 | return $this->configDate; |
||
| 2079 | } |
||
| 2080 | |||
| 2081 | /** |
||
| 2082 | * @param int $configDate |
||
| 2083 | * |
||
| 2084 | * @return $this |
||
| 2085 | */ |
||
| 2086 | public function setConfigDate($configDate) |
||
| 2087 | { |
||
| 2088 | $this->configDate = (int)$configDate; |
||
| 2089 | |||
| 2090 | return $this; |
||
| 2091 | } |
||
| 2092 | |||
| 2093 | /** |
||
| 2094 | * @return bool |
||
| 2095 | */ |
||
| 2096 | public function isAccountExpireEnabled() |
||
| 2097 | { |
||
| 2098 | return (int)$this->accountExpireEnabled; |
||
| 2099 | } |
||
| 2100 | |||
| 2101 | /** |
||
| 2102 | * @param bool $accountExpireEnabled |
||
| 2103 | * |
||
| 2104 | * @return ConfigData |
||
| 2105 | */ |
||
| 2106 | public function setAccountExpireEnabled($accountExpireEnabled) |
||
| 2107 | { |
||
| 2108 | $this->accountExpireEnabled = $accountExpireEnabled; |
||
| 2109 | |||
| 2110 | return $this; |
||
| 2111 | } |
||
| 2112 | |||
| 2113 | /** |
||
| 2114 | * @return int |
||
| 2115 | */ |
||
| 2116 | public function getAccountExpireTime() |
||
| 2117 | { |
||
| 2118 | return $this->accountExpireTime; |
||
| 2119 | } |
||
| 2120 | |||
| 2121 | /** |
||
| 2122 | * @param int $accountExpireTime |
||
| 2123 | * |
||
| 2124 | * @return ConfigData |
||
| 2125 | */ |
||
| 2126 | public function setAccountExpireTime($accountExpireTime) |
||
| 2127 | { |
||
| 2128 | $this->accountExpireTime = (int)$accountExpireTime; |
||
| 2129 | |||
| 2130 | return $this; |
||
| 2131 | } |
||
| 2132 | |||
| 2133 | /** |
||
| 2134 | * @return bool |
||
| 2135 | */ |
||
| 2136 | public function isLdapTlsEnabled(): bool |
||
| 2137 | { |
||
| 2138 | return (bool)$this->ldapTlsEnabled; |
||
| 2139 | } |
||
| 2140 | |||
| 2141 | /** |
||
| 2142 | * @param bool $ldapTlsEnabled |
||
| 2143 | */ |
||
| 2144 | public function setLdapTlsEnabled(bool $ldapTlsEnabled) |
||
| 2145 | { |
||
| 2146 | $this->ldapTlsEnabled = (int)$ldapTlsEnabled; |
||
| 2147 | } |
||
| 2148 | |||
| 2149 | /** |
||
| 2150 | * @return array |
||
| 2151 | */ |
||
| 2152 | public function getFilesAllowedMime(): array |
||
| 2155 | } |
||
| 2156 | |||
| 2157 | /** |
||
| 2158 | * @param array $filesAllowedMime |
||
| 2159 | */ |
||
| 2160 | public function setFilesAllowedMime(array $filesAllowedMime) |
||
| 2161 | { |
||
| 2162 | $this->filesAllowedMime = $filesAllowedMime; |
||
| 2163 | } |
||
| 2164 | |||
| 2165 | /** |
||
| 2166 | * @return int |
||
| 2167 | */ |
||
| 2168 | public function getLdapType() |
||
| 2169 | { |
||
| 2170 | return (int)$this->ldapType; |
||
| 2171 | } |
||
| 2172 | |||
| 2173 | /** |
||
| 2174 | * @param int $ldapType |
||
| 2175 | */ |
||
| 2176 | public function setLdapType(int $ldapType) |
||
| 2177 | { |
||
| 2178 | $this->ldapType = $ldapType; |
||
| 2179 | } |
||
| 2180 | |||
| 2181 | /** |
||
| 2182 | * @return string |
||
| 2183 | */ |
||
| 2184 | public function getAppVersion() |
||
| 2185 | { |
||
| 2186 | return $this->appVersion; |
||
| 2187 | } |
||
| 2188 | |||
| 2189 | /** |
||
| 2190 | * @param string $appVersion |
||
| 2191 | */ |
||
| 2192 | public function setAppVersion(string $appVersion) |
||
| 2195 | } |
||
| 2196 | |||
| 2197 | /** |
||
| 2198 | * @return string |
||
| 2199 | */ |
||
| 2200 | public function getApplicationUrl() |
||
| 2201 | { |
||
| 2202 | return $this->applicationUrl; |
||
| 2203 | } |
||
| 2204 | |||
| 2205 | /** |
||
| 2206 | * @param string $applicationUrl |
||
| 2207 | */ |
||
| 2208 | public function setApplicationUrl(string $applicationUrl = null) |
||
| 2209 | { |
||
| 2210 | $this->applicationUrl = $applicationUrl ? rtrim($applicationUrl, '/') : null; |
||
| 2211 | } |
||
| 2212 | } |
||
| 2213 |