\seekquarry\yioop\views\elementsMixcrawlsElement

Element responsible for displaying info to allow a user to create a crawl mix or edit an existing one

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()
renderMixesTable()
renderMixForm()
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) 

Draw form to start a new crawl, has div place holder and ajax code to get info about current crawl

It should be implemented in subclasses.

Parameters

array $data

form about about a crawl such as its description

renderMixesTable()

renderMixesTable(array  $data) 

Draw the table that displays the currently defined crawl mixes

Parameters

array $data

info about current users and current mixes, CSRF token

renderMixForm()

renderMixForm(array  $data) 

Draws the create mix form

Parameters

array $data

used for CSRF_TOKEN

renderSearchForm()

renderSearchForm(array  $data) 

Draws the search for mixes forms

Parameters

array $data

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