| 1 | <?php |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 2 | namespace PodloveSubscribeButton\Model; |
||
| 3 | |||
| 4 | class NetworkButton extends Button { |
||
|
0 ignored issues
–
show
|
|||
| 5 | |||
| 6 | public static function table_name() { |
||
|
0 ignored issues
–
show
|
|||
| 7 | global $wpdb; |
||
| 8 | |||
| 9 | // prefix with $wpdb prefix |
||
|
0 ignored issues
–
show
|
|||
| 10 | return $wpdb->base_prefix . self::name(); |
||
| 11 | } |
||
|
0 ignored issues
–
show
|
|||
| 12 | |||
| 13 | } |
||
| 14 | |||
| 15 | NetworkButton::property( 'id', 'INT NOT NULL AUTO_INCREMENT PRIMARY KEY' ); |
||
| 16 | NetworkButton::property( 'name', 'VARCHAR(255)' ); |
||
| 17 | NetworkButton::property( 'title', 'VARCHAR(255)' ); |
||
| 18 | NetworkButton::property( 'subtitle', 'VARCHAR(255)' ); |
||
| 19 | NetworkButton::property( 'description', 'TEXT' ); |
||
| 20 | NetworkButton::property( 'cover', 'VARCHAR(255)' ); |
||
| 21 | NetworkButton::property( 'feeds', 'TEXT' ); |