modules/Charts/Dashlets/OutcomeByMonthDashlet/OutcomeByMonthDashlet.php
\OutcomeByMonthDashlet
Basic Dashlet
- Parent(s)
- \DashletGenericChart < \Dashlet
Properties

object
$_configureSS= ''
smarty object for the generic configuration template
Inherited from: \DashletGenericChart::$$_configureSS- Type
- object
- Inherited_from
- \DashletGenericChart::$$_configureSS

string
$_configureTpl= ''include/Dashlets/DashletGenericChartConfigure.tpl''
location of smarty template file for configuring
Inherited from: \DashletGenericChart::$$_configureTpl'include/Dashlets/DashletGenericChartConfigure.tpl'Details- Type
- string
- Inherited_from
- \DashletGenericChart::$$_configureTpl

array
$_searchFields= ''
Array of fields and thier defintions that we are searching on
Inherited from: \DashletGenericChart::$$_searchFields- Type
- array
- Inherited_from
- \DashletGenericChart::$$_searchFields

string
$_seedName= ''Opportunities''
Module used in this Dashlet
'Opportunities'Details- Type
- string
- See
- \DashletGenericChart::$_seedName

int
$autoRefresh= '"0"'
Time period in minutes to refresh the dashlet (0 for never) Do not refresh if $isRefreshable is set to false
Inherited from: \Dashlet::$$autoRefresh\DashletGenericChart::$$autoRefreshTo support auto refresh all refreshable dashlets that override process() must call processAutoRefresh()
"0"Details- Type
- int
- Inherited_from
- \Dashlet::$$autoRefresh
- Inherited_from
- \DashletGenericChart::$$autoRefresh

array
$dashletStrings= ''
Language strings, must be loaded at the Dashlet level w/ loadLanguage
Inherited from: \Dashlet::$$dashletStrings\DashletGenericChart::$$dashletStrings- Type
- array
- Inherited_from
- \Dashlet::$$dashletStrings
- Inherited_from
- \DashletGenericChart::$$dashletStrings

bool
$hasScript= 'false'
true if the Dashlet contains javascript
Inherited from: \Dashlet::$$hasScript\DashletGenericChart::$$hasScriptfalseDetails- Type
- bool
- Inherited_from
- \Dashlet::$$hasScript
- Inherited_from
- \DashletGenericChart::$$hasScript

\guid
$id= ''
- Type
- \guid
- Inherited_from
- \Dashlet::$$id
- Inherited_from
- \DashletGenericChart::$$id

bool
$isConfigPanelClearShown= 'true'
true if the Dashlet configuration options panel has the clear button
Inherited from: \Dashlet::$$isConfigPanelClearShown\DashletGenericChart::$$isConfigPanelClearShowntrueDetails- Type
- bool
- Inherited_from
- \Dashlet::$$isConfigPanelClearShown
- Inherited_from
- \DashletGenericChart::$$isConfigPanelClearShown

bool
$isConfigurable= 'true'
true if the Dashlet has configuration options.
Inherited from: \DashletGenericChart::$$isConfigurabletrueDetails- Type
- bool
- Inherited_from
- \DashletGenericChart::$$isConfigurable
- See
- \Dashlet::$isConfigurable

bool
$isRefreshable= 'true'
true if the Dashlet is refreshable (ie charts that provide their own refresh)
Inherited from: \DashletGenericChart::$$isRefreshabletrueDetails- Type
- bool
- Inherited_from
- \DashletGenericChart::$$isRefreshable
- See
- \Dashlet::$isRefreshable
Methods

__construct(
int $id, array $options
=
null
)
:
voidConstructor
| Name | Type | Description |
|---|---|---|
| $id | int | |
| $options | array |

constructGroupBy(
)
:
stringReturns the array of group by parameters for SugarChart::$group_by
Inherited from: \DashletGenericChart::constructGroupBy()| Type | Description |
|---|---|
| string | SQL query |

constructQuery(
)
:
stringReturns the built query read to feed into SugarChart::getData()
| Type | Description |
|---|---|
| string | SQL query |

display(
)
:
stringDisplays the Dashlet, must call process() prior to calling this
| Type | Description |
|---|---|
| string | HTML that displays Dashlet |

displayOptions(
)
:
stringHandles displaying the chart dashlet configuration popup window
| Type | Description |
|---|---|
| string | HTML to return to the browser |

