\seekquarry\yioop\views\elementsManageclassifiersElement

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.

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()
renderClassifiersTable()
renderClassifierForm()
renderSearchForm()
$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) 

Draws the "new classifier" form and table of existing classifiesr

It should be implemented in subclasses.

Parameters

array $data

used to pass the list of existing classifier instances

renderClassifiersTable()

renderClassifiersTable(array  $data) 

Draws the table of currently defined classifiers for the Yioop system

Parameters

array $data

info about current users and current mixes, CSRF token

renderClassifierForm()

renderClassifierForm(array  $data) 

Used to draw the form to create a new classifier

Parameters

array $data

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

renderSearchForm()

renderSearchForm(array  $data) 

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

Parameters

array $data

data for the view