modules/Home/Dashlets/SugarNewsDashlet/SugarNewsDashlet.php

Show: inherited
Table of Contents

\SugarNewsDashlet

Package:

Basic Dashlet

Parent(s)
\Dashlet

Properties

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

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

Default value"0"Details
Type
int
Inherited_from
\Dashlet::$$autoRefresh  
Propertypublic  $configureTpl= ''modules/Home/Dashlets/SugarNewsDashlet/configure.tpl''
Default value'modules/Home/Dashlets/SugarNewsDashlet/configure.tpl'Details
Type
n/a
Propertypublicarray  $dashletStrings= ''
inherited

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

Inherited from: \Dashlet::$$dashletStrings
Details
Type
array
Inherited_from
\Dashlet::$$dashletStrings  
Propertypublic  $defaultURL= ''http://apps.sugarcrm.com/dashlet/sugarcrm-news-dashlet.html?lang=@@LANG@@&edition=@@EDITION@@&ver=@@VER@@''
Default value'http://apps.sugarcrm.com/dashlet/sugarcrm-news-dashlet.html?lang=@@LANG@@&edition=@@EDITION@@&ver=@@VER@@'Details
Type
n/a
Propertypublic  $displayTpl= ''modules/Home/Dashlets/SugarNewsDashlet/display.tpl''
Default value'modules/Home/Dashlets/SugarNewsDashlet/display.tpl'Details
Type
n/a
Propertypublicbool  $hasScript= 'false'
inherited

true if the Dashlet contains javascript

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

Id of the Dashlet

Inherited from: \Dashlet::$$id
Details
Type
\guid
Inherited_from
\Dashlet::$$id  
Propertypublicbool  $isConfigPanelClearShown= 'true'
inherited

true if the Dashlet configuration options panel has the clear button

Inherited from: \Dashlet::$$isConfigPanelClearShown
Default valuetrueDetails
Type
bool
Inherited_from
\Dashlet::$$isConfigPanelClearShown  
Propertypublicbool  $isConfigurable= 'false'
inherited

true if the Dashlet has configuration options.

Inherited from: \Dashlet::$$isConfigurable
Default valuefalseDetails
Type
bool
Inherited_from
\Dashlet::$$isConfigurable  
Propertypublicbool  $isRefreshable= 'true'
inherited

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

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

Title of the Dashlet

Inherited from: \Dashlet::$$title
Default value'Generic Dashlet'Details
Type
string
Inherited_from
\Dashlet::$$title  
Propertypublic  $url= ''
Details
Type
n/a

Methods

methodpublicDashlet(  $id ) : void
inherited

Constructor

Inherited from: \Dashlet::Dashlet()
Parameters
Name Type Description
$id
methodpublicSugarNewsDashlet(  $id,  $options = null ) : void

Parameters
Name Type Description
$id
$options
methodpublicdisplay( ) : string

Called when Dashlet is displayed, override this

Returns
Type Description
string title HTML
methodpublicdisplayOptions( ) : void

Called when Dashlets configuration options are called

methodprotectedgetAutoRefreshOptions( ) : array
inherited

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

Inherited from: \Dashlet::getAutoRefreshOptions()
Returns
Type Description
array options available
methodpublicgetFooter( ) : string
inherited

Called when Dashlet is displayed

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

Called when Dashlet is displayed

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

text after the title

Returns
Type Description
string Header html
methodpublicgetTitle( string $text = '' ) : string
inherited

Inherited from: \Dashlet::getTitle()
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()
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()
Returns
Type Description
bool
methodpublicloadLanguage( string $dashletClassname, string $dashletDirectory = 'modules/Home/Dashlets/' ) : void
inherited

Sets the language strings

Inherited from: \Dashlet::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()
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()
methodprotectedprocessAutoRefresh( int $dashletOffset = 0 ) : string
inherited

Processes and displays the auto refresh code for the dashlet

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

Override this if your dashlet is configurable (this is called when the the configureDashlet form is shown) Filters the array for only the parameters it needs to save

Parameters
Name Type Description
$req array

the array to pull options from

Returns
Type Description
array options array
methodpublicsetConfigureIcon( ) : string
inherited

Returns the HTML for the configure icon

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

Returns the HTML for the delete icon

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

Returns the HTML for the refresh icon

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

Generic way to store an options array into UserPreferences

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

the array to save

Documentation was generated by DocBlox 0.18.1.