- \GraphRenderer
- \GraphRenderer_AbstractCompositionGraph
- \GraphRenderer_BtcEquivalentGraph
- \GraphRenderer_AbstractCompositionGraph
class (none) \ GraphRenderer_BtcEquivalentGraph
- All known direct subclasses:
- GraphRenderer_BtcEquivalentProportional,GraphRenderer_BtcEquivalentStacked
Method Summary
| Name | Description |
|---|---|
| __construct() | |
| getCompositionArgs() | |
| getCompositionSources($days, $extra_days) | |
| getCustomSubheading() | We want to have a custom subheading of the total equivalent BTC instead. |
| getData($days) | When we generate data, also keep track of the total of the last row |
| getHeadingTitle($key, $args) | e.g. #get_exchange_name |
| getTitle() | Get the title of this graph |
| getTitleArgs() | Get any localisation (i18n) string arguments for the title given in #getTitle(). By default, returns an empty array. |
| hasSubheading() |
Does this graph have a subheading? By default, returns true. |
| usesSummaries() |
Does this graph use summaries which may be out of date for a user? By default, returns false. |
Inherited Method Summary
| Name | Description |
|---|---|
| canHaveTechnicals() |
Can this graph have technicals? If this returns true, then the resulting data will always be sorted. By default, returns true. (from GraphRenderer)
|
| convertGraphToProportional($original) | Relabel all columns to have ' %' prefix, and reformat all data to be proportional based on the sum of each row. Uses the output of #getData(). (from GraphRenderer) |
| getChartType() |
What type of chart is this rendered as? By default, returns linechart. (from GraphRenderer)
|
| getClasses() | (from GraphRenderer) |
| getLabel() |
Get the label that should be associated with the #getURL(), or false if there shouldn't be any. Should be wrapped in ct(). (from GraphRenderer)
|
| getURL() |
Get the URL that the title of this graph should link to, or false if it should not link anywhere (from GraphRenderer)
|
| getUser() | (from GraphRenderer) |
| requiresAdmin() |
Does rendering this graph require an admin user? By default, returns false. (from GraphRenderer)
|
| requiresUser() |
Does rendering this graph require a user? By default, returns false. (from GraphRenderer_AbstractCompositionGraph)
|
| setUser($user_id) | (from GraphRenderer) |
| usesDays() |
Does this function require a days parameter? If true, then the returned data will be stripped based on the keys returned in the data - assumes that the data uses dates as keys. By default, returns true. (from GraphRenderer)
|
| isDaily() | (from GraphRenderer_AbstractCompositionGraph) |
public function __construct()
- Overrides:
- __construct()
public function getCompositionArgs()
- Overrides:
- getCompositionArgs()
public function getCompositionSources($days, $extra_days)
- Overrides:
- getCompositionSources($days, $extra_days)
public function getCustomSubheading()
We want to have a custom subheading of the total equivalent BTC instead.
- Overrides:
- getCustomSubheading()
- See:
public function getData($days)
When we generate data, also keep track of the total of the last row
- Overrides:
- getData($days)
- Returns:
an array of (columns => [column], data => [(date, value)], last_updated => (date or false))
public function getHeadingTitle($key, $args)
e.g. #get_exchange_name
- Overrides:
- getHeadingTitle($key, $args)
public function getTitle()
Get the title of this graph (from getTitle)
- Overrides:
- getTitle()
- See:
public function getTitleArgs()
Get any localisation (i18n) string arguments for the title given in #getTitle(). By default, returns an empty array. (from getTitleArgs)
- Overrides:
- getTitleArgs()
public function hasSubheading()
Does this graph have a subheading? By default, returns
true. (from hasSubheading)
- Overrides:
- hasSubheading()
- See:
public function usesSummaries()
Does this graph use summaries which may be out of date for a user? By default, returns
false. (from usesSummaries)
- Overrides:
- usesSummaries()