Defaults
in package
public api to access default strings and urls for your templates
Tags
Table of Contents
Properties
- $defaults : mixed
- \OC_Defaults instance to retrieve the defaults
Methods
- __construct() : mixed
- creates a \OC_Defaults instance which is used in all methods to retrieve the actual defaults
- buildDocLinkToKey() : string
- getAndroidClientUrl() : string
- link to the Android client
- getBaseUrl() : string
- get base URL for the organisation behind your ownCloud instance
- getColorPrimary() : string
- Returns primary color
- getDefaultColorPrimary() : string
- Return the default color primary
- getDefaultTextColorPrimary() : string
- Returns primary color
- getDocBaseUrl() : string
- base URL to the documentation of your ownCloud instance
- getEntity() : string
- Entity behind your onwCloud instance
- getFDroidClientUrl() : string
- link to the Android client on F-Droid
- getHTMLName() : string
- name of your ownCloud instance containing HTML styles
- getiOSClientUrl() : string
- link to the iOS client
- getiTunesAppId() : string
- Returns the AppId for the App Store for the iOS Client
- getLogo() : string
- Themed logo url
- getLongFooter() : string
- footer, long version
- getName() : string
- name of your Nextcloud instance (e.g. MyPrivateCloud)
- getProductName() : string
- Name of the software product (defaults to Nextcloud)
- getShortFooter() : string
- footer, short version
- getSlogan() : string
- ownCloud slogan
- getSyncClientUrl() : string
- link to the desktop sync client
- getTextColorPrimary() : string
- Returns primary color
- getTitle() : string
- Returns the title
Properties
$defaults
\OC_Defaults instance to retrieve the defaults
private
mixed
$defaults
Tags
Methods
__construct()
creates a \OC_Defaults instance which is used in all methods to retrieve the actual defaults
public
__construct([OC_Defaults|null $defaults = null ]) : mixed
Parameters
- $defaults : OC_Defaults|null = null
Tags
buildDocLinkToKey()
public
buildDocLinkToKey(string $key) : string
Parameters
- $key : string
Tags
Return values
string —URL to doc with key
getAndroidClientUrl()
link to the Android client
public
getAndroidClientUrl() : string
Tags
Return values
stringgetBaseUrl()
get base URL for the organisation behind your ownCloud instance
public
getBaseUrl() : string
Tags
Return values
stringgetColorPrimary()
Returns primary color
public
getColorPrimary() : string
Tags
Return values
stringgetDefaultColorPrimary()
Return the default color primary
public
getDefaultColorPrimary() : string
Tags
Return values
stringgetDefaultTextColorPrimary()
Returns primary color
public
getDefaultTextColorPrimary() : string
Tags
Return values
stringgetDocBaseUrl()
base URL to the documentation of your ownCloud instance
public
getDocBaseUrl() : string
Tags
Return values
stringgetEntity()
Entity behind your onwCloud instance
public
getEntity() : string
Tags
Return values
stringgetFDroidClientUrl()
link to the Android client on F-Droid
public
getFDroidClientUrl() : string
Tags
Return values
stringgetHTMLName()
name of your ownCloud instance containing HTML styles
public
getHTMLName() : string
Tags
Return values
stringgetiOSClientUrl()
link to the iOS client
public
getiOSClientUrl() : string
Tags
Return values
stringgetiTunesAppId()
Returns the AppId for the App Store for the iOS Client
public
getiTunesAppId() : string
Tags
Return values
string —AppId
getLogo()
Themed logo url
public
getLogo([bool $useSvg = true ]) : string
Parameters
- $useSvg : bool = true
-
Whether to point to the SVG image or a fallback
Tags
Return values
stringgetLongFooter()
footer, long version
public
getLongFooter() : string
Tags
Return values
stringgetName()
name of your Nextcloud instance (e.g. MyPrivateCloud)
public
getName() : string
Tags
Return values
stringgetProductName()
Name of the software product (defaults to Nextcloud)
public
getProductName() : string
Tags
Return values
stringgetShortFooter()
footer, short version
public
getShortFooter() : string
Tags
Return values
stringgetSlogan()
ownCloud slogan
public
getSlogan([string|null $lang = null ]) : string
Parameters
- $lang : string|null = null
Tags
Return values
stringgetSyncClientUrl()
link to the desktop sync client
public
getSyncClientUrl() : string
Tags
Return values
stringgetTextColorPrimary()
Returns primary color
public
getTextColorPrimary() : string
Tags
Return values
stringgetTitle()
Returns the title
public
getTitle() : string
Tags
Return values
string —title