Blame view
sources/lib/public/iservercontainer.php
4.25 KB
|
31b7f2792
|
1 2 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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
<?php
/**
* ownCloud
*
* @author Thomas Müller
* @copyright 2013 Thomas Müller deepdiver@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.
* Server container interface
*
*/
// 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
namespace OCP;
/**
* Class IServerContainer
* @package OCP
*
* This container holds all ownCloud services
*/
interface IServerContainer {
/**
* The contacts manager will act as a broker between consumers for contacts information and
* providers which actual deliver the contact information.
*
* @return \OCP\Contacts\IManager
*/
function getContactsManager();
/**
* The current request object holding all information about the request currently being processed
* is returned from this method.
* In case the current execution was not initiated by a web request null is returned
*
* @return \OCP\IRequest|null
*/
function getRequest();
/**
* Returns the preview manager which can create preview images for a given file
*
* @return \OCP\IPreview
*/
function getPreviewManager();
/**
* Returns the tag manager which can get and set tags for different object types
*
* @see \OCP\ITagManager::load()
* @return \OCP\ITagManager
*/
function getTagManager();
/**
* Returns the root folder of ownCloud's data directory
*
* @return \OCP\Files\Folder
*/
function getRootFolder();
/**
* Returns a view to ownCloud's files folder
*
* @return \OCP\Files\Folder
*/
function getUserFolder();
/**
* Returns an app-specific view in ownClouds data directory
*
* @return \OCP\Files\Folder
*/
function getAppFolder();
/**
|
|
6d9380f96
|
96 97 98 99 100 101 102 |
* Returns a user manager * * @return \OCP\IUserManager */ function getUserManager(); /** |
|
31b7f2792
|
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
* Returns the user session * * @return \OCP\IUserSession */ function getUserSession(); /** * Returns the navigation manager * * @return \OCP\INavigationManager */ function getNavigationManager(); /** * Returns the config manager * * @return \OCP\IConfig */ function getConfig(); |
|
6d9380f96
|
122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
/** * Returns an instance of the db facade * @return \OCP\IDb */ function getDb(); /** * Returns the app config manager * * @return \OCP\IAppConfig */ function getAppConfig(); |
|
31b7f2792
|
136 137 |
/** * get an L10N instance |
|
6d9380f96
|
138 |
* @param string $app appid |
|
31b7f2792
|
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
* @return \OCP\IL10N */ function getL10N($app); /** * Returns the URL generator * * @return \OCP\IURLGenerator */ function getURLGenerator(); /** * Returns the Helper * * @return \OCP\IHelper */ function getHelper(); /** * Returns an ICache instance * * @return \OCP\ICache */ function getCache(); /** |
|
6d9380f96
|
165 166 167 168 169 170 171 |
* Returns an \OCP\CacheFactory instance * * @return \OCP\ICacheFactory */ function getMemCacheFactory(); /** |
|
31b7f2792
|
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
* Returns the current session * * @return \OCP\ISession */ function getSession(); /** * Returns the activity manager * * @return \OCP\Activity\IManager */ function getActivityManager(); /** * Returns the current session * * @return \OCP\IDBConnection */ function getDatabaseConnection(); /** * Returns an avatar manager, used for avatar functionality * * @return \OCP\IAvatarManager */ function getAvatarManager(); |
|
6d9380f96
|
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
/** * Returns an job list for controlling background jobs * * @return \OCP\BackgroundJob\IJobList */ function getJobList(); /** * Returns a router for generating and matching urls * * @return \OCP\Route\IRouter */ function getRouter(); /** * Returns a search instance * * @return \OCP\ISearch */ function getSearch(); |
|
31b7f2792
|
218 |
} |