root/donation/optionals/de.easy-coding.wcf.donation.googlecheckout/files/lib/util/DonationGoogleCheckoutUtil.class.php @ 71

Revision 71, 0.8 kB (checked in by d0nut, 6 years ago)

updated icons and many other things

Line 
1<?php
2require_once(WCF_DIR.'lib/util/DonationUtil.class.php');
3
4/**
5 * donation implementation for google checkout
6 *
7 * @author      Torben Brodt
8 * @package     de.easy-coding.wcf.donation.googlecheckout
9 * @license     GNU General Public License <http://opensource.org/licenses/gpl-license.php>
10 */
11class DonationGoogleCheckoutUtil extends DonationUtil {
12        protected $con;
13
14        /**
15         *
16         * @param username
17         * @param password
18         */
19        public function __construct($username, $password) {
20                $this->con = login;
21        }
22       
23        /**
24         * returns a list of dontation items
25         * @return DonationList[]
26         */
27        public function fetch() {
28                $donationList = array();
29                foreach($this->con as $item) {
30                        $donationList[] = new DonationItem($timestamp, $username, $amount, $message);
31                }
32
33                return $donationList;
34        }
35}
36?>
Note: See TracBrowser for help on using the browser.