You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

defaults.php 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. /**
  23. * Public interface of ownCloud for apps to use.
  24. * Defaults Class
  25. *
  26. */
  27. // use OCP namespace for all classes that are considered public.
  28. // This means that they should be used by apps instead of the internal ownCloud classes
  29. namespace OCP;
  30. /**
  31. * public api to access default strings and urls for your templates
  32. */
  33. class Defaults {
  34. /**
  35. * \OC_Defaults instance to retrieve the defaults
  36. * @return string
  37. */
  38. private $defaults;
  39. /**
  40. * creates a \OC_Defaults instance which is used in all methods to retrieve the
  41. * actual defaults
  42. */
  43. function __construct() {
  44. $this->defaults = new \OC_Defaults();
  45. }
  46. /**
  47. * get base URL for the organisation behind your ownCloud instance
  48. * @return string
  49. */
  50. public function getBaseUrl() {
  51. return $this->defaults->getBaseUrl();
  52. }
  53. /**
  54. * link to the desktop sync client
  55. * @return string
  56. */
  57. public function getSyncClientUrl() {
  58. return $this->defaults->getSyncClientUrl();
  59. }
  60. /**
  61. * link to the iOS client
  62. * @return string
  63. */
  64. public function getiOSClientUrl() {
  65. return $this->defaults->getiOSClientUrl();
  66. }
  67. /**
  68. * link to the Android client
  69. * @return string
  70. */
  71. public function getAndroidClientUrl() {
  72. return $this->defaults->getAndroidClientUrl();
  73. }
  74. /**
  75. * base URL to the documentation of your ownCloud instance
  76. * @return string
  77. */
  78. public function getDocBaseUrl() {
  79. return $this->defaults->getDocBaseUrl();
  80. }
  81. /**
  82. * name of your ownCloud instance
  83. * @return string
  84. */
  85. public function getName() {
  86. return $this->defaults->getName();
  87. }
  88. /**
  89. * name of your ownCloud instance containing HTML styles
  90. * @return string
  91. */
  92. public function getHTMLName() {
  93. return $this->defaults->getHTMLName();
  94. }
  95. /**
  96. * Entity behind your onwCloud instance
  97. * @return string
  98. */
  99. public function getEntity() {
  100. return $this->defaults->getEntity();
  101. }
  102. /**
  103. * ownCloud slogan
  104. * @return string
  105. */
  106. public function getSlogan() {
  107. return $this->defaults->getSlogan();
  108. }
  109. /**
  110. * logo claim
  111. * @return string
  112. */
  113. public function getLogoClaim() {
  114. return $this->defaults->getLogoClaim();
  115. }
  116. /**
  117. * footer, short version
  118. * @return string
  119. */
  120. public function getShortFooter() {
  121. return $this->defaults->getShortFooter();
  122. }
  123. /**
  124. * footer, long version
  125. * @return string
  126. */
  127. public function getLongFooter() {
  128. return $this->defaults->getLongFooter();
  129. }
  130. }