Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

iservercontainer.php 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <?php
  2. /**
  3. * ownCloud
  4. *
  5. * @author Thomas Müller
  6. * @copyright 2013 Thomas Müller deepdiver@owncloud.com
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  10. * License as published by the Free Software Foundation; either
  11. * version 3 of the License, or any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public
  19. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. /**
  23. * Public interface of ownCloud for apps to use.
  24. * Server container interface
  25. *
  26. */
  27. // use OCP namespace for all classes that are considered public.
  28. // This means that they should be used by apps instead of the internal ownCloud classes
  29. namespace OCP;
  30. /**
  31. * Class IServerContainer
  32. * @package OCP
  33. *
  34. * This container holds all ownCloud services
  35. */
  36. interface IServerContainer {
  37. /**
  38. * The contacts manager will act as a broker between consumers for contacts information and
  39. * providers which actual deliver the contact information.
  40. *
  41. * @return \OCP\Contacts\IManager
  42. */
  43. function getContactsManager();
  44. /**
  45. * The current request object holding all information about the request currently being processed
  46. * is returned from this method.
  47. * In case the current execution was not initiated by a web request null is returned
  48. *
  49. * @return \OCP\IRequest|null
  50. */
  51. function getRequest();
  52. /**
  53. * Returns the preview manager which can create preview images for a given file
  54. *
  55. * @return \OCP\IPreview
  56. */
  57. function getPreviewManager();
  58. /**
  59. * Returns the tag manager which can get and set tags for different object types
  60. *
  61. * @see \OCP\ITagManager::load()
  62. * @return \OCP\ITagManager
  63. */
  64. function getTagManager();
  65. /**
  66. * Returns the root folder of ownCloud's data directory
  67. *
  68. * @return \OCP\Files\Folder
  69. */
  70. function getRootFolder();
  71. /**
  72. * Returns a view to ownCloud's files folder
  73. *
  74. * @return \OCP\Files\Folder
  75. */
  76. function getUserFolder();
  77. /**
  78. * Returns an app-specific view in ownClouds data directory
  79. *
  80. * @return \OCP\Files\Folder
  81. */
  82. function getAppFolder();
  83. /**
  84. * Returns the user session
  85. *
  86. * @return \OCP\IUserSession
  87. */
  88. function getUserSession();
  89. /**
  90. * Returns the navigation manager
  91. *
  92. * @return \OCP\INavigationManager
  93. */
  94. function getNavigationManager();
  95. /**
  96. * Returns the config manager
  97. *
  98. * @return \OCP\IConfig
  99. */
  100. function getConfig();
  101. /**
  102. * Returns the app config manager
  103. *
  104. * @return \OCP\IAppConfig
  105. */
  106. function getAppConfig();
  107. /**
  108. * get an L10N instance
  109. * @param string $app appid
  110. * @return \OCP\IL10N
  111. */
  112. function getL10N($app);
  113. /**
  114. * Returns the URL generator
  115. *
  116. * @return \OCP\IURLGenerator
  117. */
  118. function getURLGenerator();
  119. /**
  120. * Returns the Helper
  121. *
  122. * @return \OCP\IHelper
  123. */
  124. function getHelper();
  125. /**
  126. * Returns an ICache instance
  127. *
  128. * @return \OCP\ICache
  129. */
  130. function getCache();
  131. /**
  132. * Returns an \OCP\CacheFactory instance
  133. *
  134. * @return \OCP\ICacheFactory
  135. */
  136. function getMemCacheFactory();
  137. /**
  138. * Returns the current session
  139. *
  140. * @return \OCP\ISession
  141. */
  142. function getSession();
  143. /**
  144. * Returns the activity manager
  145. *
  146. * @return \OCP\Activity\IManager
  147. */
  148. function getActivityManager();
  149. /**
  150. * Returns the current session
  151. *
  152. * @return \OCP\IDBConnection
  153. */
  154. function getDatabaseConnection();
  155. /**
  156. * Returns an avatar manager, used for avatar functionality
  157. *
  158. * @return \OCP\IAvatarManager
  159. */
  160. function getAvatarManager();
  161. /**
  162. * Returns an job list for controlling background jobs
  163. *
  164. * @return \OCP\BackgroundJob\IJobList
  165. */
  166. function getJobList();
  167. /**
  168. * Returns a router for generating and matching urls
  169. *
  170. * @return \OCP\Route\IRouter
  171. */
  172. function getRouter();
  173. }