\seekquarry\yioop\views\elementsManagegroupsElement

Used to draw the admin screen on which users can create groups, delete groups and add and delete users and roles to a group

Elements are classes are used to render portions of a web page which might be common to several views like a view there is supposed to minimal php code in an element

Summary

Methods
Properties
Constants
__construct()
render()
renderGroupsForm()
renderInviteUsersForm()
renderChangeOwnerForm()
renderGroupStatistics()
renderSearchForm()
renderGraphStats()
$view
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$view

$view : object

The View on which this Element is drawn

Type

object

Methods

__construct()

__construct(object  $view = null) 

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

Parameters

object $view

object this element will reside on

render()

render(array  $data) 

Renders the screen in which groups can be created, deleted, and added or deleted

It should be implemented in subclasses.

Parameters

array $data

contains antiCSRF token, as well as data on available groups or which user is in what group

renderGroupsForm()

renderGroupsForm(array  $data) 

Draws the add groups and edit groups forms

Parameters

array $data

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

renderInviteUsersForm()

renderInviteUsersForm(array  $data) 

Draws form used to invite users to the current group

Parameters

array $data

from the admin controller with a 'CURRENT_GROUP' field providing information about the current group as well as info about the current CSRF_TOKEN

renderChangeOwnerForm()

renderChangeOwnerForm(array  $data) 

Draws the form used to change the owner of a group

Parameters

array $data

from the admin controller with a 'CURRENT_GROUP' field providing information about the current group as well as info about the current CSRF_TOKEN

renderGroupStatistics()

renderGroupStatistics(array  $data) 

Draws group statistics related to number of users, popular threads and wiki pages.

Parameters

array $data

from the admin controller with a 'CURRENT_GROUP' field providing information about the current group as well as info about the current CSRF_TOKEN

renderSearchForm()

renderSearchForm(array  $data) 

Draws the search for groups forms

Parameters

array $data

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

renderGraphStats()

renderGraphStats(array  $data) 

Draws chart of the group statistics in terms of number of views in different time periods.

Parameters

array $data

from the social component controller containing statistical information of specific group item including time period, number of views, update timestamp