CSFlatplanReport
extends CSReportPlugin
in package
Report Plugin that shows data about the publications
Tags
Table of Contents
- addPublicationSections() : void
- Adds the sections for a given publication
- addSections() : mixed
- getBarChart() : string
- Draws a stacked bar section
- getCSSLinks() : mixed
- getDefaultFooter() : mixed
- getDefaultIntro() : mixed
- getDefaultRightFooter() : mixed
- getDefaultSubtitle() : mixed
- getDefaultTitle() : mixed
- getOverviewSection() : string
- Draws an overview section
- getPlacementColorByState() : string
- Returns a color matching a placement state
- getPlacementColorByStateName() : string
- Returns a color matching a placement state name.
- getPluginName() : string
- The Plugin name
- isAvailableForContext() : mixed
Methods
addPublicationSections()
Adds the sections for a given publication
public
addPublicationSections(CSFlatplanPage $pub) : void
Parameters
- $pub : CSFlatplanPage
-
the current publication
Tags
Return values
void —addSections()
public
addSections() : mixed
Tags
Return values
mixed —getBarChart()
Draws a stacked bar section
public
getBarChart(mixed $data, mixed $sum, mixed $width) : string
Parameters
- $data : mixed
- $sum : mixed
- $width : mixed
Tags
Return values
string —getCSSLinks()
public
getCSSLinks() : mixed
Tags
Return values
mixed —getDefaultFooter()
public
getDefaultFooter() : mixed
Tags
Return values
mixed —getDefaultIntro()
public
getDefaultIntro() : mixed
Tags
Return values
mixed —getDefaultRightFooter()
public
getDefaultRightFooter() : mixed
Tags
Return values
mixed —getDefaultSubtitle()
public
getDefaultSubtitle() : mixed
Tags
Return values
mixed —getDefaultTitle()
public
getDefaultTitle() : mixed
Tags
Return values
mixed —getOverviewSection()
Draws an overview section
public
getOverviewSection(mixed $title, mixed $data, mixed $unit[, null $total = null ]) : string
Parameters
- $title : mixed
- $data : mixed
- $unit : mixed
- $total : null = null
Tags
Return values
string —the html
getPlacementColorByState()
Returns a color matching a placement state
public
getPlacementColorByState(int $iState) : string
Parameters
- $iState : int
Tags
Return values
string —getPlacementColorByStateName()
Returns a color matching a placement state name.
public
getPlacementColorByStateName(string $sStateName) : string
Parameters
- $sStateName : string
-
the state name as string (the translation key)
Tags
Return values
string —the color
getPluginName()
The Plugin name
public
getPluginName() : string
Tags
Return values
string —the name of the plugin
isAvailableForContext()
public
isAvailableForContext([mixed $context = null ][, mixed $subcontext = null ]) : mixed
Parameters
- $context : mixed = null
- $subcontext : mixed = null
