\MainWP\Dashboard\Module\LogLog_Admin

Class - Log_Admin

Summary

Methods
Properties
Constants
__construct()
admin_init()
add_subpage_menu_logs()
render_list_table()
admin_enqueue_scripts()
ajax_display_rows()
ajax_delete_records()
ajax_compact_records()
load_list_table()
hook_purge_scheduled_action()
get_db_size()
get_all_users()
$manager
$screen_id
$list_table
$admin_parent_page
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$manager

$manager : \MainWP\Dashboard\Module\Log\Log_manager

Holds Instance of manager object

Type

\MainWP\Dashboard\Module\Log\Log_manager

$screen_id

$screen_id : string

Menu page screen id

Type

string

$list_table

$list_table : \MainWP\Dashboard\Module\Log\List_Table

List table object

Type

\MainWP\Dashboard\Module\Log\List_Table

$admin_parent_page

$admin_parent_page : string

Parent page of the records and settings pages

Type

string

Methods

admin_init()

admin_init() 

Handle admin_init action.

add_subpage_menu_logs()

add_subpage_menu_logs(array  $subpages = array()) 

Init sub menu logs.

Parameters

array $subpages

sub pages.

render_list_table()

render_list_table() 

Render main page

admin_enqueue_scripts()

admin_enqueue_scripts(string  $hook) : void

Enqueue scripts/styles for admin screen

Parameters

string $hook

Current hook.

ajax_display_rows()

ajax_display_rows() 

Method ajax_display_rows()

Display table rows, optimize for shared hosting or big networks.

ajax_delete_records()

ajax_delete_records() 

Handle ajax delete logs records.

ajax_compact_records()

ajax_compact_records() 

Handle ajax compact logs records.

load_list_table()

load_list_table() 

Method load_sites_table()

Load sites table.

hook_purge_scheduled_action()

hook_purge_scheduled_action() : void

Schedules a purge of records.

get_db_size()

get_db_size() : string

Get db size.

Returns

string —

Return current db size.

get_all_users()

get_all_users() : array

Get WP users.

Returns

array —

Array of users.