Yioop_V9.5_Source_Code_Documentation

ManageclassifiersElement extends Element
in package

This element renders the page that lists classifiers, provides a form to create new ones, and provides per-classifier action links to edit, finalize, and delete the associated classifier.

Tags
author

Shawn Tice

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 the "new classifier" form and table of existing classifiesr
renderClassifierForm()  : mixed
Used to draw the form to create a new classifier
renderClassifiersTable()  : mixed
Draws the table of currently defined classifiers for the Yioop system
renderSearchForm()  : mixed
Used to draw the form to search and filter through existing classifiers

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 the "new classifier" form and table of existing classifiesr

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

used to pass the list of existing classifier instances

Return values
mixed —

renderClassifierForm()

Used to draw the form to create a new classifier

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

data for the view in this case we just make use of the CSRF_TOKEN

Return values
mixed —

renderClassifiersTable()

Draws the table of currently defined classifiers for the Yioop system

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

info about current users and current mixes, CSRF token

Return values
mixed —

renderSearchForm()

Used to draw the form to search and filter through existing classifiers

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

data for the view

Return values
mixed —

        

Search results