Yioop_V9.5_Source_Code_Documentation

ScrapersElement extends Element
in package

Contains the forms for managing Web Page Scrapers.

Tags
author

Charles Bocage (repurposed from CMS Detector element by Chris Pollett)

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
Renders Web Scrapers form and the table used for drawing the current scrapers
renderScraperForm()  : mixed
Used to draw the formm for adding a new scraper or editing an existing one
renderSearchForm()  : mixed
Draws the search for Web Scrapers

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

Renders Web Scrapers form and the table used for drawing the current scrapers

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

contains the available scrapers as well as potentially edit info for the current scraper

Return values
mixed

renderScraperForm()

Used to draw the formm for adding a new scraper or editing an existing one

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

contains potentially edit info for the current scraper

Return values
mixed

renderSearchForm()

Draws the search for Web Scrapers

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

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

Return values
mixed

        

Search results