Server IP : 172.67.216.182 / Your IP : 162.158.170.146 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/coircraft.com/wp-content/plugins/wp-mail-logging/src/Model/ |
Upload File : |
<?php namespace No3x\WPML\Model; use \DateTime; use No3x\WPML\ORM\BaseModel; // Exit if accessed directly if(!defined( 'ABSPATH' )) exit; /** * WPML Mail model. * @since 1.6.0 * @author No3x * @method integer get_mail_id() * @method set_mail_id(integer $id) * @method string get_timestamp() * @method set_timestamp(string $timestamp) * @method string get_host() * @method set_host(string $host) * @method string get_receiver() * @method set_receiver(string $receiver) * @method string get_subject() * @method set_subject(string $subject) * @method string get_message() * @method set_message(string $message) * @method string get_headers() * @method set_headers(string $headers) * @method string get_attachments() * @method set_attachments(string $attachments) * @method string get_error() * @method set_error(string|string[] $error) * @method string get_plugin_version() * @method set_plugin_version(string $plugin_version) */ class WPML_Mail extends BaseModel { /** * @var integer */ protected $mail_id; /** * @var string */ protected $timestamp; /** * @var string */ protected $host; /** * @var string */ protected $receiver; /** * @var string */ protected $subject; /** * @var string */ protected $message; /** * @var string */ protected $headers; /** * @var string */ protected $attachments; /** * @var string */ protected $error; /** * @var string */ protected $plugin_version; /** * @param array $properties */ public function __construct(array $properties = array()) { parent::__construct($properties); } /** * Get the model's primary key. * * @return string */ public static function get_primary_key() { return 'mail_id'; } /** * Get the table used to store posts. * * @return string */ public static function get_table() { global $wpdb; return $wpdb->prefix . 'wpml_mails'; } /** * Get an array of properties to search when doing a search query. * * @return array */ public static function get_searchable_fields() { return array('receiver', 'subject', 'headers', 'message', 'attachments', 'host'); } }