Yioop_V9.5_Source_Code_Documentation

ManageusersElement extends Element
in package

Element responsible for drawing the activity screen for User manipulation in the AdminView.

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 screen in which an admin can add users, delete users, and manipulate user roles.
renderSearchForm()  : mixed
Draws the search for users forms
renderUserForm()  : mixed
Draws the add user and edit user forms
renderUserTable()  : mixed
Draws the table that displays the users and their properties for the Yioop system

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 screen in which an admin can add users, delete users, and manipulate user roles.

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

info about current users and current roles, CSRF token

Return values
mixed —

renderSearchForm()

Draws the search for users forms

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

consists of values of user fields set so far as well as values of the drops downs on the form

Return values
mixed —

renderUserForm()

Draws the add user and edit user forms

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

consists of values of user fields set so far as well as values of the drops downs on the form

Return values
mixed —

renderUserTable()

Draws the table that displays the users and their properties for the Yioop system

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

info about current users and current roles, CSRF token

Return values
mixed —

        

Search results