Properties

$page

$page : string

Current page.

Type

string — Current page.

$subPages

$subPages : array

Public static varable to hold Subpages information.

Type

array

$itemsTable

$itemsTable : 

Magage Sites table

Type

— Magage Sites table.

Methods

get_class_name()

get_class_name() : string

Get Class Name

Returns

string —

CLASS

init()

init() 

Method init()

Initiate hooks for the clients page.

init_menu()

init_menu() 

Method init_menu()

Initiate menu.

on_load_page()

on_load_page() 

Method on_load_page()

Run on page load.

screen_options()

screen_options(mixed  $input) : mixed

Method screen_options()

Create Page Settings button.

Parameters

mixed $input

Page Settings button HTML.

Returns

mixed —

Screen sptions button.

init_subpages_menu()

init_subpages_menu() 

Initiates sub pages menu.

init_left_menu()

init_left_menu(array  $subPages = array()) 

Initiates Clients menu.

Parameters

array $subPages

Sub pages array.

render_header()

render_header(string  $shownPage = '') 

Method render_header()

Render Clients page header.

Parameters

string $shownPage

The page slug shown at this moment.

render_footer()

render_footer() 

Method render_footer()

Render Clients page footer. Closes the page container.

render_manage_clients()

render_manage_clients() : void

Renders manage clients dashboard.

render_second_top_header()

render_second_top_header() : void

Method render_second_top_header()

Render second top header.

render_update_clients()

render_update_clients() 

Renders Edit Clients Modal window.

render_screen_options()

render_screen_options() 

Method render_screen_options()

Render Page Settings Modal.

render_table()

render_table(string  $role = '', string  $groups = '', string  $sites = '', null  $search = null) 

Renders Clients Table.

Parameters

string $role

Current client role.

string $groups

Current client groups.

string $sites

Current Child Sites the client is on.

null $search

Search field.

render_table_body()

render_table_body(string  $role = '', string  $groups = '', string  $sites = '', string  $search = '') 

Renders the table body.

Parameters

string $role

client Role.

string $groups

Usr Group.

string $sites

Clients Sites.

string $search

Search field.

render_not_found()

render_not_found() 

Renders when cache is not found.

render_add_client()

render_add_client() 

Renders the Add New Client form.

render_client_fields()

render_client_fields() 

Renders the Add New Client Fields form.

render_add_field_modal()

render_add_field_modal(integer  $client_id) 

Method render_add_field_modal()

Render add custom field modal.

Parameters

integer $client_id

The client id.

add_client()

add_client() 

Method add_client()

Bulk client addition $_POST Handler.

render_add_client_modal()

render_add_client_modal() 

Method render_add_client_modal().

Renders add client Modal window.

render_add_client_content()

render_add_client_content(mixed  $edit_client = false) 

Method render_add_client_content().

Renders add client content window.

Parameters

mixed $edit_client

The client data.

get_add_contact_temp()

get_add_contact_temp(mixed  $edit_contact = false, boolean  $echo_out = false) 

Method get_add_contact_temp().

Get add contact template.

Parameters

mixed $edit_contact

The contact data to edit.

boolean $echo_out

Echo template or not.

save_client_field()

save_client_field() 

Method save_client_field().

Save custom fields.

save_note()

save_note() 

Method save_note()

Save Client Note.

mainwp_help_content()

mainwp_help_content() 

Hooks the section help content to the Help Sidebar element.

clients_search_handler_renderer()

clients_search_handler_renderer(array  $clients, object  $website) : mixed

Renders Search results.

Parameters

array $clients

Clients array.

object $website

Object containing the child site info.

Returns

mixed —

Search results table.