modules/Charts/Dashlets/MyForecastingChartDashlet/MyForecastingChartDashlet.php

Show: inherited
Table of Contents

\MyForecastingChartDashlet

Package:

Basic Dashlet

Parent(s)
\DashletGenericChart < \Dashlet

Properties

Propertyprivateobject  $_configureSS= ''
inherited

smarty object for the generic configuration template

Inherited from: \DashletGenericChart::$$_configureSS
Details
Type
object
Inherited_from
\DashletGenericChart::$$_configureSS  
Propertyprotectedstring  $_configureTpl= ''include/Dashlets/DashletGenericChartConfigure.tpl''
inherited

location of smarty template file for configuring

Inherited from: \DashletGenericChart::$$_configureTpl
Default value'include/Dashlets/DashletGenericChartConfigure.tpl'Details
Type
string
Inherited_from
\DashletGenericChart::$$_configureTpl  
Propertyprotectedarray  $_searchFields= ''
inherited

Array of fields and thier defintions that we are searching on

Inherited from: \DashletGenericChart::$$_searchFields
Details
Type
array
Inherited_from
\DashletGenericChart::$$_searchFields  
Propertyprivateobject  $_seedBean= ''
inherited

Bean file used in this Dashlet

Inherited from: \DashletGenericChart::$$_seedBean
Details
Type
object
Inherited_from
\DashletGenericChart::$$_seedBean  
Propertyprotectedstring  $_seedName= ''Forecasts''

Module used in this Dashlet

Default value'Forecasts'Details
Type
string
See
\DashletGenericChart::$_seedName  
Propertypublicint  $autoRefresh= '"0"'
inherited

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::$$autoRefresh

To support auto refresh all refreshable dashlets that override process() must call processAutoRefresh()

Default value"0"Details
Type
int
Inherited_from
\Dashlet::$$autoRefresh  
Inherited_from
\DashletGenericChart::$$autoRefresh  
Propertypublicarray  $dashletStrings= ''
inherited

Language strings, must be loaded at the Dashlet level w/ loadLanguage

Inherited from: \Dashlet::$$dashletStrings\DashletGenericChart::$$dashletStrings
Details
Type
array
Inherited_from
\Dashlet::$$dashletStrings  
Inherited_from
\DashletGenericChart::$$dashletStrings  
Propertypublicbool  $hasScript= 'false'
inherited

true if the Dashlet contains javascript

Inherited from: \Dashlet::$$hasScript\DashletGenericChart::$$hasScript
Default valuefalseDetails
Type
bool
Inherited_from
\Dashlet::$$hasScript  
Inherited_from
\DashletGenericChart::$$hasScript  
Propertypublic\guid  $id= ''
inherited

Id of the Dashlet

Inherited from: \Dashlet::$$id\DashletGenericChart::$$id
Details
Type
\guid
Inherited_from
\Dashlet::$$id  
Inherited_from
\DashletGenericChart::$$id  
Propertypublicbool  $isConfigPanelClearShown= 'false'

true if the Dashlet configuration options panel has the clear button

Default valuefalseDetails
Type
bool
See
\Dashlet::$isConfigPanelClearShown  
Propertypublicbool  $isConfigurable= 'true'

true if the Dashlet has configuration options.

Default valuetrueDetails
Type
bool
See
\Dashlet::$isConfigurable  
Propertypublicbool  $isRefreshable= 'true'
inherited

true if the Dashlet is refreshable (ie charts that provide their own refresh)

Inherited from: \DashletGenericChart::$$isRefreshable
Default valuetrueDetails
Type
bool
Inherited_from
\DashletGenericChart::$$isRefreshable  
See
\Dashlet::$isRefreshable  
Propertypublicstring  $title= ''
inherited

The title of the dashlet

Inherited from: \DashletGenericChart::$$title
Details
Type
string
Inherited_from
\DashletGenericChart::$$title  

Methods

methodpublicDashlet(  $id ) : void
inherited

Constructor

Inherited from: \Dashlet::Dashlet()\DashletGenericChart::Dashlet()
Parameters
Name Type Description
$id
methodpublic__construct( int $id, array $options = null ) : void
inherited

Constructor

Inherited from: \DashletGenericChart::__construct()
Parameters
Name Type Description
$id int
$options array
methodprotectedconstructGroupBy( ) : string
inherited

Returns the array of group by parameters for SugarChart::$group_by

Inherited from: \DashletGenericChart::constructGroupBy()
Returns
Type Description
string SQL query
methodprotectedconstructQuery( ) : string
inherited

Returns the built query read to feed into SugarChart::getData()

Inherited from: \DashletGenericChart::constructQuery()
Returns
Type Description
string SQL query
methodpublicdisplay( ) : string

Displays the Dashlet, must call process() prior to calling this

