From 6cfa016c39cb2ea9d4eae8966518643bb4925014 Mon Sep 17 00:00:00 2001 From: Björn Schießle Date: Wed, 3 Jul 2013 15:18:19 +0200 Subject: add public api --- lib/public/defaults.php | 108 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 lib/public/defaults.php (limited to 'lib/public') diff --git a/lib/public/defaults.php b/lib/public/defaults.php new file mode 100644 index 00000000000..147f23e341f --- /dev/null +++ b/lib/public/defaults.php @@ -0,0 +1,108 @@ +. +* +*/ + +namespace OCP; + +/* + * public api to access default strings and urls for your templates + */ + +class Defaults { + + private $defaults; + + function __construct() { + $this->defaults = new \OC_Defaults(); + } + + /** + * @breif get base URL for the organisation behind your ownCloud instance + * @return string + */ + public function getBaseUrl() { + return $this->defaults->getBaseUrl(); + } + + /** + * @breif link to the desktop sync client + * @return string + */ + public function getSyncClientUrl() { + return $this->defaults->getSyncClientUrl(); + } + + /** + * @breif base URL to the documentation of your ownCloud instance + * @return string + */ + public function getDocBaseUrl() { + return $this->defaults->getDocBaseUrl(); + } + + /** + * @breif name of your ownCloud instance + * @return string + */ + public function getName() { + return $this->defaults->getName(); + } + + /** + * @breif Entity behind your onwCloud instance + * @return string + */ + public function getEntity() { + return $this->defaults->getEntity(); + } + + /** + * @breif ownCloud slogan + * @return string + */ + public function getSlogan() { + return $this->defaults->getSlogan(); + } + + /** + * @breif logo claim + * @return string + */ + public function getLogoClaim() { + return $this->defaults->getLogoClaim(); + } + + /** + * @breif footer, short version + * @return string + */ + public function getShortFooter() { + return $this->defaults->getShortFooter(); + } + + /** + * @breif footer, long version + * @return string + */ + public function getLongFooter() { + return $this->defaults->getLongFooter(); + } +} -- cgit v1.2.3