Yioop_V9.5_Source_Code_Documentation

ManageaccountElement extends Element
in package

Element responsible for displaying the user account features that someone can modify for their own SeekQuarry/Yioop account.

Tags
author

Chris Pollett

Table of Contents

$view  : object
The View on which this Element is drawn
__construct()  : mixed
constructor stores a reference to the view this element will reside on
formatHref()  : string
Used to slightly clean up hypertext links before drawing them (get rid of empty queries, avoid double encoding)
render()  : mixed
Draws a view with a summary of a user's account together with a form for updating user info such as password as well as with useful links for groups, etc
renderEditUser()  : mixed
Renders the form used to control account settings such as icon photo, email, password, etc. for a user

Properties

$view

The View on which this Element is drawn

public object $view

Methods

__construct()

constructor stores a reference to the view this element will reside on

public __construct([object $view = null ]) : mixed
Parameters
$view : object = null

object this element will reside on

Return values
mixed

formatHref()

Used to slightly clean up hypertext links before drawing them (get rid of empty queries, avoid double encoding)

public formatHref(string $url) : string
Parameters
$url : string

to clean up

Return values
string

cleaned url

render()

Draws a view with a summary of a user's account together with a form for updating user info such as password as well as with useful links for groups, etc

public render(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>

anti-CSRF token

Return values
mixed

renderEditUser()

Renders the form used to control account settings such as icon photo, email, password, etc. for a user

public renderEditUser(mixed $data) : mixed

@param array $data has field with current values for these setting (except password) so that forms can be pre-populated.

Parameters
$data : mixed
Return values
mixed

        

Search results