Blame view

sources/lib/public/defaults.php 2.93 KB
03e52840d   Kload   Init
1
2
  <?php
  /**
31b7f2792   Kload   Upgrade to ownclo...
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   Kload   Init
28

31b7f2792   Kload   Upgrade to ownclo...
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   Kload   Init
31
  namespace OCP;
31b7f2792   Kload   Upgrade to ownclo...
32
  /**
03e52840d   Kload   Init
33
34
   * public api to access default strings and urls for your templates
   */
03e52840d   Kload   Init
35
  class Defaults {
31b7f2792   Kload   Upgrade to ownclo...
36
37
38
39
  	/**
  	 * \OC_Defaults instance to retrieve the defaults
  	 * @return string
  	 */
03e52840d   Kload   Init
40
  	private $defaults;
31b7f2792   Kload   Upgrade to ownclo...
41
42
43
44
  	/**
  	 * creates a \OC_Defaults instance which is used in all methods to retrieve the
  	 * actual defaults
  	 */
03e52840d   Kload   Init
45
46
47
48
49
  	function __construct() {
  		$this->defaults = new \OC_Defaults();
  	}
  
  	/**
31b7f2792   Kload   Upgrade to ownclo...
50
  	 * get base URL for the organisation behind your ownCloud instance
03e52840d   Kload   Init
51
52
53
54
55
56
57
  	 * @return string
  	 */
  	public function getBaseUrl() {
  		return $this->defaults->getBaseUrl();
  	}
  
  	/**
31b7f2792   Kload   Upgrade to ownclo...
58
  	 * link to the desktop sync client
03e52840d   Kload   Init
59
60
61
62
63
64
65
  	 * @return string
  	 */
  	public function getSyncClientUrl() {
  		return $this->defaults->getSyncClientUrl();
  	}
  
  	/**
f7d878ff1   kload   [enh] Update to 7...
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
  	 * link to the iOS client
  	 * @return string
  	 */
  	public function getiOSClientUrl() {
  		return $this->defaults->getiOSClientUrl();
  	}
  
  	/**
  	 * link to the Android client
  	 * @return string
  	 */
  	public function getAndroidClientUrl() {
  		return $this->defaults->getAndroidClientUrl();
  	}
  
  	/**
31b7f2792   Kload   Upgrade to ownclo...
82
  	 * base URL to the documentation of your ownCloud instance
03e52840d   Kload   Init
83
84
85
86
87
88
89
  	 * @return string
  	 */
  	public function getDocBaseUrl() {
  		return $this->defaults->getDocBaseUrl();
  	}
  
  	/**
31b7f2792   Kload   Upgrade to ownclo...
90
  	 * name of your ownCloud instance
03e52840d   Kload   Init
91
92
93
94
95
96
97
  	 * @return string
  	 */
  	public function getName() {
  		return $this->defaults->getName();
  	}
  
  	/**
31b7f2792   Kload   Upgrade to ownclo...
98
  	 * Entity behind your onwCloud instance
03e52840d   Kload   Init
99
100
101
102
103
104
105
  	 * @return string
  	 */
  	public function getEntity() {
  		return $this->defaults->getEntity();
  	}
  
  	/**
31b7f2792   Kload   Upgrade to ownclo...
106
  	 * ownCloud slogan
03e52840d   Kload   Init
107
108
109
110
111
112
113
  	 * @return string
  	 */
  	public function getSlogan() {
  		return $this->defaults->getSlogan();
  	}
  
  	/**
31b7f2792   Kload   Upgrade to ownclo...
114
  	 * logo claim
03e52840d   Kload   Init
115
116
117
118
119
120
121
  	 * @return string
  	 */
  	public function getLogoClaim() {
  		return $this->defaults->getLogoClaim();
  	}
  
  	/**
31b7f2792   Kload   Upgrade to ownclo...
122
  	 * footer, short version
03e52840d   Kload   Init
123
124
125
126
127
128
129
  	 * @return string
  	 */
  	public function getShortFooter() {
  		return $this->defaults->getShortFooter();
  	}
  
  	/**
31b7f2792   Kload   Upgrade to ownclo...
130
  	 * footer, long version
03e52840d   Kload   Init
131
132
133
134
135
136
  	 * @return string
  	 */
  	public function getLongFooter() {
  		return $this->defaults->getLongFooter();
  	}
  }