Yioop_V9.5_Source_Code_Documentation

TrendingElement extends Element
in package

Class to draw statistics and charts about trending news feed terms

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
Used to draw either trending news feed term scores or charts
renderLandingHighlights()  : mixed
Used to draw random trending terms results on landing page
renderTermChart()  : mixed
Used to draw a chart of term scores for a time period
renderTrendingPeriods()  : mixed
Used to draw top NUM_TRENDING hourly, daily, weekly term scores

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

Used to draw either trending news feed term scores or charts

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

contains stats to draw

Return values
mixed

renderLandingHighlights()

Used to draw random trending terms results on landing page

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

contains stats to draw

Return values
mixed

renderTermChart()

Used to draw a chart of term scores for a time period

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

contains chart info about term

Return values
mixed

renderTrendingPeriods()

Used to draw top NUM_TRENDING hourly, daily, weekly term scores

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

contains stats to draw

Return values
mixed

        

Search results