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
- $text : array<string|int, string>
- $number_format : array<string|int, mixed>
Methods
- 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.
Properties
$text read-only
public
array<string|int, string>
$text
oft-used i18n/l10n text
$number_format
private
array<string|int, mixed>
$number_format
= array('location_limit', 'mapview_limit')
Methods
render_profile()
Add the view profile
public
render_profile(mixed $customer_id) : WP_Error
Parameters
- $customer_id : mixed
Tags
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