Returns
Type Description
string HTML that displays Dashlet
Details
See
\DashletGenericChart::display()  
methodpublicdisplayOptions( ) : string
inherited

Handles displaying the chart dashlet configuration popup window

Inherited from: \DashletGenericChart::displayOptions()
Returns
Type Description
string HTML to return to the browser
methodpublicdisplayScript( ) : string
inherited

Displays the javascript for the dashlet

Inherited from: \DashletGenericChart::displayScript()
Returns
Type Description
string javascript to use with this dashlet
methodprotectedgetAutoRefreshOptions( ) : array
inherited

Returns the available auto refresh settings you can set a dashlet to

Inherited from: \Dashlet::getAutoRefreshOptions()\DashletGenericChart::getAutoRefreshOptions()
Returns
Type Description
array options available
methodprotectedgetConfigureSmartyInstance( ) : void
inherited

Gets the smarty object for the config window. Designed to allow lazy loading the object when it's needed.

Inherited from: \DashletGenericChart::getConfigureSmartyInstance()
methodpublicgetFooter( ) : string
inherited

Called when Dashlet is displayed

Inherited from: \Dashlet::getFooter()\DashletGenericChart::getFooter()
Returns
Type Description
string footer HTML
methodpublicgetHeader( string $text = '' ) : string
inherited

Called when Dashlet is displayed

Inherited from: \Dashlet::getHeader()\DashletGenericChart::getHeader()
Parameters
Name Type Description
$text string

text after the title

Returns
Type Description
string Header html
methodprotectedgetSeedBean( ) : object
inherited

Returns the DashletGenericChart::_seedBean object. Designed to allow lazy loading the object when it's needed.

Inherited from: \DashletGenericChart::getSeedBean()
Returns
Type Description
object
methodpublicgetTitle( string $text = '' ) : string
Parameters
Name Type Description
$text string
Returns
Type Description
string HTML
methodpublichasAccess( ) : bool
inherited

Override this in the subclass. It is used to determine whether the dashlet can be displayed.

Inherited from: \Dashlet::hasAccess()\DashletGenericChart::hasAccess()
Returns
Type Description
bool indicating whether or not the current user has access to display this Dashlet.
methodprotectedisAutoRefreshable( ) : bool
inherited

Returns true if the dashlet is auto refreshable

Inherited from: \Dashlet::isAutoRefreshable()\DashletGenericChart::isAutoRefreshable()
Returns
Type Description
bool
methodpublicloadLanguage( string $dashletClassname, string $dashletDirectory = 'modules/Home/Dashlets/' ) : void
inherited

Sets the language strings

Inherited from: \Dashlet::loadLanguage()\DashletGenericChart::loadLanguage()
Parameters
Name Type Description
$dashletClassname string

classname of the dashlet

$dashletDirectory string

directory path of the dashlet

methodpublicloadOptions( ) : array
inherited

Generic way to retrieve options array from UserPreferences

Inherited from: \Dashlet::loadOptions()\DashletGenericChart::loadOptions()
Returns
Type Description
array options array stored in UserPreferences
methodpublicprocess( ) : void
inherited

Override if you need to do pre-processing before display is called

Inherited from: \Dashlet::process()\DashletGenericChart::process()
methodprotectedprocessAutoRefresh( int $dashletOffset = 0 ) : string
inherited

Processes and displays the auto refresh code for the dashlet

Inherited from: \DashletGenericChart::processAutoRefresh()
Parameters
Name Type Description
$dashletOffset int
Returns
Type Description
string HTML code
methodpublicsaveOptions( array $req ) : array
inherited

Saves the chart config options Filter the $_REQUEST and only save only the needed options

Inherited from: \DashletGenericChart::saveOptions()
Parameters
Name Type Description
$req array
Returns
Type Description
array
methodpublicsetConfigureIcon( ) : string
inherited

Returns the HTML for the configure icon

Inherited from: \Dashlet::setConfigureIcon()\DashletGenericChart::setConfigureIcon()
Returns
Type Description
string HTML
methodpublicsetDeleteIcon( ) : string
inherited

Returns the HTML for the delete icon

Inherited from: \Dashlet::setDeleteIcon()\DashletGenericChart::setDeleteIcon()
Returns
Type Description
string HTML
methodpublicsetRefreshIcon( ) : string
inherited

Returns the HTML for the refresh icon

Inherited from: \DashletGenericChart::setRefreshIcon()
Returns
Type Description
string HTML
Details
See
\Dashlet::setRefreshIcon()  
methodpublicstoreOptions( array $optionsArray ) : void
inherited

Generic way to store an options array into UserPreferences

Inherited from: \Dashlet::storeOptions()\DashletGenericChart::storeOptions()
Parameters
Name Type Description
$optionsArray array

the array to save

Documentation was generated by DocBlox 0.18.1.