| 1 | <?php |
|---|
| 2 | require_once(WCF_DIR.'lib/acp/form/ACPForm.class.php'); |
|---|
| 3 | require_once(WCF_DIR.'lib/acp/form/UserOptionListForm.class.php'); |
|---|
| 4 | |
|---|
| 5 | /** |
|---|
| 6 | * acp: google checkout settins |
|---|
| 7 | * |
|---|
| 8 | * @author Torben Brodt |
|---|
| 9 | * @package de.easy-coding.wcf.donation.googlecheckout |
|---|
| 10 | * @license GNU General Public License <http://opensource.org/licenses/gpl-3.0.html> |
|---|
| 11 | */ |
|---|
| 12 | class GoogleCheckoutForm extends UserOptionListForm { |
|---|
| 13 | public $templateName = 'donationGoogleCheckout'; |
|---|
| 14 | |
|---|
| 15 | // data |
|---|
| 16 | public $user, $password; |
|---|
| 17 | |
|---|
| 18 | /** |
|---|
| 19 | * @see Page::show() |
|---|
| 20 | */ |
|---|
| 21 | public function show() { |
|---|
| 22 | // enable menu item |
|---|
| 23 | WCFACP::getMenu()->setActiveMenuItem('wcf.acp.menu.link.content.donation.googlecheckout'); |
|---|
| 24 | |
|---|
| 25 | parent::show(); |
|---|
| 26 | } |
|---|
| 27 | |
|---|
| 28 | /** |
|---|
| 29 | * @see Page::readParameters() |
|---|
| 30 | */ |
|---|
| 31 | public function readParameters() { |
|---|
| 32 | parent::readParameters(); |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | /** |
|---|
| 36 | * @see Form::readFormParameters() |
|---|
| 37 | */ |
|---|
| 38 | public function readFormParameters() { |
|---|
| 39 | parent::readFormParameters(); |
|---|
| 40 | |
|---|
| 41 | if (isset($_POST['user'])) $this->user = $_POST['user']; |
|---|
| 42 | if (isset($_POST['password'])) $this->password = $_POST['password']; |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | /** |
|---|
| 46 | * @see Form::validate() |
|---|
| 47 | */ |
|---|
| 48 | public function validate() { |
|---|
| 49 | |
|---|
| 50 | } |
|---|
| 51 | |
|---|
| 52 | /** |
|---|
| 53 | * Create the data of an new game. |
|---|
| 54 | */ |
|---|
| 55 | public function save() { |
|---|
| 56 | $sql = "UPDATE"; |
|---|
| 57 | WCF::getDB()->sendQuery($sql); |
|---|
| 58 | } |
|---|
| 59 | |
|---|
| 60 | /** |
|---|
| 61 | * @see Page::readData() |
|---|
| 62 | */ |
|---|
| 63 | public function readData() { |
|---|
| 64 | parent::readData(); |
|---|
| 65 | } |
|---|
| 66 | |
|---|
| 67 | /** |
|---|
| 68 | * @see Page::assignVariables() |
|---|
| 69 | */ |
|---|
| 70 | public function assignVariables() { |
|---|
| 71 | parent::assignVariables(); |
|---|
| 72 | |
|---|
| 73 | WCF::getTPL()->assign(array( |
|---|
| 74 | 'user' => $this->user, |
|---|
| 75 | 'password' => $this->password |
|---|
| 76 | )); |
|---|
| 77 | } |
|---|
| 78 | } |
|---|
| 79 | ?> |
|---|