/plugin/PBAPI/PBAPI/Methods/album.php

https://bitbucket.org/chamilo/chamilo-ext-repo-photobucket-dev/ · PHP · 62 lines · 20 code · 6 blank · 36 comment · 0 complexity · b41c98bea1a8145a08325eb885fda635 MD5 · raw file

  1. <?php
  2. /**
  3. * Photobucket API
  4. * Fluent interface for PHP5
  5. * Album methods
  6. *
  7. * @author Photobucket
  8. * @package PBAPI
  9. * @subpackage Methods
  10. *
  11. * @copyright Copyright Copyright (c) 2008, Photobucket, Inc.
  12. * @license http://www.opensource.org/licenses/mit-license.php The MIT License
  13. */
  14. /**
  15. * Load Methods parent
  16. */
  17. require_once dirname(__FILE__) . '/../Methods.php';
  18. /**
  19. * Album submethods
  20. *
  21. * @package PBAPI
  22. * @subpackage Methods
  23. */
  24. class PBAPI_Methods_album extends PBAPI_Methods
  25. {
  26. /**
  27. * Upload File
  28. *
  29. * @param array $params
  30. */
  31. public function upload($params)
  32. {
  33. $this->core->_setParamList($params);
  34. $this->core->_appendUri('/upload');
  35. }
  36. /**
  37. * Privacy
  38. *
  39. * @param array $params
  40. */
  41. public function privacy($params = null)
  42. {
  43. $this->core->_setParamList($params);
  44. $this->core->_appendUri('/privacy');
  45. }
  46. /**
  47. * Vanity
  48. *
  49. * @param array $params
  50. */
  51. public function vanity($params = null)
  52. {
  53. $this->core->_setParamList($params);
  54. $this->core->_appendUri('/vanity');
  55. }
  56. }