Yioop_V9.5_Source_Code_Documentation

EditclassifierElement extends Element
in package

This element renders the initial edit page for a classifier, where the user can update the classifier label and find documents to label and add to the training set. The page displays some initial statistics and a form for finding documents in any existing index, but after that it is heavily modified by JavaScript in response to user actions and XmlHttpRequests made to the server.

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 "edit classifier" element to the output buffers.

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 "edit classifier" element to the output buffers.

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

used to pass the class label, classifier instance, and list of existing crawls

Return values
mixed

        

Search results