displayScript(
)
:
stringDisplays the javascript for the dashlet
Inherited from: \DashletGenericChart::displayScript()| Type | Description |
|---|---|
| string | javascript to use with this dashlet |

getAutoRefreshOptions(
)
:
arrayReturns the available auto refresh settings you can set a dashlet to
Inherited from: \Dashlet::getAutoRefreshOptions()\DashletGenericChart::getAutoRefreshOptions()| Type | Description |
|---|---|
| array | options available |

getConfigureSmartyInstance(
)
:
voidGets the smarty object for the config window. Designed to allow lazy loading the object when it's needed.
Inherited from: \DashletGenericChart::getConfigureSmartyInstance()
getFooter(
)
:
stringCalled when Dashlet is displayed
Inherited from: \Dashlet::getFooter()\DashletGenericChart::getFooter()| Type | Description |
|---|---|
| string | footer HTML |

getHeader(
string $text
=
''
)
:
stringCalled when Dashlet is displayed
Inherited from: \Dashlet::getHeader()\DashletGenericChart::getHeader()| Name | Type | Description |
|---|---|---|
| $text | string | text after the title |
| Type | Description |
|---|---|
| string | Header html |

getSeedBean(
)
:
objectReturns the DashletGenericChart::_seedBean object. Designed to allow lazy loading the object when it's needed.
Inherited from: \DashletGenericChart::getSeedBean()| Type | Description |
|---|---|
| object |

getTitle(
string $text
=
''
)
:
string
| Name | Type | Description |
|---|---|---|
| $text | string |
| Type | Description |
|---|---|
| string | HTML |

hasAccess(
)
:
boolOverride this in the subclass. It is used to determine whether the dashlet can be displayed.
Inherited from: \Dashlet::hasAccess()\DashletGenericChart::hasAccess()| Type | Description |
|---|---|
| bool | indicating whether or not the current user has access to display this Dashlet. |

isAutoRefreshable(
)
:
boolReturns true if the dashlet is auto refreshable
Inherited from: \Dashlet::isAutoRefreshable()\DashletGenericChart::isAutoRefreshable()| Type | Description |
|---|---|
| bool |

loadLanguage(
string $dashletClassname, string $dashletDirectory
=
'modules/Home/Dashlets/'
)
:
voidSets the language strings
Inherited from: \Dashlet::loadLanguage()\DashletGenericChart::loadLanguage()| Name | Type | Description |
|---|---|---|
| $dashletClassname | string | classname of the dashlet |
| $dashletDirectory | string | directory path of the dashlet |

loadOptions(
)
:
arrayGeneric way to retrieve options array from UserPreferences
Inherited from: \Dashlet::loadOptions()\DashletGenericChart::loadOptions()| Type | Description |
|---|---|
| array | options array stored in UserPreferences |

process(
)
:
voidOverride if you need to do pre-processing before display is called
Inherited from: \Dashlet::process()\DashletGenericChart::process()
processAutoRefresh(
int $dashletOffset
=
0
)
:
stringProcesses and displays the auto refresh code for the dashlet
Inherited from: \DashletGenericChart::processAutoRefresh()| Name | Type | Description |
|---|---|---|
| $dashletOffset | int |
| Type | Description |
|---|---|
| string | HTML code |

saveOptions(
array $req
)
:
arraySaves the chart config options Filter the $_REQUEST and only save only the needed options
Inherited from: \DashletGenericChart::saveOptions()| Name | Type | Description |
|---|---|---|
| $req | array |
| Type | Description |
|---|---|
| array |

setConfigureIcon(
)
:
stringReturns the HTML for the configure icon
Inherited from: \Dashlet::setConfigureIcon()\DashletGenericChart::setConfigureIcon()| Type | Description |
|---|---|
| string | HTML |

setDeleteIcon(
)
:
stringReturns the HTML for the delete icon
Inherited from: \Dashlet::setDeleteIcon()\DashletGenericChart::setDeleteIcon()| Type | Description |
|---|---|
| string | HTML |

setRefreshIcon(
)
:
stringReturns the HTML for the refresh icon
Inherited from: \DashletGenericChart::setRefreshIcon()| Type | Description |
|---|---|
| string | HTML |

storeOptions(
array $optionsArray
)
:
voidGeneric way to store an options array into UserPreferences
Inherited from: \Dashlet::storeOptions()\DashletGenericChart::storeOptions()| Name | Type | Description |
|---|---|---|
| $optionsArray | array | the array to save |