Yioop_V9.5_Source_Code_Documentation

ManagemachinesElement extends Element
in package

Used to draw the admin screen on which admin users can add/delete and manage machines which might act as fetchers or queue_servers.

The managing protion of this element is actually done via an ajax call of the MachinestatusView

Tags
author

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
Draws the ManageMachines element to the output buffer

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 ManageMachines element to the output buffer

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

contains antiCSRF token, as well as data for the select fetcher number element.

Return values
mixed —

        

Search results