defaults.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?php
  2. /**
  3. * ownCloud
  4. *
  5. * @author Björn Schießle
  6. * @copyright 2013 Björn Schießle schiessle@owncloud.com
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  10. * License as published by the Free Software Foundation; either
  11. * version 3 of the License, or any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public
  19. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. namespace OCP;
  23. /*
  24. * public api to access default strings and urls for your templates
  25. */
  26. class Defaults {
  27. private $defaults;
  28. function __construct() {
  29. $this->defaults = new \OC_Defaults();
  30. }
  31. /**
  32. * @breif get base URL for the organisation behind your ownCloud instance
  33. * @return string
  34. */
  35. public function getBaseUrl() {
  36. return $this->defaults->getBaseUrl();
  37. }
  38. /**
  39. * @breif link to the desktop sync client
  40. * @return string
  41. */
  42. public function getSyncClientUrl() {
  43. return $this->defaults->getSyncClientUrl();
  44. }
  45. /**
  46. * @breif base URL to the documentation of your ownCloud instance
  47. * @return string
  48. */
  49. public function getDocBaseUrl() {
  50. return $this->defaults->getDocBaseUrl();
  51. }
  52. /**
  53. * @breif name of your ownCloud instance
  54. * @return string
  55. */
  56. public function getName() {
  57. return $this->defaults->getName();
  58. }
  59. /**
  60. * @breif Entity behind your onwCloud instance
  61. * @return string
  62. */
  63. public function getEntity() {
  64. return $this->defaults->getEntity();
  65. }
  66. /**
  67. * @breif ownCloud slogan
  68. * @return string
  69. */
  70. public function getSlogan() {
  71. return $this->defaults->getSlogan();
  72. }
  73. /**
  74. * @breif logo claim
  75. * @return string
  76. */
  77. public function getLogoClaim() {
  78. return $this->defaults->getLogoClaim();
  79. }
  80. /**
  81. * @breif footer, short version
  82. * @return string
  83. */
  84. public function getShortFooter() {
  85. return $this->defaults->getShortFooter();
  86. }
  87. /**
  88. * @breif footer, long version
  89. * @return string
  90. */
  91. public function getLongFooter() {
  92. return $this->defaults->getLongFooter();
  93. }
  94. }