| 1 | <?php |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 2 | /** |
||
| 3 | * @author Podlove <[email protected]> |
||
| 4 | * @copyright Copyright (c) 2014-2018, Podlove |
||
| 5 | * @license https://github.com/podlove/podlove-subscribe-button-wp-plugin/blob/master/LICENSE MIT |
||
| 6 | * @package Podlove\PodloveSubscribeButton |
||
| 7 | */ |
||
| 8 | |||
| 9 | namespace PodloveSubscribeButton\Model; |
||
| 10 | |||
| 11 | class NetworkButton extends Button { |
||
| 12 | |||
| 13 | public static function table_name() { |
||
| 14 | global $wpdb; |
||
| 15 | |||
| 16 | // prefix with $wpdb prefix |
||
| 17 | return $wpdb->base_prefix . self::name(); |
||
| 18 | } |
||
| 19 | |||
| 20 | } |
||
| 21 | |||
| 22 | NetworkButton::property( 'id', 'INT NOT NULL AUTO_INCREMENT PRIMARY KEY' ); |
||
| 23 | NetworkButton::property( 'name', 'VARCHAR(255)' ); |
||
| 24 | NetworkButton::property( 'title', 'VARCHAR(255)' ); |
||
| 25 | NetworkButton::property( 'subtitle', 'VARCHAR(255)' ); |
||
| 26 | NetworkButton::property( 'description', 'TEXT' ); |
||
| 27 | NetworkButton::property( 'cover', 'VARCHAR(255)' ); |
||
| 28 | NetworkButton::property( 'feeds', 'TEXT' ); |
||
| 29 |