PageRenderTime 18ms CodeModel.GetById 9ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/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/**
16 * Load Methods parent
17 */
18require_once dirname(__FILE__) . '/../Methods.php';
19
20/**
21 * Album submethods
22 *
23 * @package PBAPI
24 * @subpackage Methods
25 */
26class PBAPI_Methods_album extends PBAPI_Methods
27{
28
29    /**
30     * Upload File
31     *
32     * @param array $params
33     */
34    public function upload($params)
35    {
36        $this->core->_setParamList($params);
37        $this->core->_appendUri('/upload');
38    }
39
40    /**
41     * Privacy
42     *
43     * @param array $params
44     */
45    public function privacy($params = null)
46    {
47        $this->core->_setParamList($params);
48        $this->core->_appendUri('/privacy');
49    }
50
51    /**
52     * Vanity
53     *
54     * @param array $params
55     */
56    public function vanity($params = null)
57    {
58        $this->core->_setParamList($params);
59        $this->core->_appendUri('/vanity');
60    }
61
62}