apphelper.php 559 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright (c) 2013 Bart Visscher <bartv@thisnet.nl>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. *
  8. */
  9. namespace OC;
  10. /**
  11. * TODO: Description
  12. */
  13. class AppHelper implements \OCP\IHelper {
  14. /**
  15. * Gets the content of an URL by using CURL or a fallback if it is not
  16. * installed
  17. * @param string $url the url that should be fetched
  18. * @return string the content of the webpage
  19. */
  20. public function getUrlContent($url) {
  21. return \OC_Util::getUrlContent($url);
  22. }
  23. }