iservercontainer.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. namespace OCP;
  23. /**
  24. * Class IServerContainer
  25. * @package OCP
  26. *
  27. * This container holds all ownCloud services
  28. */
  29. interface IServerContainer {
  30. /**
  31. * The contacts manager will act as a broker between consumers for contacts information and
  32. * providers which actual deliver the contact information.
  33. *
  34. * @return \OCP\Contacts\IManager
  35. */
  36. function getContactsManager();
  37. /**
  38. * The current request object holding all information about the request currently being processed
  39. * is returned from this method.
  40. * In case the current execution was not initiated by a web request null is returned
  41. *
  42. * @return \OCP\IRequest|null
  43. */
  44. function getRequest();
  45. /**
  46. * Returns the preview manager which can create preview images for a given file
  47. *
  48. * @return \OCP\IPreview
  49. */
  50. function getPreviewManager();
  51. /**
  52. * Returns the tag manager which can get and set tags for different object types
  53. *
  54. * @see \OCP\ITagManager::load()
  55. * @return \OCP\ITagManager
  56. */
  57. function getTagManager();
  58. /**
  59. * Returns the root folder of ownCloud's data directory
  60. *
  61. * @return \OCP\Files\Folder
  62. */
  63. function getRootFolder();
  64. /**
  65. * Returns a view to ownCloud's files folder
  66. *
  67. * @return \OCP\Files\Folder
  68. */
  69. function getUserFolder();
  70. /**
  71. * Returns an app-specific view in ownClouds data directory
  72. *
  73. * @return \OCP\Files\Folder
  74. */
  75. function getAppFolder();
  76. /**
  77. * Returns the user session
  78. *
  79. * @return \OCP\IUserSession
  80. */
  81. function getUserSession();
  82. /**
  83. * @return \OCP\INavigationManager
  84. */
  85. function getNavigationManager();
  86. /**
  87. * @return \OCP\IConfig
  88. */
  89. function getConfig();
  90. /**
  91. * get an L10N instance
  92. * @param $app string appid
  93. * @return \OCP\IL10N
  94. */
  95. function getL10N($app);
  96. /**
  97. * @return \OCP\IURLGenerator
  98. */
  99. function getURLGenerator();
  100. /**
  101. * @return \OCP\IHelper
  102. */
  103. function getHelper();
  104. /**
  105. * Returns an ICache instance
  106. *
  107. * @return \OCP\ICache
  108. */
  109. function getCache();
  110. /**
  111. * Returns the current session
  112. *
  113. * @return \OCP\ISession
  114. */
  115. function getSession();
  116. /**
  117. * Returns the activity manager
  118. *
  119. * @return \OCP\Activity\IManager
  120. */
  121. function getActivityManager();
  122. /**
  123. * Returns the current session
  124. *
  125. * @return \OCP\IDBConnection
  126. */
  127. function getDatabaseConnection();
  128. }