文件操作 - LegalConsentLogs.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/tutor/GDPR/Models/LegalConsentLogs.php
编辑文件内容
<?php /** * Compliance logs model. * * @package Tutor\GDPR\Models * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 4.0.0 */ namespace Tutor\GDPR\Models; use Tutor\GDPR\DB\Logs as Table; use Tutor\Models\BaseModel; defined( 'ABSPATH' ) || exit; /** * Compliance logs model class. * * @since 4.0.0 */ class LegalConsentLogs extends BaseModel { /** * Table name without prefix. * * @since 4.0.0 * * @var string */ protected $table_name = 'tutor_legal_consent_logs'; /** * Fillable fields for create/update. * * @since 4.0.0 * * @var array */ protected $fillable = array( 'id', 'legal_consent_id', 'action', 'old_data', 'new_data', 'created_at_gmt', ); /** * Constructor. * * @since 4.0.0 */ public function __construct() { $this->table_name = Table::get_table_name(); parent::__construct(); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件