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
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
$current_user
private
mixed
$current_user
$number_format
private
mixed
$number_format
= array('location_limit', 'mapview_limit')
$text
private
mixed
$text
Methods
__construct()
MySLP_SysAdmin_View_Profile constructor.
public
__construct() : mixed
render_profile()
Add the view profile
public
render_profile(mixed $customer_id) : WP_Error
Parameters
- $customer_id : mixed
Return values
WP_Erroradd_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
stringcustomer_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
stringget_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
stringinit_text()
Initialize our gettext strings.
private
init_text() : mixed