Yioop_V9.5_Source_Code_Documentation

AdminElement extends Element
in package
implements CrawlConstants

Element used to render the admin interface for a logged in user of Yioop

Tags
author

Chris Pollett

Interfaces, Classes, Traits and Enums

CrawlConstants
Shared constants and enums used by components that are involved in the crawling process

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 the list of admin activities and draws the current activity Renders the Javascript to autologout after an hour

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 the list of admin activities and draws the current activity Renders the Javascript to autologout after an hour

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

what is contained in this array depend on the current admin activity. The $data['ELEMENT'] says which activity to render

Return values
mixed

        

Search results