AudioPreset.php
1 month ago
Block.php
9 months ago
CurrentUser.php
1 year ago
EmailCollection.php
1 year ago
Model.php
1 week ago
ModelInterface.php
1 year ago
Player.php
1 week ago
Post.php
1 year ago
Preset.php
1 month ago
ReusableVideo.php
1 month ago
Setting.php
1 year ago
Video.php
1 month ago
Webhook.php
1 year ago
EmailCollection.php
80 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 | return array( |
| 21 | 'id' => array( |
| 22 | 'type' => 'integer', |
| 23 | ), |
| 24 | 'enabled' => array( |
| 25 | 'type' => 'boolean', |
| 26 | ), |
| 27 | 'behavior' => array( |
| 28 | 'type' => 'string', |
| 29 | 'sanitize_callback' => 'sanitize_text_field', |
| 30 | ), |
| 31 | 'percentage' => array( |
| 32 | 'type' => 'integer', |
| 33 | ), |
| 34 | 'allow_skip' => array( |
| 35 | 'type' => 'boolean', |
| 36 | ), |
| 37 | 'email_provider' => array( |
| 38 | 'type' => 'string', |
| 39 | ), |
| 40 | 'email_provider_list' => array( |
| 41 | 'type' => 'string', |
| 42 | ), |
| 43 | 'email_provider_tag' => array( |
| 44 | 'type' => 'string', |
| 45 | ), |
| 46 | 'headline' => array( |
| 47 | 'type' => 'string', |
| 48 | 'sanitize_callback' => 'wp_kses_post', |
| 49 | ), |
| 50 | 'bottom_text' => array( |
| 51 | 'type' => 'string', |
| 52 | 'sanitize_callback' => 'wp_kses_post', |
| 53 | ), |
| 54 | 'button_text' => array( |
| 55 | 'type' => 'string', |
| 56 | 'sanitize_callback' => 'wp_kses_post', |
| 57 | ), |
| 58 | 'border_radius' => array( |
| 59 | 'type' => 'integer', |
| 60 | ), |
| 61 | 'preset_id' => array( |
| 62 | 'type' => 'integer', |
| 63 | ), |
| 64 | 'created_by' => array( |
| 65 | 'type' => 'integer', |
| 66 | 'default' => get_current_user_id(), |
| 67 | ), |
| 68 | 'created_at' => array( |
| 69 | 'type' => 'string', |
| 70 | ), |
| 71 | 'updated_at' => array( |
| 72 | 'type' => 'string', |
| 73 | ), |
| 74 | 'deleted_at' => array( |
| 75 | 'type' => 'string', |
| 76 | ), |
| 77 | ); |
| 78 | } |
| 79 | } |
| 80 |