LegalConsentLogs.php
60 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Compliance logs model. |
| 4 | * |
| 5 | * @package Tutor\GDPR\Models |
| 6 | * @author Themeum <support@themeum.com> |
| 7 | * @link https://themeum.com |
| 8 | * @since 4.0.0 |
| 9 | */ |
| 10 | |
| 11 | namespace Tutor\GDPR\Models; |
| 12 | |
| 13 | use Tutor\GDPR\DB\Logs as Table; |
| 14 | use Tutor\Models\BaseModel; |
| 15 | |
| 16 | defined( 'ABSPATH' ) || exit; |
| 17 | |
| 18 | /** |
| 19 | * Compliance logs model class. |
| 20 | * |
| 21 | * @since 4.0.0 |
| 22 | */ |
| 23 | class LegalConsentLogs extends BaseModel { |
| 24 | |
| 25 | /** |
| 26 | * Table name without prefix. |
| 27 | * |
| 28 | * @since 4.0.0 |
| 29 | * |
| 30 | * @var string |
| 31 | */ |
| 32 | protected $table_name = 'tutor_legal_consent_logs'; |
| 33 | |
| 34 | /** |
| 35 | * Fillable fields for create/update. |
| 36 | * |
| 37 | * @since 4.0.0 |
| 38 | * |
| 39 | * @var array |
| 40 | */ |
| 41 | protected $fillable = array( |
| 42 | 'id', |
| 43 | 'legal_consent_id', |
| 44 | 'action', |
| 45 | 'old_data', |
| 46 | 'new_data', |
| 47 | 'created_at_gmt', |
| 48 | ); |
| 49 | |
| 50 | /** |
| 51 | * Constructor. |
| 52 | * |
| 53 | * @since 4.0.0 |
| 54 | */ |
| 55 | public function __construct() { |
| 56 | $this->table_name = Table::get_table_name(); |
| 57 | parent::__construct(); |
| 58 | } |
| 59 | } |
| 60 |