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