| 1 |
<?php |
| 2 |
/** |
| 3 |
* Simple functionality. |
| 4 |
* |
| 5 |
* @package WP_Defender\Component |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace WP_Defender\Component; |
| 9 |
|
| 10 |
use WP_Defender\Component; |
| 11 |
|
| 12 |
/** |
| 13 |
* Simple methods. |
| 14 |
*/ |
| 15 |
class Audit extends Component { |
| 16 |
|
| 17 |
public const AUDIT_LOG = 'audit.log'; |
| 18 |
public const CACHE_LAST_CHECKPOINT = 'wd_audit_fetch_checkpoint'; |
| 19 |
|
| 20 |
/** |
| 21 |
* Dummy. |
| 22 |
* |
| 23 |
* @param int $date_from Start date for fetching logs. |
| 24 |
* @param int $date_to End date for fetching logs. |
| 25 |
* @param array $events Specific events to fetch. |
| 26 |
* @param string $user_id User ID to filter logs. |
| 27 |
* @param string $ip IP address to filter logs. |
| 28 |
* @param int $paged Pagination page number. |
| 29 |
* @param int $per_page Number of logs per page. |
| 30 |
* |
| 31 |
* @return array |
| 32 |
*/ |
| 33 |
public function fetch( $date_from, $date_to, $events = array(), $user_id = '', $ip = '', $paged = 1, $per_page = 10 ) { |
| 34 |
return array(); |
| 35 |
} |
| 36 |
|
| 37 |
/** |
| 38 |
* Dummy. |
| 39 |
*/ |
| 40 |
public function flush() { |
| 41 |
} |
| 42 |
|
| 43 |
/** |
| 44 |
* Dummy. |
| 45 |
*/ |
| 46 |
public function audit_clean_up_logs() { |
| 47 |
} |
| 48 |
|
| 49 |
/** |
| 50 |
* Dummy. |
| 51 |
*/ |
| 52 |
public function enqueue_event_listener() { |
| 53 |
} |
| 54 |
|
| 55 |
/** |
| 56 |
* Dummy. |
| 57 |
*/ |
| 58 |
public function log_audit_events() { |
| 59 |
} |
| 60 |
} |
| 61 |
|