SLP® phpDocs

MySLP_SysAdmin_View_Profile
in package

Class MySLP_SysAdmin_View_Profile

Handle the view profile page rendering when a system admin is looking at a user's profile.

Tags
@property-read

$current_user current user being processed.

Table of Contents

Properties

$current_user  : mixed
$number_format  : mixed
$text  : mixed

Methods

__construct()  : mixed
MySLP_SysAdmin_View_Profile constructor.
render_profile()  : WP_Error
Add the view profile
add_content()  : string
Content helper function
customer_basics_html()  : string
HTML for basic customer details.
get_data_as_html()  : string
Get array data (hash) as HTML.
init_text()  : mixed
Initialize our gettext strings.

Properties

Methods

render_profile()

Add the view profile

public render_profile(mixed $customer_id) : WP_Error
Parameters
$customer_id : mixed
Return values
WP_Error

add_content()

Content helper function

private add_content(string $data[, string $class = "" ][, bool $heading = false ][, string $label = "" ]) : string
Parameters
$data : string
$class : string = ""
$heading : bool = false
$label : string = ""
Return values
string

customer_basics_html()

HTML for basic customer details.

private customer_basics_html(mixed $user, mixed $user_details) : string
Parameters
$user : mixed
$user_details : mixed
Return values
string

get_data_as_html()

Get array data (hash) as HTML.

private get_data_as_html(mixed $data[, mixed $first_element = false ]) : string
Parameters
$data : mixed
$first_element : mixed = false
Return values
string

        
On this page

Search results