AudioPreset.php
4 years ago
Block.php
4 years ago
CurrentUser.php
5 years ago
EmailCollection.php
5 years ago
LicensedProduct.php
5 years ago
Model.php
4 years ago
ModelInterface.php
5 years ago
Player.php
5 years ago
Post.php
5 years ago
Preset.php
4 years ago
ReusableVideo.php
4 years ago
Setting.php
5 years ago
Video.php
4 years ago
Webhook.php
3 years ago
EmailCollection.php
81 lines
| 1 | <?php |
| 2 | |
| 3 | namespace PrestoPlayer\Models; |
| 4 | |
| 5 | class EmailCollection extends Model |
| 6 | { |
| 7 | /** |
| 8 | * Table used to access db |
| 9 | * |
| 10 | * @var string |
| 11 | */ |
| 12 | protected $table = 'presto_player_email_collection'; |
| 13 | |
| 14 | /** |
| 15 | * Model Schema |
| 16 | * |
| 17 | * @var array |
| 18 | */ |
| 19 | public function schema() |
| 20 | { |
| 21 | return [ |
| 22 | 'id' => [ |
| 23 | 'type' => 'integer', |
| 24 | ], |
| 25 | 'enabled' => [ |
| 26 | 'type' => 'boolean', |
| 27 | ], |
| 28 | 'behavior' => [ |
| 29 | 'type' => 'string', |
| 30 | 'sanitize_callback' => 'sanitize_text_field' |
| 31 | ], |
| 32 | 'percentage' => [ |
| 33 | 'type' => 'integer' |
| 34 | ], |
| 35 | 'allow_skip' => [ |
| 36 | 'type' => 'boolean' |
| 37 | ], |
| 38 | 'email_provider' => [ |
| 39 | 'type' => 'string' |
| 40 | ], |
| 41 | 'email_provider_list' => [ |
| 42 | 'type' => 'string' |
| 43 | ], |
| 44 | 'email_provider_tag' => [ |
| 45 | 'type' => 'string' |
| 46 | ], |
| 47 | 'headline' => [ |
| 48 | 'type' => 'string', |
| 49 | 'sanitize_callback' => 'wp_kses_post' |
| 50 | ], |
| 51 | 'bottom_text' => [ |
| 52 | 'type' => 'string', |
| 53 | 'sanitize_callback' => 'wp_kses_post' |
| 54 | ], |
| 55 | 'button_text' => [ |
| 56 | 'type' => 'string', |
| 57 | 'sanitize_callback' => 'wp_kses_post' |
| 58 | ], |
| 59 | 'border_radius' => [ |
| 60 | 'type' => 'integer' |
| 61 | ], |
| 62 | 'preset_id' => [ |
| 63 | 'type' => 'integer' |
| 64 | ], |
| 65 | 'created_by' => [ |
| 66 | 'type' => 'integer', |
| 67 | 'default' => get_current_user_id() |
| 68 | ], |
| 69 | 'created_at' => [ |
| 70 | 'type' => 'string' |
| 71 | ], |
| 72 | 'updated_at' => [ |
| 73 | 'type' => 'string', |
| 74 | ], |
| 75 | 'deleted_at' => [ |
| 76 | 'type' => 'string' |
| 77 | ] |
| 78 | ]; |
| 79 | } |
| 80 | } |
| 81 |