| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class CardGame extends Plugin |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * CardGame constructor. |
||
| 16 | */ |
||
| 17 | protected function __construct() |
||
| 22 | ); |
||
| 23 | } |
||
| 24 | |||
| 25 | public static function create() |
||
| 30 | } |
||
| 31 | |||
| 32 | public function install() |
||
| 33 | { |
||
| 34 | // 'pan' is the ID of the current background image/panel |
||
| 35 | $sql = "CREATE TABLE IF NOT EXISTS plugin_card_game( |
||
| 36 | id INT NOT NULL AUTO_INCREMENT, |
||
| 37 | user_id INT NOT NULL, |
||
| 38 | pan int NOT NULL, |
||
| 39 | access_date DATE NOT NULL, |
||
| 40 | parts VARCHAR(500) NOT NULL, |
||
| 41 | PRIMARY KEY (id) |
||
| 42 | )"; |
||
| 43 | Database::query($sql); |
||
| 44 | } |
||
| 45 | |||
| 46 | public function uninstall() |
||
| 50 | } |
||
| 51 | } |
||
| 52 |